Binance API - Error #27
Closed
Jaszczur11
started this conversation in
General
Replies: 1 comment
-
Correct, Binance has released new endpoints. I corrected it by editing with the new urls, it should work now. Thanks for the tip! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I have had this message for a few days. How do I fix it?
Unable to connect to Binance API FetchError: invalid json response body at https://www.binance.com/en reason: Unexpected token < in JSON at position 0
at /usr/home/Jaszczur/.virtualenvs/Bot1/node_modules/node-fetch/lib/index.js:273:32
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async getBinancePrice (/usr/home/Jaszczur/.virtualenvs/Bot1/bot-lib/external-data/binance.module.js:23:19)
at async FragmentRunningEvent. (/usr/home/Jaszczur/.virtualenvs/Bot1/bot-script/pcs-bot.js:71:24) {
type: 'invalid-json'
Beta Was this translation helpful? Give feedback.
All reactions