Closed sentry-io[bot] closed 2 years ago
Just to provide more context, this is the traceback on the server:
2022-02-08 16:26:33,504: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/__init__.py", line 36, in autodetect
from google.appengine.api import memcache
ModuleNotFoundError: No module named 'google.appengine'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in <module>
from oauth2client.contrib.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.contrib.locked_file'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in <module>
from oauth2client.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.locked_file'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/__init__.py", line 41, in autodetect
from . import file_cache
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/file_cache.py", line 40, in <module>
raise ImportError(
ImportError: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
2022-02-08 16:26:33,523: URL being requested: GET https://www.googleapis.com/discovery/v1/apis/admin/directory_v1/rest
2022-02-08 16:26:33,523: Attempting refresh to obtain initial access_token
2022-02-08 16:26:33,599: Refreshing access_token
2022-02-08 16:26:33,904: URL being requested: GET https://admin.googleapis.com/admin/directory/v1/users/salt-lake-city%40djangogirls.org?alt=json
2022-02-08 16:26:34,033: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/__init__.py", line 36, in autodetect
from google.appengine.api import memcache
ModuleNotFoundError: No module named 'google.appengine'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in <module>
from oauth2client.contrib.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.contrib.locked_file'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in <module>
from oauth2client.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.locked_file'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/__init__.py", line 41, in autodetect
from . import file_cache
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/file_cache.py", line 40, in <module>
raise ImportError(
ImportError: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
2022-02-08 16:26:34,036: URL being requested: GET https://www.googleapis.com/discovery/v1/apis/admin/directory_v1/rest
2022-02-08 16:26:34,036: Attempting refresh to obtain initial access_token
2022-02-08 16:26:34,089: Refreshing access_token
2022-02-08 16:26:34,355: URL being requested: GET https://admin.googleapis.com/admin/directory/v1/users/saltlakecity%40djangogirls.org?alt=json
2022-02-08 16:26:34,549: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/__init__.py", line 36, in autodetect
from google.appengine.api import memcache
ModuleNotFoundError: No module named 'google.appengine'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in <module>
from oauth2client.contrib.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.contrib.locked_file'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in <module>
from oauth2client.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.locked_file'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/__init__.py", line 41, in autodetect
from . import file_cache
File "/home/../lib/python3.9/site-packages/googleapiclient/discovery_cache/file_cache.py", line 40, in <module>
raise ImportError(
ImportError: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
2022-02-08 16:26:34,553: URL being requested: GET https://www.googleapis.com/discovery/v1/apis/admin/directory_v1/rest
2022-02-08 16:26:34,553: Attempting refresh to obtain initial access_token
2022-02-08 16:26:34,672: Refreshing access_token
2022-02-08 16:26:34,950: URL being requested: PATCH https://admin.googleapis.com/admin/directory/v1/users/salt-lake-city%40djangogirls.org?alt=json
2022-02-08 16:26:35,490: Internal Server Error: /en/admin/organize/eventapplication/1293/triage/accepted/
Traceback (most recent call last):
File "/home/../lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/../lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/../lib/python3.9/site-packages/sentry_sdk/integrations/django/views.py", line 67, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File "/home/../lib/python3.9/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/home/../.virtualenvs/djangogirls/lib/python3.9/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/home/../lib/python3.9/site-packages/django/contrib/admin/sites.py", line 232, in inner
return view(request, *args, **kwargs)
File "/home/../djangogirls.com/organize/admin.py", line 160, in view_change_application_status
application.send_deployed_email(event)
File "/home/../djangogirls.com/organize/models.py", line 250, in send_deployed_email
dummy_email, email_password = gmail_accounts.get_or_create_gmail(
File "/home/../djangogirls.com/core/gmail_accounts.py", line 133, in get_or_create_gmail
migrate_gmail_account(event, event_application.website_slug)
File "/home/../djangogirls.com/core/gmail_accounts.py", line 91, in migrate_gmail_account
service.users().patch(
File "/home/../lib/python3.9/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/../lib/python3.9/site-packages/googleapiclient/http.py", line 855, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://admin.googleapis.com/admin/directory/v1/users/salt-lake-city%40djangogirls.org?alt=json returned "Resource Not Found: userKey">
2022-02-08 16:28:19,530: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
Sentry Issue: DJANGO-GIRLS-WEBSITE-37