api icon indicating copy to clipboard operation
api copied to clipboard

Make time limit on api call

Open Oranjoose opened this issue 3 years ago • 1 comments

Occasionally an api call to a server will just hang indefinitely. I couldn't find in the documentation any way to supply a timeout in case the server hangs. Or am I wrong? Thank you

Oranjoose avatar Apr 17 '22 17:04 Oranjoose

We currently don't have a way to set a timeout on requests, but we'll add one in our upcoming v5 release. Figure we can piggyback off our existing sdk.config() architecture with a timeout property there.

sdk.config({ timeout: 30 });

erunion avatar Apr 18 '22 02:04 erunion