Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More info on hanging https calls #70

Open
skilesare opened this issue Nov 19, 2024 · 0 comments
Open

More info on hanging https calls #70

skilesare opened this issue Nov 19, 2024 · 0 comments

Comments

@skilesare
Copy link

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);
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant