Hello. I’m receiving way too many errors 400
“code”: -1125,
“msg”: “This listenKey does not exist.”
But its not right because for now right after this error I’m sending next request equal to first one (same key, same authorization, everything the same) and its working. What a miracle.
Log:
[1608119452403] INFO (17653 on debian-socket): [WebSocket ID 1244]: Requesting listen key update
[1608119452655] ERROR (17653 on debian-socket): HTTP Request [Error]
http: {
"method": "PUT",
"hostname": "fapi.binance.com",
"port": 443,
"path": "/fapi/v1/listenKey",
"headers": {
"X-MBX-APIKEY": "wbEaWKp8U3*******6BoFlZRmOy",
"X-USER-ID": 1244
},
"httpCode": 400,
"httpMessage": "Bad Request"
}
error: {
"code": -1125,
"msg": "This listenKey does not exist."
}
[1608119452655] INFO (17653 on debian-socket): [WebSocket ID 1244]: Requesting listen key update
[1608119452691] INFO (17653 on debian-socket): HTTP Request [Done]
http: {
"method": "PUT",
"hostname": "fapi.binance.com",
"port": 443,
"path": "/fapi/v1/listenKey",
"headers": {
"X-MBX-APIKEY": "wbEaWKp8U3*********6BoFlZRmOy", // TRUST ME ITS SAME! 100%
"X-USER-ID": 1244
},
"httpCode": 200,
"httpMessage": "OK"
}
Its not 1 key. Its about 2-5% of 1000 keys at same time connected to binance.
But this is ok, I can handle it, But some keys just stop working at all. 3 attempts to PUT give me 400 bad request and I have to stop it. Why? Like it was 4 hours of working, 5th success PUT and for some reason stop working.
What I can do to minimize this errors?
Update: What will happen if user will be using his api key in two third party apps with web-sockets implementation at same time. Will listen key interfere? Most of my customers are using such apps.
Because many keys just receiving this error despite sending PUT quite often and using PING PONG to check web-socket connection