forwardemail / forwardemail/superagent

Timeout error returns non-valid Javascript object

Open
#744 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Maybe I am missing something here. But here is what I see in the err argument for a call that times out:

```
call.end(function(err, response) {
console.log(err); // { [Error: timeout of 1ms exceeded] timeout: 1 }
console.log(JSON.stringify(err)); // {"timeout":1}
console.log(typeof err); // object
```

It seems like the error message is somehow getting tacked onto the err object w/o a proper key?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.