how to increase 10s timeout on route api?

Hey! is there a way to increase the default timeout on routes ? I guess the current timeout is 10 seconds. This way does not work : export const options = { timeoutMS: 30000, };
4 Replies
~/eric
~/eric6d ago
hi, could we talk more detail?
Dodo
DodoOP6d ago
Hello, I’m calling a gadget route from another application, and the data processing takes more than 10 seconds, which triggers an http 500 error [GraphQL] GGT_TRANSACTION_TIMEOUT: Can't execute a GraphQL statement because the transaction has timed out. This isn’t a performance issue, it’s just due to the large amount of data being looped through I would like the system to allow waiting up to 30 seconds
[Gadget] yandu
This is a timeout from inside of a database transaction, the timeout cannot be increased. If you need more time then you need to loop through your data outside of a transaction.
Dodo
DodoOP6d ago
Okay thanks @[Gadget] yandu

Did you find this page helpful?