Skip to content

Include stack trace when reporting MalformedServerResponseException #1083

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

Open
gnprice opened this issue Nov 25, 2024 · 1 comment · May be fixed by #1374
Open

Include stack trace when reporting MalformedServerResponseException #1083

gnprice opened this issue Nov 25, 2024 · 1 comment · May be fixed by #1374
Labels
a-api Implementing specific parts of the Zulip server API

Comments

@gnprice
Copy link
Member

gnprice commented Nov 25, 2024

When a request to the server fails, we typically show an error to the user. (The main gap in that is #890, which we should fix.) The details of the error can be useful, particularly if the user takes a screenshot of them to include in reporting the issue to us.

If the cause of the error is that the server's response doesn't match our expectations — a MalformedServerResponseException — then a key thing we want to know is where in the schema the mismatch occurred: what field of what type of object. That information isn't in the error message itself, but it is in the stack trace. For example see this error caused by #1082.

So we should show the stack trace when reporting a MalformedServerResponseException. This is most important for a registerQueue request (#890) just because that's the most sprawling data schema; but it can matter for other request types too.

@gnprice gnprice added the a-api Implementing specific parts of the Zulip server API label Nov 25, 2024
@gnprice gnprice added this to the M5: Launch milestone Nov 25, 2024
gnprice added a commit to gnprice/zulip-flutter that referenced this issue Nov 25, 2024
For a malformed-response error this is essential because it pinpoints
where in the data schema the mismatch occurred between our expectations
and the server's behavior.

There's more to do here (zulip#890 for getting this to the user in cases
like a malformed response, so they can screenshot it when reporting
an issue; zulip#1083 for including stack traces when relevant in showing
other errors to the user) but this is a start.
chrisbobbe pushed a commit that referenced this issue Nov 25, 2024
For a malformed-response error this is essential because it pinpoints
where in the data schema the mismatch occurred between our expectations
and the server's behavior.

There's more to do here (#890 for getting this to the user in cases
like a malformed response, so they can screenshot it when reporting
an issue; #1083 for including stack traces when relevant in showing
other errors to the user) but this is a start.
lakshya1goel added a commit to lakshya1goel/zulip-flutter that referenced this issue Feb 23, 2025
@lakshya1goel
Copy link
Contributor

Hello, I have opened PR #1374 for fixing this issue - PTAL, Thanks!

lakshya1goel added a commit to lakshya1goel/zulip-flutter that referenced this issue Feb 27, 2025
lakshya1goel added a commit to lakshya1goel/zulip-flutter that referenced this issue Mar 9, 2025
lakshya1goel added a commit to lakshya1goel/zulip-flutter that referenced this issue Mar 18, 2025
lakshya1goel added a commit to lakshya1goel/zulip-flutter that referenced this issue Mar 22, 2025
lakshya1goel added a commit to lakshya1goel/zulip-flutter that referenced this issue Mar 25, 2025
lakshya1goel added a commit to lakshya1goel/zulip-flutter that referenced this issue Apr 2, 2025
lakshya1goel added a commit to lakshya1goel/zulip-flutter that referenced this issue Apr 2, 2025
lakshya1goel added a commit to lakshya1goel/zulip-flutter that referenced this issue Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-api Implementing specific parts of the Zulip server API
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants