Created
May 5, 2019 12:15
-
-
Save mkschulze/3fff041cc761a8f019b42b4e51ac59bd 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/me/dev/merge/.venv/lib/python3.7/site-packages/bitlyshortener/shortener.py", line 132, in _long_url_to_int_id | |
response.raise_for_status() | |
File "/Users/me/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/me/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 2309, in __call__ | |
return self.wsgi_app(environ, start_response) | |
File "/Users/me/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 2295, in wsgi_app | |
response = self.handle_exception(e) | |
File "/Users/me/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 1741, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "/Users/me/dev/merge/.venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise | |
raise value | |
File "/Users/me/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app | |
response = self.full_dispatch_request() | |
File "/Users/me/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/me/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/me/dev/merge/.venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise | |
raise value | |
File "/Users/me/dev/merge/.venv/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request | |
rv = self.dispatch_request() | |
File "/Users/me/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/me/dev/merge/.venv/lib/python3.7/site-packages/flask_login/utils.py", line 272, in decorated_view | |
return func(*args, **kwargs) | |
File "/Users/me/dev/merge/webapp/account/views.py", line 54, in account_createtable | |
short_url = shortener.shorten_urls(new_url) | |
File "/Users/me/dev/merge/.venv/lib/python3.7/site-packages/bitlyshortener/shortener.py", line 191, in shorten_urls | |
short_urls = list(mapper(self._shorten_url, long_urls)) | |
File "/Users/me/.pyenv/versions/3.7.1/lib/python3.7/concurrent/futures/_base.py", line 586, in result_iterator | |
yield fs.pop().result() | |
File "/Users/me/.pyenv/versions/3.7.1/lib/python3.7/concurrent/futures/_base.py", line 432, in result | |
return self.__get_result() | |
File "/Users/me/.pyenv/versions/3.7.1/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result | |
raise self._exception | |
File "/Users/me/.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/me/dev/merge/.venv/lib/python3.7/site-packages/bitlyshortener/shortener.py", line 162, in _shorten_url | |
url_id = self._long_url_to_int_id(long_url) | |
File "/Users/me/dev/merge/.venv/lib/python3.7/site-packages/bitlyshortener/shortener.py", line 151, 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