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

Handle 404s while fetching groups rosters #7002

Open
sentry-io bot opened this issue Feb 5, 2025 · 0 comments
Open

Handle 404s while fetching groups rosters #7002

sentry-io bot opened this issue Feb 5, 2025 · 0 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 5, 2025

Sentry Issue: LMS-19Y

HTTPError: 404 Client Error: Not Found for url: https://wwu.instructure.com/api/lti/groups/1194647/names_and_roles?limit=100
  File "lms/services/http.py", line 38, in request
    response.raise_for_status()

ExternalRequestError: ExternalRequestError(message=None, request=Request(method='GET', url='https://wwu.instructure.com/api/lti/groups/1194647/names_and_roles?limit=100', body=None), response=Response(status_code=404, reason='Not Found', body='{"errors":[{"message":"The specified resource does not exist."}]}'), validation_errors=None)
(5 additional frame(s) were not displayed)
...
  File "lms/services/roster.py", line 318, in fetch_canvas_group_roster
    roster = self._lti_names_roles_service.get_context_memberships(
  File "lms/services/lti_names_roles.py", line 61, in get_context_memberships
    response = self._make_request(lti_registration, service_url, query)
  File "lms/services/lti_names_roles.py", line 77, in _make_request
    return self._ltia_service.request(
  File "lms/services/ltia_http.py", line 46, in request
    return self._http.request(method, url, headers=headers, **kwargs)
  File "lms/services/http.py", line 40, in request
    raise ExternalRequestError(request=err.request, response=response) from err
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant