adshao / go-binance

A Go SDK for Binance API
MIT License
1.48k stars 664 forks source link

Futures Client: Constant listenKeyExpired #510

Closed JackG-eth closed 1 week ago

JackG-eth commented 10 months ago

This is with the futures client. WsUserDataServe function err handler returns:

2023/08/30 20:28:39 Error unmarshal. {"e": "listenKeyExpired","E": "1693427319838","listenKey": "KEY"} 2023/08/30 20:28:39 Received error: json: cannot unmarshal string into Go struct field WsUserDataEvent.E of type int64

Receive the above message every 30sec-5mins

listen keys should last 60 minutes and can be permanently extended. Any ideas?

JackG-eth commented 10 months ago

@adshao Have you seen this error before? I ran my program for 3 hours and about 100 new keys were needed.

xyq-c-cpp commented 1 week ago

had fixed this issue, close this.