pocketnetteam / pocketnet.gui

Decentralized social network based on the blockchain
https://pocketnet.app
Apache License 2.0
84 stars 39 forks source link

EasyNode installation error #539

Closed andyoknen closed 2 years ago

andyoknen commented 2 years ago

The problem is most likely due to the changed transport

Exception happens here: request.on is not a function

https://github.com/pocketnetteam/pocketnet.gui/blob/3e935c27e54c5b4e0b1101baecb2d478013c81bf/proxy16/node/control.js#L533-L536

.on on line 207 is not a function

https://github.com/pocketnetteam/pocketnet.gui/blob/3e935c27e54c5b4e0b1101baecb2d478013c81bf/proxy16/node/applications.js#L202-L227

shpingalet007 commented 2 years ago

Looks like this issue happens due to missing await before proceeding with request object. It returns Promise<Request> instead of Request.

Sandboxed the code and tried to make request after awaiting, and it seems like a solution. Pushing a pull request with changes, it may close this issue.

shpingalet007 commented 2 years ago

While issue looks to be resolved, there is RAM overflow on binary download. Need to be resolved. May affect other parts of Tor transport too... @cenitelas, what do you think?

shpingalet007 commented 2 years ago

Pull #584 removes Tor from node download process. Could be fixed in future pulls.