Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Backport HttpProvider changes from web3.js to fix handling server-side errors #670

Merged
merged 1 commit into from Jul 8, 2022
Merged

Conversation

ghost
Copy link

@ghost ghost commented Jul 5, 2022

closes #637

Backported changes from PR web3/web3.js#5085 web3/web3.js#5179 to fix handling server-side errors that return timeouts, rate limits ( 429 ), etc.

@ghost ghost requested review from jimni1222 and aeharvlee as code owners July 5, 2022 08:33
@CLAassistant
Copy link

CLAassistant commented Jul 5, 2022

CLA assistant check
All committers have signed the CLA.

@ghost
Copy link
Author

ghost commented Jul 5, 2022

Capture

Working as intended I think

@jimni1222
Copy link
Contributor

jimni1222 commented Jul 8, 2022

@nazarhussain Hi, Nazarhussain. Could you sign CLA to merge this PR?

@ghost ghost requested a review from jimni1222 July 8, 2022 05:39
@ghost ghost mentioned this pull request Jul 8, 2022
@ghost
Copy link
Author

ghost commented Jul 8, 2022

@jimni1222 Since he is the maintainer of the web3.js project, I could reset the git author if necessary.

@jimni1222
Copy link
Contributor

@ayanamidev Could you please reset the git author then? Because of that commit, i cannot merge this.

web3-providers-http: Migrate from xhr2-cookies to cross-fetch (#5179)

* web3-providers-http: Migrate from xhr2-cookies to cross-fetch (#5085)

* Update CHANGELOG.md

* Migrate from xhr2-cookies to cross-fetch

* Address comments for web3-providers-http

* web3-providers-http: Prevent global leakage of this.connected

* Return server side error without creating additional error object

* Fixed type of http.Agent

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export

* Removed unused variable

* Remove unnecessary catch block

* Remove unnecessary internal _prepareRequest function from web3-providers-http

* ⬆️ Update package-lock.json

* Update packages/web3-providers-http/src/index.js

Co-authored-by: Junaid <86780488+jdevcs@users.noreply.github.com>

* ⚰️ Remove dead code

* 🎨 Improve the with credentials check
@ghost
Copy link
Author

ghost commented Jul 8, 2022

@jimni1222 Done.

Copy link
Contributor

@jimni1222 jimni1222 left a comment

Choose a reason for hiding this comment

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

LGTM =) Thank you for your contribution

@nazarhussain
Copy link

@jimni1222 I had signed the CLA,

@jimni1222 jimni1222 merged commit 97be61f into klaytn:dev Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make error more specific
3 participants