We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, there is a simple example with the latest version of the tiny package
try{ const data = {test: true}; await tiny.post({ url: 'some url for post tests', data, timeout: 15000, headers: {Authorization: 'Bearer ' + token}, }).then(({body})=>({ok: true, data: body})).catch((e)=>({ok: false, err: e.message + 'this not working'})); }catch(err){ console.log('this working', err); }
Unfortunately it returns err: 'timeout is not defined'
err: 'timeout is not defined'
and only the external trycatch works, instead of the promised one
The text was updated successfully, but these errors were encountered:
tiny-json-http/dist.js:912:24
if (options.timeout) { opts.timeout = timeout; /// this is the bug. This should be options.timeout }
src code
https://github.com/brianleroux/tiny-json-http/blob/main/_write.js#L44
Sorry, something went wrong.
No branches or pull requests
Hi, there is a simple example with the latest version of the tiny package
Unfortunately it returns
err: 'timeout is not defined'
and only the external trycatch works, instead of the promised one
The text was updated successfully, but these errors were encountered: