Skip to content

Timeout error returns non-valid Javascript object #744

Open
@jackspaniel

Description

@jackspaniel

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions