You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agree if you are suggesting that we might want to refactor the code to throw an exception in case of failure, and remove the boolean "false" response case altogether from the code.
Agree if you are suggesting that we might want to refactor the code to throw an exception in case of failure, and remove the boolean "false" response case altogether from the code.
It's not the false in general (who knows, maybe JIRA will return json-encoded false and this is valid response). It's returning false when we should have thrown exception instead.
I'm afraid we need to analyze each API call defined in REST API (even if we don't use it) to see what needs to be done on our side.
For example HTTP 404 code surely means item not found and should end up with exception, but not treated as such. For that 404 code I've created separate task already.
Since these methods iterate on the result before checking the value they might be getting a false returned from the Api and get errors in the foreach.
Affected (at least)
The text was updated successfully, but these errors were encountered: