Created
May 6, 2019 19:50
-
-
Save mkschulze/4002e71525c799ed1930517fec0c8b7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/bitlyshortener/shortener.py", line 137, in _long_url_to_int_id | |
response.raise_for_status() | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status | |
raise HTTPError(http_error_msg, response=self) | |
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api-ssl.bitly.com/v4/shorten | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 2309, in __call__ | |
return self.wsgi_app(environ, start_response) | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 2295, in wsgi_app | |
response = self.handle_exception(e) | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 1741, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise | |
raise value | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app | |
response = self.full_dispatch_request() | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 1815, in full_dispatch_request | |
rv = self.handle_user_exception(e) | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 1718, in handle_user_exception | |
reraise(exc_type, exc_value, tb) | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise | |
raise value | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request | |
rv = self.dispatch_request() | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request | |
return self.view_functions[rule.endpoint](**req.view_args) | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/flask_login/utils.py", line 272, in decorated_view | |
return func(*args, **kwargs) | |
File "/Users/irre/dev/merge/webapp/account/views.py", line 51, in account_createtable | |
short_url = shortener.shorten_urls(new_urls)[0] | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/bitlyshortener/shortener.py", line 197, in shorten_urls | |
short_urls = list(mapper(self._shorten_url, long_urls)) | |
File "/Users/irre/.pyenv/versions/3.7.1/lib/python3.7/concurrent/futures/_base.py", line 586, in result_iterator | |
yield fs.pop().result() | |
File "/Users/irre/.pyenv/versions/3.7.1/lib/python3.7/concurrent/futures/_base.py", line 432, in result | |
return self.__get_result() | |
File "/Users/irre/.pyenv/versions/3.7.1/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result | |
raise self._exception | |
File "/Users/irre/.pyenv/versions/3.7.1/lib/python3.7/concurrent/futures/thread.py", line 57, in run | |
result = self.fn(*self.args, **self.kwargs) | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/bitlyshortener/shortener.py", line 167, in _shorten_url | |
url_id = self._long_url_to_int_id(long_url) | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/bitlyshortener/shortener.py", line 156, in _long_url_to_int_id | |
raise exc.RequestError(msg) from None | |
bitlyshortener.exc.RequestError: The response status code is 400 and so the request will not be reattempted. The error is: HTTPError: 400 Client Error: Bad Request for url: https://api-ssl.bitly.com/v4/shorten |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment