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

PXP-633: Better error handling if there is failure on JSON decode #180

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

mfauzaan
Copy link
Member

@mfauzaan mfauzaan commented Dec 1, 2023

Currently the Wukong CLI is expecting a proper response which are defined on the grapql schema. If the response is diff it throws an error with this error
Error - error decoding response body: expected value at line 1 column 1

I've handled this and throw MissingResponseData instead to make it more readable to the end user

Summary

Ticket: https://mindvalley.atlassian.net/browse/PXP-633

What's Changed

  • Additional handling for json decoding error

@mfauzaan mfauzaan self-assigned this Dec 1, 2023
@mfauzaan mfauzaan added enhancement New feature or request and removed size/XS labels Dec 1, 2023
@mfauzaan mfauzaan marked this pull request as ready for review December 1, 2023 06:50
@mfauzaan mfauzaan requested review from jk-gan and onimsha December 1, 2023 07:22
@onimsha onimsha merged commit 8836fb7 into main Dec 5, 2023
5 checks passed
@sauron-droid
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mfauzaan, onimsha

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sauron-droid sauron-droid deleted the feat/handle-response-decode-error branch December 5, 2023 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/S
Development

Successfully merging this pull request may close these issues.

3 participants