Skip to content
Back

When trying to getDocument I occasionally encounter "unable to get issuer certificate"

  • 0
  • Databases
  • Web
  • Cloud
NickTheMusketeer
3 Dec, 2024, 10:26

Sometimes I am sending a series of getDocument requests using Node.js SDK and sometimes I get an error: unable to get issuer certificate

TL;DR
Developers are encountering "unable to get issuer certificate" error when trying to getDocument due to hidden rate limits. Running database calls in parallel using await Promise.all() is causing a performance bottleneck. The Appwrite team is asked to provide a solution for this issue.
NickTheMusketeer
3 Dec, 2024, 10:27

Example ^

The not found error is what I mark explicitly in my logs.

Are there rate limits for getDocument ?

NickTheMusketeer
3 Dec, 2024, 10:31

I also get this for trying to creat a document

NickTheMusketeer
3 Dec, 2024, 10:31

I run these queries in parallel, so at any time, a dozen of requests can be sent a second.

NickTheMusketeer
3 Dec, 2024, 10:31

Since there's no bulk upsert facility

NickTheMusketeer
3 Dec, 2024, 10:32

Using await Promise.all()

NickTheMusketeer
3 Dec, 2024, 10:40

When attempting to send database calls in a sequential order, it works fine. It seems like there's some hidden rate limit. If someone from the Appwrite team could answer, I'd be very happy.

NickTheMusketeer
3 Dec, 2024, 10:41

When working with hundreds or thousands of records per minute, not using parallelisation is causing a performance bottleneck.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more