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

urlib.error.HTTPError #1

Open
thepercyj opened this issue May 4, 2019 · 0 comments
Open

urlib.error.HTTPError #1

thepercyj opened this issue May 4, 2019 · 0 comments

Comments

@thepercyj
Copy link

thepercyj commented May 4, 2019

The app runs but displays this message in the browser could anybody help me with this issue...

urllib.error.HTTPError

urllib.error.HTTPError: HTTP Error 403: Forbidden
Traceback (most recent call last)

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__

return self.wsgi_app(environ, start_response)

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app

response = self.handle_exception(e)

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception

reraise(exc_type, exc_value, tb)

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise

raise value

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app

response = self.full_dispatch_request()

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request

rv = self.handle_user_exception(e)

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception

reraise(exc_type, exc_value, tb)

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise

raise value

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request

rv = self.dispatch_request()

File "/home/percy/PycharmProjects/lab1/venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)

File "/home/percy/PycharmProjects/lab1/A-Detector/app/mods/mod_anomalies/views.py", line 46, in anomalies

response = urllib.request.urlopen(url)

File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen

return opener.open(url, data, timeout)

File "/usr/lib/python3.6/urllib/request.py", line 532, in open

response = meth(req, response)

File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response

'http', request, response, code, msg, hdrs)

File "/usr/lib/python3.6/urllib/request.py", line 564, in error

result = self._call_chain(*args)

File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain

result = func(*args)

File "/usr/lib/python3.6/urllib/request.py", line 756, in http_error_302

return self.parent.open(new, timeout=req.timeout)

File "/usr/lib/python3.6/urllib/request.py", line 532, in open

response = meth(req, response)

File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response

'http', request, response, code, msg, hdrs)

File "/usr/lib/python3.6/urllib/request.py", line 570, in error

return self._call_chain(*args)

File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain

result = func(*args)

File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default

raise HTTPError(req.full_url, code, msg, hdrs, fp)

urllib.error.HTTPError: HTTP Error 403: Forbidden
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

1 participant