Skip to content

Instantly share code, notes, and snippets.

@karmanyaahm
Created October 4, 2020 17:23
Show Gist options
  • Save karmanyaahm/fa4b0630aab28e05740732163e6af56e to your computer and use it in GitHub Desktop.
Save karmanyaahm/fa4b0630aab28e05740732163e6af56e to your computer and use it in GitHub Desktop.
traceback google classroom api issue report
Traceback (most recent call last):
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/app.py", line 2464, in __call__
return self.wsgi_app(environ, start_response)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask_behind_proxy.py", line 25, in __call__
return self.app(environ, start_response)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/app.py", line 2450, in wsgi_app
response = self.handle_exception(e)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/app.py", line 1867, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/flask_login/utils.py", line 272, in decorated_view
return func(*args, **kwargs)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/fe.py", line 111, in edit_page
modify_or_add_connection(
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/fe_managers.py", line 51, in modify_or_add_connection
new_connection(uid, classId, webhook, db)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/fe_managers.py", line 8, in new_connection
regId, time = Classroom.from_uid(uid, db).register(classId)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/classroom.py", line 52, in register
o = self.service.registrations().create(body=body).execute()
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/karmanyaahm/Documents/code/other/server/google_classroom/.venv/lib/python3.8/site-packages/googleapiclient/http.py", line 907, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://classroom.googleapis.com/v1/registrations?alt=json returned "The caller does not have permission">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment