tiagosiebler / binance

Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & browser support, integration tests, beautification & more.
MIT License
728 stars 264 forks source link

Error: read ECONNRESET #407

Open md-galib-hossain opened 4 months ago

md-galib-hossain commented 4 months ago

at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -4077, code: 'ECONNRESET', syscall: 'read' } . I am trying to use binance api with my pc which is connected to my wifi. I have created a nodejs project with latest version. I have used kucoin api that working fine but binance is not working

tiagosiebler commented 4 months ago

This is a network issue. Is it happening every time you try to do anything, or only sometimes? Could it be you're making a request from an IP in a restricted region (e.g. the US)? Binance has active filtering by IP. I would suggest to try some simpler API calls to see if they return more info.

md-galib-hossain commented 4 months ago

most of the time gets the error and sometimes get the result. I live in bangladesh & i think bangladesh is not restricted from binance.i have tried on testnet and there it worked well only gives error on mainnet

On Mon, Feb 26, 2024 at 4:01 PM Tiago @.***> wrote:

This is a network issue. Is it happening every time you try to do anything, or only sometimes? Could it be you're making a request from an IP in a restricted region (e.g. the US)? Binance has active filtering by IP. I would suggest to try some simpler API calls to see if they return more info.

— Reply to this email directly, view it on GitHub https://github.com/tiagosiebler/binance/issues/407#issuecomment-1963734784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMME4IWQLCO2M355QXOVLOTYVRMPNAVCNFSM6AAAAABDY73K4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRTG4ZTINZYGQ . You are receiving this because you authored the thread.Message ID: @.***>

tiagosiebler commented 4 months ago

ECONNRESET is a network error - if it happens frequently then your network has some kind of issue.

You could try different internet connections to see if that improves things. Otherwise, it might be easier for you to test your project on a more stable environment like a VPS.