Fork me on GitHub
#fulcro
<
2021-12-14
>
abdullahibra12:12:52

hi guys, is there any way to increase the timeout between frontend and backend for specific transaction?

Jakub Holý (HolyJak)12:12:07

What in particular is throwing the timeout error? Some backend middleware?

abdullahibra13:12:51

when I transact some computation which will take more than 60sec, I got parallel read timeout error, I can confirm the backend take more than 60s so seems the transaction goes to failure status after that time exceed

Jakub Holý (HolyJak)14:12:35

Is the backend returning the error? Is it a setting in pathom or in a Ring middleware or in the http server itself? Can you determine that?

tony.kay14:12:08

The network timeouts come from multiple places: the server, load balancers, client http remote. There's no way for fulcro to have control over it all. In general a request that is actively transferring data won't time out, but you have transfer limits in some cases as well... Eg AWS API gateway limits you to 10mb both ways I think . 30 second is typical for a request that is computational. You have two options to go above that reliably. Polling and websockets

tony.kay14:12:37

Make a mutation that starts the computation and adding it auuid you return. The make a load that takes the uuid as a parameter and reports the result and cleans it up.

tony.kay14:12:03

Sorry on phone, so autocorrect...

abdullahibra14:12:15

here is the exact error I have got

tony.kay14:12:30

Ah. That's pathom internals. Ask on #pathom

abdullahibra14:12:29

Perfect. Thank you