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: fallback to custom error if we can't parse ContentNotFound error #1601

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

morph-dev
Copy link
Collaborator

What was wrong?

The error message of failed JSON response can contain "Unable to locate content on the network" text, but error itself is not ContentNotFound error.

This can happen if ContentNotFound error is nested inside some other message.

Currently, returned response doesn't contain details of the original failure (instead it tells us why parsing failed, in not so useful way).

How was it fixed?

If parsing ContentNotFoundJsonError fails, fallback to generic error message instead.

To-Do

@morph-dev morph-dev added the bug Something isn't working label Dec 7, 2024
@morph-dev morph-dev self-assigned this Dec 7, 2024
Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

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

:shipit:

@morph-dev morph-dev merged commit 3e3f9c2 into ethereum:master Dec 7, 2024
9 checks passed
@morph-dev morph-dev deleted the content_not_found_error branch December 7, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants