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.

Signature for this request is not valid error on withdrawal operation

See original GitHub issue

few days ago start to receive this error when try to withdraw from binance.

Solved by manyally replace signature from URL into form body.


const signedRequest = ( url, data = {}, callback, method = 'GET', noDataInSignature = false ) => {
...
 if ( method === 'POST' ) {
            let opt = reqObjPOST(
                url,
                data,
                method,
                Binance.options.APIKEY
            );
            opt.form.signature = signature
            // + '?signature=' + signature
            // let opt = reqObjPOST(
            //     url + '?signature=' + signature,
            //     data,
            //     method,
            //     Binance.options.APIKEY
            // );
            // console.log(opt)
            proxyRequest( opt, callback );

...

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:10
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
teramitcommented, Apr 20, 2020

@DeveloperAriana, i did exactly same and my keys are true but not worked 😦 if i change like this withdraw fails and even trade fails. @jaggedsoft edit: ok it worked for me too, seems like i wasnt using last version of this script so after update and using this revision now withrawals are working great, thanks

1reaction
DeveloperArianacommented, Apr 17, 2020

hola @DeveloperAriana, ¿puedes describir cómo lo arreglaste ? Apliqué el cambio de código pero no funcionó para mí.

Hello, I made the same modification that I comment @PaulMuller , I went to the node-modules folder of my project, specifically node-binance-api and I modified the file called node-binance-api.js. Attached image of how the file is finally api

If this still doesn’t work for you, make sure your keys are correct

Read more comments on GitHub >

github_iconTop Results From Across the Web

{Signature for this request is not valid} error for Binance ...
i dont have any problem with trade, orderbook and balance view with same signature, only withdraw gives signature error. javascript · node.js ...
Read more >
Binance API Error Code: "code": -1022, "msg": "Signature for ...
I use HTTP request from Integromat, but I always get the following error message: "code": -1022, "msg": "Signature for this request is not...
Read more >
FAQ: Signature for this request is not valid. - API
For new users to API, one of the most common questions is how to work out the signature. The error code and message...
Read more >
API error messages - Kraken Support
Invalid signature errors occurs if either your API key or API secret are written incorrectly in your program or because the POST data...
Read more >
Crypto withdrawals troubleshooting tips - CEX.IO Help Center
Sometimes, mistakes in withdrawal requests may lead to a loss of funds. ... only personal wallets and check your destination address before every...
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