forked from celestiaorg/celestia-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: catch context errors from http provider (celestiaorg#1160)
It seems from attempts to perform state sync that the light client is not correctly detecting when the context gets cancelled or the deadline is exceeded as the error is being wrapped ``` �[90m12:53PM�[0m �[32mINF�[0m error from light block request from primary, removing... �[36merror=�[0m�[31m"post failed: Post \"https://rpc-snapscale.lunaroasis.net:443\": context deadline exceeded"�[0m �[36mheight=�[0m354290 �[36mmodule=�[0mlight �[36mprimary=�[0m{} ``` This PR checks to see if `context deadline exceeded` is contained within the error and then returns the actual context error
- Loading branch information
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters