Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

More info on hanging https calls #70

Open
Open
More info on hanging https calls#70

Description

I have this dumb error that I do all the time and the following helps me figure out what I've done. I have a number of set up functions that I don't really care about the results and they always seem to work when i don't use await. But then the context stays open past the test and I get a bunch of "Instance was deleted" errors.

I made this update to the HTTP client and now it tells me what it was trying to do when the error occurs and it helps me find my error.

if ('message' in resBody) {
console.error('PocketIC server encountered an error', resBody.message, init.path, init.body);
throw new Error(resBody.message);
}

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