question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: HTTP Error 403: Forbidden Requesting returnOpenLoanOffers

See original GitHub issue

After changing notify_summary_minutes to a number to fix #241, I ran into this error message

pi@raspberrypi:~/Programs/poloniexlendingbot $ python lendingbot.py
Welcome to Poloniex Lending Bot
2017-02-25 07:53:11 Error: HTTP Error 403: Forbidden Requesting returnOpenLoanOffers
Traceback (most recent call last):
  File "lendingbot.py", line 71, in <module>
    Lending.cancel_all()
  File "/home/pi/Programs/poloniexlendingbot/modules/Lending.py", line 137, in cancel_all
    loan_offers = api.return_open_loan_offers()
  File "/home/pi/Programs/poloniexlendingbot/modules/Poloniex.py", line 153, in return_open_loan_offers
    loan_offers = self.api_query('returnOpenLoanOffers')
  File "/home/pi/Programs/poloniexlendingbot/modules/Poloniex.py", line 104, in api_query
    ret = urllib2.urlopen(urllib2.Request('https://poloniex.com/tradingApi', post_data, headers))
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

Unhandled error, please open a Github issue so we can fix it!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
KaufNationcommented, Apr 7, 2017

How did you fix this…? Having the same issue

Thanks

0reactions
manzabicommented, May 24, 2017

I believe you have to enable 2FA first, then request api key. I had the same problem, solved disabling 2FA and re-enabling it

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP Error 403 Forbidden: What It Means and How to Fix It
The 403 (Forbidden) status code indicates that the server understood the request but refuses to authorize it...If authentication credentials ...
Read more >
What Is the 403 Forbidden Error and How to Fix It (8 Methods ...
403 Forbidden – you don't have permission to access this resource is an HTTP status code that occurs when the web server understands...
Read more >
HTTP Error 403: What is 403 Forbidden Error and How to fix it
Error 403 happens when the server does not recognize or denies access to a website due to problems with WordPress settings. Learn more...
Read more >
403 Forbidden - HTTP - MDN Web Docs - Mozilla
The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.
Read more >
403 Forbidden error: What it is and how to fix it - Allconnect.com
You may also see it appear as: 403 forbidden; 403 error; 403 forbidden access; HTTP 403; Status code 403; Access denied. Before we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found