Skip to content

More info on hanging https calls #70

@skilesare

Description

@skilesare

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