Back

[SOLVED] Server error

  • 0
  • Functions
Binyamin
2 Jul, 2023, 16:35

Double check that all the fields in the data are correct.

TL;DR
The user encountered a server error but it has been resolved. They were discussing rate limits, API keys, and the number of queries in a loop. They mentioned that seeing the code would be helpful for debugging. The solution suggested was to double check the fields in the 'data'.
Hemish11
2 Jul, 2023, 16:38

I did tried it and now its not giving the error

Hemish11
2 Jul, 2023, 16:38

But still, not all the expected queries are done

Hemish11
2 Jul, 2023, 16:38

and also, it takes too long to clear all queries

Binyamin
2 Jul, 2023, 16:38

It will be a bit hard to debug it without being able to see the code-flow.

Hemish11
2 Jul, 2023, 16:39

Its something like inside a loop

Binyamin
2 Jul, 2023, 16:39

I'll need to see and get the big picture

Hemish11
2 Jul, 2023, 16:39

and in loop, all the queries are made

Binyamin
2 Jul, 2023, 16:39

Can you create a redacted version of it.

Binyamin
2 Jul, 2023, 16:40

How many queries & executions inside one-loop cycle? And what is the total cycles of the loop?

Hemish11
2 Jul, 2023, 16:40

Maybe around 25-30 queries

Hemish11
2 Jul, 2023, 16:40

but in real world it will be far more

Binyamin
2 Jul, 2023, 16:41

So it best to have some way to see the code to get a grasp of the process.

Hemish11
2 Jul, 2023, 16:42

Well, is there any rate limit on it

Binyamin
2 Jul, 2023, 16:42

Not if you're using API key.

Hemish11
2 Jul, 2023, 16:42

The code will be doing about 150 or more db create queries per function call

Hemish11
2 Jul, 2023, 16:42

Yes, its using api key as its cloud function

Binyamin
2 Jul, 2023, 16:42

Then you won't hit the rate limit.

Hemish11
2 Jul, 2023, 16:42

This wouldnt be a issue right?

Binyamin
2 Jul, 2023, 16:43

Nope

Hemish11
2 Jul, 2023, 16:43

no doubt, calling the function wont be a common thing, it will be preety rare thing

Hemish11
2 Jul, 2023, 16:44

Thanks a lot, now closing it

Hemish11
2 Jul, 2023, 16:44

Server error [Closed]

Hemish11
2 Jul, 2023, 17:11

[Closed] Server error

Hemish11
2 Jul, 2023, 17:11

[SOLVED] Server error

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