Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 err problem #10

Open
tellocan opened this issue Apr 17, 2022 · 6 comments
Open

403 err problem #10

tellocan opened this issue Apr 17, 2022 · 6 comments

Comments

@tellocan
Copy link

"_message":"Client error: GET https:\/\/api.huobi.pro\/v1\/account\/accounts\/38039774\/balance?AccessKeyId=944280bb-b14a30b4-867edc95-zrfc4v5b6n&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2022-04-17T00%3A20%3A23&account-id=38039774&Signature=F2v%2FDgzv%2BvvM5rWxLVnMXoLqlxamvUFGy%2Bj1u%2BCdRGc%3D resulted in a 403 Forbidden response:\n\n

This can be caused by the fact that he sometimes gives this problem and sometimes takes account balances without making any mistakes

@leexin
Copy link

leexin commented Apr 18, 2022

experiencing this issue as well. please check

@leexin
Copy link

leexin commented Apr 18, 2022

Found out the cause. Huobi recently changed its GET api rules
https://huobiapi.github.io/docs/spot/v1/en/#rate-limiting-rule

GET request: All parameters are included in URL, and do not carry body(content-length>0), in otherwise will return 403 error code.

In the request for /account/accounts/XXXX/balance, this library is passing body of {"account-id":XXXXX} . So we just need to make sure all GET requests are not sending body.

@zhouaini528
Copy link
Owner

Found out the cause. Huobi recently changed its GET api rules https://huobiapi.github.io/docs/spot/v1/en/#rate-limiting-rule

GET request: All parameters are included in URL, and do not carry body(content-length>0), in otherwise will return 403 error code.

In the request for /account/accounts/XXXX/balance, this library is passing body of {"account-id":XXXXX} . So we just need to make sure all GET requests are not sending body.

I have resolved the issue, you can try again. composer update

@zhouaini528
Copy link
Owner

Huobi changed the problem caused by parameter rules.
https://huobiapi.github.io/docs/spot/v1/en/#request-format

@leexin
Copy link

leexin commented Apr 18, 2022

@zhouaini528 saw your commit at 1357d4b

It will be great if you can release a new version soon. thanks!

@tellocan
Copy link
Author

Found out the cause. Huobi recently changed its GET api rules https://huobiapi.github.io/docs/spot/v1/en/#rate-limiting-rule
GET request: All parameters are included in URL, and do not carry body(content-length>0), in otherwise will return 403 error code.
In the request for /account/accounts/XXXX/balance, this library is passing body of {"account-id":XXXXX} . So we just need to make sure all GET requests are not sending body.

I have resolved the issue, you can try again. composer update

The problem was fixed with the composer update. zhouaini528 buddy 2. You've been solving our problem for the first time. We love you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants