Skip to content

Conversation

@0xFirekeeper
Copy link
Member

@0xFirekeeper 0xFirekeeper commented Mar 12, 2025

PR-Codex overview

This PR focuses on improving error handling in the Thirdweb.RPC and Thirdweb.Storage components by refining exception messages and updating test cases to reflect accurate HTTP status codes.

Detailed summary

  • In Thirdweb.RPC.Tests.cs, changed the variable name from ex to exception and added an assertion to check if the exception message contains "Unauthorized".
  • In ThirdwebRPC.cs, added a check for "Unauthorized" response and threw an HttpRequestException if matched.
  • In Thirdweb.Storage.Tests.cs, updated the test method name from DownloadTest_400 to DownloadTest_404 and changed the URL to an invalid one, asserting for a "404" status instead of "400".

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@0xFirekeeper 0xFirekeeper merged commit 9b69090 into main Mar 12, 2025
2 of 3 checks passed
@0xFirekeeper 0xFirekeeper deleted the firekeeper/fix-tests branch March 12, 2025 19:14
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.

2 participants