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

Fix Similarweb "body used" error #6

Merged

Conversation

hkamran80
Copy link
Member

If a Similarweb response is not OK (status code not in the range of 200-299), then the test would continue after writing throwing or adding a warning. This PR updates the !res.ok block to return 1, which signifies an unsuccessful response.

The error being displayed was: Body has already been used. It can only be used once. Use tee() first if you need to read it twice.

@Carlgo11 Carlgo11 merged commit c68088e into 2factorauth:master Dec 17, 2024
@hkamran80 hkamran80 deleted the similarweb/fix-body-used-error branch December 18, 2024 00:20
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

Successfully merging this pull request may close these issues.

2 participants