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

Ethereum transaction WebSocket appears to be broken #7

Closed
Pentagrade opened this issue Feb 11, 2020 · 9 comments
Closed

Ethereum transaction WebSocket appears to be broken #7

Pentagrade opened this issue Feb 11, 2020 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@Pentagrade
Copy link

(Hi, really cool project btw)

I visited the site today noticing Ethereum transactions were absent. Digging in the console I can see the WebSocket it is trying to contact for ethereum tx info is returning a 503. I'm guessing the socket is broken or dead.

Just thought I'd bring this to attention as an issue for anyone wondering why it's not working.

WebSocket connection to 'wss://ethersocket.herokuapp.com/' failed: Error during WebSocket handshake: Unexpected response code: 503

@bra1n
Copy link
Owner

bra1n commented Feb 11, 2020

Hi,
I'm aware of this issue but I wasn't able to find a solution for it yet. So far, the websocket that Cryptolights has been using was proxying the live transaction data from http://ethviewer.live/. Since that server went offline, I haven't found a new source that provides real-time unverified transactions that I could fetch through a socket. If you have any sources for this (and they have to be unverified transactions!) then please let me know and I'll update the page.

@bra1n bra1n added bug Something isn't working help wanted Extra attention is needed labels Feb 11, 2020
@Pentagrade
Copy link
Author

Hi bra1n, I'm hoping pending transactions are the same as unverified, in which case I can see the difficulty clearly.

I went through a few pages here and there and found that Infura and Amberdata allow subscriptions to pending transactions. Here's a link to the docs for Amberdatas implementation: https://docs.amberdata.io/reference#ws-pending-transaction

Hope that helps, I believe they allow for a free API key, not sure if its rate limited however

@bra1n
Copy link
Owner

bra1n commented Feb 11, 2020

Ah yes, pending is what I meant. :-) Good find there, I'll look into the API and see if I can get the transactions through that. It seems that "raw blockchain events" should be included in the free tier, so I'll give it a try when I have a bit of time. Thanks!

@bra1n bra1n assigned bra1n and unassigned Pentagrade Feb 11, 2020
@bra1n bra1n removed the help wanted Extra attention is needed label Feb 11, 2020
@Pentagrade
Copy link
Author

Pentagrade commented Feb 12, 2020

No problem, happy to help where I can :)

@bra1n
Copy link
Owner

bra1n commented Feb 14, 2020

Alright, looks like that API works and Ethereum is back up. Thanks again for researching this alternative! :-)

@bra1n bra1n closed this as completed Feb 14, 2020
@Pentagrade
Copy link
Author

I haven't noticed anything on the site yet, has it been released?

@bra1n
Copy link
Owner

bra1n commented Feb 17, 2020

It has... but it seems like the Amberdata websocket isn't sending data anymore. I'll have to investigate, maybe it got rate-limited super fast. :-/

@bra1n bra1n reopened this Feb 17, 2020
@bra1n
Copy link
Owner

bra1n commented Feb 20, 2020

Alright, I added some code that cycles the socket every 5 minutes for my Heroku proxy server, let's see if that solves the issue. If it doesn't, then Amberdata might not be suitable after all...

@bra1n
Copy link
Owner

bra1n commented Feb 25, 2020

That seems to have done the trick.

@bra1n bra1n closed this as completed Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants