Skip to content

Conversation

@bearpong
Copy link
Contributor

In order to help better error handling, url is added as property on request errors.

This helps project understand which rpc failed. This is important as clients might be using fallback as transport without knowing which rpc is actually being used and which one is throwing timeout or http errors.

This makes all errors consistent with HttpRequestError that exposes the url as class property.

@changeset-bot
Copy link

changeset-bot bot commented Oct 31, 2025

🦋 Changeset detected

Latest commit: 0ba6d17

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 31, 2025

Open in StackBlitz

npm i https://pkg.pr.new/viem@4069

commit: 0ba6d17

@bearpong
Copy link
Contributor Author

bearpong commented Nov 4, 2025

@jxom any chance to review this? It's an easy one, it just bubbles up more info in errors.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant