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

Batch Errors with requests v2.13.0 #83

Open
kentwills opened this issue Apr 24, 2017 · 0 comments
Open

Batch Errors with requests v2.13.0 #83

kentwills opened this issue Apr 24, 2017 · 0 comments

Comments

@kentwills
Copy link
Contributor

[2017-04-24 18:00:09,940]
ERROR in app: Exception on /tasks/email_users_for_weekly_opt_in [GET]

11:00:09.981 Traceback (most recent call last):
11:00:09.981 File "/flask/app.py", line 1982, in wsgi_app
11:00:09.982 response = self.full_dispatch_request()
11:00:09.982 File "/flask/app.py", line 1614, in full_dispatch_request
11:00:09.982 rv = self.handle_user_exception(e)
11:00:09.982 File "/flask/app.py", line 1517, in handle_user_exception
11:00:09.982 reraise(exc_type, exc_value, tb)
11:00:09.982 File "/flask/app.py", line 1612, in full_dispatch_request
11:00:09.982 rv = self.dispatch_request()
11:00:09.982 File "/flask/app.py", line 1598, in dispatch_request
11:00:09.982 return self.view_functionsrule.endpoint
11:00:09.982 File "/yelp_beans/routes/tasks.py", line 41, in weekly_opt_in
11:00:09.982 send_batch_weekly_opt_in_email(spec)
11:00:09.982 File "/yelp_beans/send_email.py", line 103, in send_batch_weekly_opt_in_email
11:00:09.982 'link_to_change_pref': 'https://yelp-beans.appspot.com/'
11:00:09.982 File "/yelp_beans/send_email.py", line 59, in send_single_email
11:00:09.982 return send_grid_client.client.mail.send.post(request_body=message.get())
11:00:09.982 File "/python_http_client/client.py", line 204, in http_request
11:00:09.982 return Response(self._make_request(opener, request))
11:00:09.982 File "/python_http_client/client.py", line 138, in _make_request
11:00:09.982 return opener.open(request)
11:00:09.982 File "/urllib2.py", line 410, in open
11:00:09.982 response = meth(req, response)
11:00:09.982 File "/urllib2.py", line 523, in http_response
11:00:09.982 'http', request, response, code, msg, hdrs)
11:00:09.982 File "/urllib2.py", line 448, in error
11:00:09.982 return self._call_chain(*args)
11:00:09.982 File "/urllib2.py", line 382, in _call_chain
11:00:09.982 result = func(*args)
11:00:09.982 File "/urllib2.py", line 531, in http_error_default
11:00:09.982 raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
11:00:09.982 HTTPError: HTTP Error 401: Unauthorized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants