adshao / go-binance

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

Optimize request error handling process #572

Closed xyq-c-cpp closed 1 week ago

xyq-c-cpp commented 1 week ago

In some cases, the REST API will return a response with the body:

{"error": "Internal error: 1"}

When this happens, it returns an ApiError that shows nothing meaningful when the user calls the REST API interface. Optimize the request error handling process to make the error more meaningful.

adshao commented 1 week ago

Hi @xyq-c-cpp , please check the review comment.

xyq-c-cpp commented 1 week ago

Hi @xyq-c-cpp , please check the review comment.

hi, see the response for the review comment.