You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When bch-js receives a 429 error from bch-api, it sometimes returns the error message as an object, rather than throwing an error. The proper behavior is to throw an error.
The scope of this Issue is to review the error handlers of endpoints and properly handle 429 errors. This code snippet of validateTxid3() captures how it catches and properly handles 429 errors:
When bch-js receives a 429 error from bch-api, it sometimes returns the error message as an object, rather than throwing an error. The proper behavior is to throw an error.
The scope of this Issue is to review the error handlers of endpoints and properly handle 429 errors. This code snippet of
validateTxid3()
captures how it catches and properly handles 429 errors:The text was updated successfully, but these errors were encountered: