question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Err 404 when buy,sell, etc..

See original GitHub issue

I’m using local server on a Chrome browser to run the following code:

` const binance = require(‘./node-binance-api.js’);

binance.options({ APIKEY: ‘MY-API-KEY’, APISECRET: ‘*MY-SECRET-API’, useServerTime: false, // If you get timestamp errors, synchronize to server time at startup test: true // If you want to use sandbox mode where orders are simulated });

binance.prices(‘ETHBTC’, (error, ticker) => { console.log("Price of ETHBTC: ", ticker.ETHBTC); });

var quantity = 0.05 ; binance.marketBuy(“ETHBTC”, quantity); `

I’ve gotten the binance.prices to work using this wrapper, however, whenever there is a more secure network is needed, which involve my API-key or Secret-Key, i cannot seem to retrieve information.

My assumptions for this possibility:

  1. Chrome browser is not supported by binance api server
  2. My API-Key/Secret-Key are banned from binance api
  3. Code is not primed for more secure options

Let me know what you think. Thanks in advance!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
DoTradesWellcommented, Feb 5, 2018

I’ve tried CORS browser extension to bypass some preflights with allow orgin headers, however, this only worked for “GET” functions. As soon as I attempted “POST”, I’ve tried adding headers that were shown in public api but this only resulted in errors of 400, 401, 404.

I am convinced you’re right, and I’m going to attempt server-side (if possible) rather than client-side.

Thank you for your answer. I might be back with an update on my situation.

1reaction
jaggedsoftcommented, Feb 5, 2018

I think people have had some success with electron, turning it into a desktop app https://electronjs.org But I haven’t tested it for that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting '[Errno 14] HTTPS Error 404
Generally, the [Errno 14] HTTPS Error 404 - Not Found error is observed due to inconsistent metadata of the repositories or if the...
Read more >
5 Ways to Turn a 404 Error into a Sale - Neil Patel
To sum it up, a 404 error is an HTTP status code that means the server couldn't locate the page you were trying...
Read more >
Error 404 not found - What does it mean & how to fix it! - IONOS
The typical trigger for an error 404 message is when website content has been removed or moved to another URL. There are also...
Read more >
[IC]JTK ERROR 404 (11.26 Updated) - Geekhack
A 404 page is a page returned when the client is browsing the web page and the server cannot provide information properly or...
Read more >
What Is a 404 Error? How to Deal With the Web Error
A 404 error indicates that the webpage you're trying to reach can't be found, and usually means that the page has moved or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found