Back

Unexpected curl error between proxy and executor ID exc5 (104): Connection reset by peer\nError Code

  • 0
  • Functions
  • Cloud
Chandan Gowda
31 Dec, 2023, 09:19

Timeout was 30 before.

TL;DR
The user is experiencing a curl error between a proxy and executor ID exc5. They are dependent on external APIs and cannot change this. They are looking for a workaround and have been suggested to make their function finish faster, use queries to filter and sort, and consider breaking the function into smaller, more frequent executions. The user is also concerned about the error occurring even after increasing the timeout. The solution suggested is to try to make the function run faster and increase the timeout if necessary.
Chandan Gowda
31 Dec, 2023, 09:19

Cron schedule is every weekday at 4:30 UTC

Drake
31 Dec, 2023, 17:31

Ok so increasing it will help

Drake
31 Dec, 2023, 17:31

I would try to make it run faster, though. The longer it runs without completing successfully, the more likely it is to be killed and removed due to inactivity

Chandan Gowda
31 Dec, 2023, 17:49

If there are 20k documents, I’m querying it for the top 13 records based on time and correct answer.

Chandan Gowda
31 Dec, 2023, 17:49

We might get over 100k submissions too

Chandan Gowda
31 Dec, 2023, 17:49

What’s the best way.

Chandan Gowda
31 Dec, 2023, 17:50

I’m getting that error after increasing alsoo

Drake
31 Dec, 2023, 17:57

Use queries to filter and sort.

https://appwrite.io/docs/products/databases/queries#query-class https://appwrite.io/docs/products/databases/order

You should also look into breaking your function to perform smaller, more frequent executions

Chandan Gowda
31 Dec, 2023, 18:04

Yess. I have used it.

Chandan Gowda
31 Dec, 2023, 18:04

Whats the ideal timeout for my case ?

Drake
31 Dec, 2023, 18:05

You set it to how long it typically runs for ..

But the long running execution is a separate problem you should address

Chandan Gowda
31 Dec, 2023, 18:10

Okayy. But why do I this error ?

Chandan Gowda
31 Dec, 2023, 18:16

Yeahh but the max timeout is 900secs right ?

Chandan Gowda
31 Dec, 2023, 18:16

Mine’s not even going over 30secs

Drake
31 Dec, 2023, 18:17

No, this is irrespective of your timeout

Chandan Gowda
31 Dec, 2023, 18:18

Its bot taking so much time know then. Why is it getting killed

Chandan Gowda
31 Dec, 2023, 18:24

Thanks. Got it.

Chandan Gowda
31 Dec, 2023, 18:25

Is there any workaround for resolving this ?

Drake
31 Dec, 2023, 18:31

Make your function finish faster...

Chandan Gowda
31 Dec, 2023, 18:32

Is that the only option ? Coz my function depends upon other apis.

Drake
31 Dec, 2023, 18:52

I would focus on what I suggested

Chandan Gowda
2 Jan, 2024, 14:40

Actually, we dont have that option since we are dependent on external APIs.

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