Created
May 5, 2019 21:11
-
-
Save mkschulze/2978ab3706812267194f234ad9cbbd3e 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
* Detected change in '/Users/irre/dev/merge/webapp/account/views.py', reloading | |
* Restarting with stat | |
* Debugger is active! | |
* Debugger PIN: 295-664-690 | |
27386 123145393573888 | |
127.0.0.1 - - [05/May/2019 23:09:54] "GET /account HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /static/css/bootstrap.min.css HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/user/ HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /dashboard HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/vendor/select2/select2.css?v=3.5.2 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/admin/css/bootstrap2/admin.css?v=1.1.1 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/vendor/bootstrap-daterangepicker/daterangepicker-bs2.css?v=1.3.22 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/bootstrap/bootstrap2/swatch/default/bootstrap.min.css?v=2.3.2 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/bootstrap/bootstrap2/css/bootstrap-responsive.css?v=2.3.2 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/vendor/jquery.min.js?v=2.1.4 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/vendor/moment.min.js?v=2.9.0 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/bootstrap/bootstrap2/js/bootstrap.min.js?v=2.3.2 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/admin/js/filters.js?v=1.0.0 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/vendor/bootstrap-daterangepicker/daterangepicker.js?v=1.3.22 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/vendor/select2/select2.min.js?v=3.5.2 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/admin/js/actions.js?v=1.0.0 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /static/css/bootstrap.min.css HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/admin/js/form.js?v=1.0.1 HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /account HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /static/css/bootstrap.min.css HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:09:55] "GET /admin/static/bootstrap/bootstrap2/swatch/img/glyphicons-halflings.png HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:10:05] "GET /dashboard HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:10:05] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:10:05] "GET /static/css/bootstrap.min.css HTTP/1.1" 304 - | |
27386 123145393573888 ['config.base_url + "newrequest/" + tableid', 'https://www.google.com'] | |
Error receiving response from endpoint /shorten using token starting with 40b9 for long URL config.base_url + "newrequest/" + tableid in attempt 1 of 2. If this is due to token-specific rate limit, consider using more tokens, although an IP rate limit nevertheless applies. The response status code is 400 and text is {"message":"INVALID_ARG_LONG_URL","resource":"bitlinks","description":"The value provided is invalid.","errors":[{"field":"long_url","error_code":"invalid"}]}. The error is: HTTPError: 400 Client Error: Bad Request for url: https://api-ssl.bitly.com/v4/shorten | |
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 | |
127.0.0.1 - - [05/May/2019 23:10:08] "POST /account/createtable HTTP/1.1" 500 - | |
Traceback (most recent call last): | |
File "/Users/irre/dev/merge/.venv/lib/python3.7/site-packages/bitlyshortener/shortener.py", line 138, 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 56, 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 198, 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 168, 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 157, 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 | |
127.0.0.1 - - [05/May/2019 23:10:08] "GET /account/createtable?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:10:08] "GET /account/createtable?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:10:08] "GET /account/createtable?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:10:08] "GET /account/createtable?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:10:16] "GET /dashboard HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:10:16] "GET /static/css/bootstrap.min.css HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:10:16] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:10:26] "GET /dashboard HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:10:26] "GET /static/css/bootstrap.min.css HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:10:26] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:10:36] "GET /dashboard HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:10:36] "GET /static/css/bootstrap.min.css HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:10:36] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:10:47] "GET /dashboard HTTP/1.1" 200 - | |
127.0.0.1 - - [05/May/2019 23:10:47] "GET /static/css/bootstrap.min.css HTTP/1.1" 304 - | |
127.0.0.1 - - [05/May/2019 23:10:47] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment