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

REST query failures should give meaningful error messages #2396

Closed
ghost opened this issue Mar 25, 2020 · 0 comments · Fixed by #2400
Closed

REST query failures should give meaningful error messages #2396

ghost opened this issue Mar 25, 2020 · 0 comments · Fixed by #2400

Comments

@ghost
Copy link

ghost commented Mar 25, 2020

When the REST query for the Streams instance fails, kKeyError: 'requestObj' together with a Python stack trace is displayed. The REST response in such a case can be like this:

{
  "_messageCode_": "Not Found",
  "_statusCode_": 404,
  "exception": "ServiceInstanceRecordNotFound",
  "message": "Not Found"
}

The rest primitive code should evaluate the message code and continue only in case of _messageCode_ = success instead of running into KeyError when the JSON response is accessed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant