MikaLendingBot icon indicating copy to clipboard operation
MikaLendingBot copied to clipboard

Error: HTTP Error 403: Forbidden Requesting returnOpenLoanOffers.

Open combstraight opened this issue 7 years ago • 18 comments

Hello, getting this error when opening lendingbot.py:

2017-06-26 18:55:08 Error: HTTP Error 403: Forbidden Requesting returnOpenLoanOffers. Poloniex reports: '

combstraight avatar Jun 27 '17 01:06 combstraight

check you KEY/SECRET, make sure you haeve IP filtering set correctly

rnevet avatar Jun 27 '17 08:06 rnevet

I have checked KEY/SECRET, they are both correct. IP filtering has been set off. I am sitll getting the same error.

combstraight avatar Jun 29 '17 04:06 combstraight

Try creating a new Key/Secret.

rnevet avatar Jul 01 '17 19:07 rnevet

The "Nonce Error"-Section from https://www.poloniexlendingbot.com/docs/states-and-errors could be included in the Wiki

tamaskan avatar Jul 08 '17 22:07 tamaskan

https://github.com/BitBotFactory/poloniexlendingbot/blob/master/lendingbot.py#L96 Nonce should be handled here.

rnevet avatar Jul 08 '17 22:07 rnevet

yes it should. would be interesting if it works now and if he message appeared in his log

tamaskan avatar Jul 08 '17 23:07 tamaskan

This Nonce issue has been plaguing me for a while, Yesterday I done a git pull and setup a brand new key, but still getting Nonce issues. If I restart the service then all good and it carries on, but for how long..

Any ideas?

dt2017 avatar Jul 17 '17 18:07 dt2017

Basically if you are using the bot only once with it's own KEY/Secret you shouldn't have any noance issues...

The noance is an increasing number that should always go up between API calls on an API key, a single bot handles this without issues.

rnevet avatar Jul 18 '17 18:07 rnevet

I actually found the issue. I was logging in from a VPN because I was in China and Poloniex required my computer to complete a Captcha test for the API request. The bot has been working fine in Hong Kong where no VPN is required.

combstraight avatar Jul 19 '17 08:07 combstraight

"Poloniex required my computer to complete a Captcha test for the API request" what a dump thing, can you send the response you received, maybe we can somehow indicate to the user. Did you manage to resolve it?

rnevet avatar Jul 19 '17 09:07 rnevet

I have the same problem.

arruah avatar Jul 21 '17 09:07 arruah

@arruah follow the thread, not a bot issue.

rnevet avatar Jul 21 '17 09:07 rnevet

this is a captcha check error,

polonex is asking fill the captcha

2017-07-21 15:30:16 Error: HTTP Error 403: Forbidden Requesting returnActiveLoans. Poloniex reports: '

Poloniex - Bitcoin/Cryptocurrency Exchange

how to solve this error

vensilver avatar Jul 21 '17 10:07 vensilver

https://bitcointalk.org/index.php?topic=2026472.0 might be the key

tamaskan avatar Jul 21 '17 20:07 tamaskan

does the nonce have to be sequential? else, one could just add nonce+math.random() to achieve a higher nonce, or am i wrong. not sure if would help. But also, concerning the bitcointalk discussion, we just had a PR that handled more cloudflare errors, but i think 403 was not one of them.

mchl18 avatar Aug 01 '17 23:08 mchl18

Nonce most be sequential. This bug is not because of the nonce, but related to Poloniex captcha.

rnevet avatar Aug 01 '17 23:08 rnevet

Even I get this error urllib.error.HTTPError: HTTP Error 403: Forbidden

I am using the below code exactly and using the correct key have checked it multiple times. https://pastebin.com/fbkheaRb

Please any help will be really appreciated.

lodha13 avatar Nov 26 '17 09:11 lodha13

Error HTTP Error 403: Forbidden Requesting returnActiveLoans. Poloniex reports: I am also getting the same issue. Did anyone find a way to fix this?

The issue is not seen when I try the API from a United States IP address. Guess Poloniex have region based IP restrictions

Try connecting to a VPN

https://poloniex.com/public?command=returnTicker

You can use this link to check if you current IP address is restricted or not. If your IP is restricted, the above page will ask you to fill a captcha, if not blocked a JSON response will be returned

iyvinjose avatar Aug 05 '18 06:08 iyvinjose