-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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'
and only the external trycatch works, instead of the promised one
Metadata
Metadata
Assignees
Labels
No labels