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: ignore failed json parse #189

Merged
merged 2 commits into from
Jul 16, 2024
Merged

Fix: ignore failed json parse #189

merged 2 commits into from
Jul 16, 2024

Conversation

katspaugh
Copy link
Member

The delete transaction endpoint returns "OK" instead of a JSON. This seems to only happen in Cypress, so the behavior is not consistent across browsers (probably a bug in the CGW, @iamacook @hectorgomezv ?).

Anyway, this PR ignores non-JSON payloads and relies solely on the HTTP status code to return an error or success.

Copy link
Member

@usame-algan usame-algan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@katspaugh katspaugh merged commit 9f85795 into main Jul 16, 2024
4 checks passed
@katspaugh katspaugh deleted the ignore-json branch July 16, 2024 11:23
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