Back

database not found & random errors

  • 1
  • Databases
  • Web
  • Cloud
Drake
21 May, 2023, 14:57

What are you trying to do?

TL;DR
User ran into a problem with their database not being found and encountered random errors. They received advice to follow the documentation provided. They discussed whether to use Appwrite Function or NextJS Serverless Function. User questioned if making around 300 calls from the server at once would result in rate limiting. They resolved the issue by adding a delay. The user was informed that once the cloud is upgraded, the problem should be resolved. The conversation continues about rate limits and potential solutions, such as adding a delay between each call. It is mentioned that end users will be performing this function in the app, specifically creating and deleting an array of documents.
Ketan Saraf
21 May, 2023, 14:58

Basically deleting an array of documents

Ketan Saraf
21 May, 2023, 14:58

or creating an array of documents

Drake
21 May, 2023, 14:58

End users will be doing this (this is a normal function of your app)?

Ketan Saraf
21 May, 2023, 14:58
Ketan Saraf
21 May, 2023, 14:58

Yes

Drake
21 May, 2023, 14:59

For now, maybe a delay between each

Drake
21 May, 2023, 15:00

Long term...couldn't users easily hit the rate limits due to this?

Ketan Saraf
21 May, 2023, 15:02

Their use case will work with 120/min

Ketan Saraf
21 May, 2023, 15:03

They will max delete 10-20 at a time and same for creating as well

Ketan Saraf
21 May, 2023, 15:03

I will try with a delay

Drake
21 May, 2023, 15:08

FYI, once cloud is upgraded, this problem should go away

Ketan Saraf
21 May, 2023, 15:12

Okay, thank you. Fixed now

Drake
21 May, 2023, 15:18

How'd you add the delay?

Ketan Saraf
21 May, 2023, 15:19

Didn't add a "delay" but basically I am making all the calls one by one

Ketan Saraf
21 May, 2023, 15:21

Hey, will I be rate-limited if I make around 300 calls from the server at once?

Drake
21 May, 2023, 15:27

From the server? With an API key?

Ketan Saraf
21 May, 2023, 15:27

Yes

Drake
21 May, 2023, 15:28

Those aren't rate limited

Ketan Saraf
21 May, 2023, 15:28

Okay awesome!

Ketan Saraf
21 May, 2023, 15:28

Would it be better to create a Appwrite Function for this or a normal NextJS Serverless Function

Drake
21 May, 2023, 15:30

Appwrite Function. That's what they were created for

Ketan Saraf
21 May, 2023, 15:31

Okay, great! Wanted to try it as well

Drake
21 May, 2023, 15:32

Make sure to follow the docs: https://appwrite.io/docs/functions

Ketan Saraf
21 May, 2023, 18:09

Was able to do it successfully. But ran into another problem 😦

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