Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: node 18 error #92

Merged
merged 2 commits into from
Jun 7, 2023
Merged

Conversation

IgorShadurin
Copy link
Collaborator

@IgorShadurin IgorShadurin commented Mar 2, 2023

The error occurs when requesting from Node 18 to a bee node (1.11.1) using the beeDebug.getNodeAddresses() method.
It looks like the bee node sends a response with a missing header, or the response is processed incorrectly.

Also, the error disappears if you use the '--no-experimental-fetch' flag for Node 18. Because Node 18 introduced its own fetch, it seems that node-fetch uses this built-in fetch and therefore we get different behavior on different versions of the node.

Some information about the bug: nodejs/undici#583

Close #91

Copy link
Collaborator

@nugaon nugaon left a comment

Choose a reason for hiding this comment

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

Thanks for your findings @IgorShadurin !
Please give it a try with upgrading the bee-js version to 5.1.0 and if it still does not work then let this issue known in some form for the Bee API team.

@IgorShadurin
Copy link
Collaborator Author

5.1.0 didn't help. Created an issue: ethersphere/bee-js#840 @nugaon

Shadowfiend added a commit to thesis/valkyrie that referenced this pull request Apr 10, 2023
Seen in fairDataSociety/fdp-play#92 as a
potential fix for the mysterious SocketError that's killing the Figma
integration at startup.
Shadowfiend added a commit to thesis/valkyrie that referenced this pull request Apr 10, 2023
Seen in fairDataSociety/fdp-play#92 as a
potential fix for the mysterious SocketError that's killing the Figma
integration at startup.
Shadowfiend added a commit to thesis/valkyrie that referenced this pull request Apr 11, 2023
Seen in fairDataSociety/fdp-play#92 as a
potential fix for the mysterious SocketError that's killing the Figma
integration at startup.
@tfius tfius mentioned this pull request Jun 7, 2023
@tfius tfius merged commit 6b39a98 into fairDataSociety:master Jun 7, 2023
@nugaon
Copy link
Collaborator

nugaon commented Jun 16, 2023

Release v2.2.0 addresses this.

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.

Fix to work with Node 18
3 participants