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: "Requested ResourceLink bound to unexpected external tool" while fetching assignment rosters #6653

Open
Tracked by #6185
sentry-io bot opened this issue Sep 4, 2024 · 0 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 4, 2024

Sentry Issue: LMS-176

HTTPError: 401 Client Error: Unauthorized for url: https://hypothesis.instructure.com/api/lti/courses/319/names_and_roles?rlid=375f6d0c-2e49-49e5-a0d9-307f947b67aa
  File "lms/services/http.py", line 38, in request
    response.raise_for_status()

ExternalRequestError: ExternalRequestError(message=None, request=Request(method='GET', url='https://hypothesis.instructure.com/api/lti/courses/319/names_and_roles?rlid=375f6d0c-2e49-49e5-a0d9-307f947b67aa', body=None), response=Response(status_code=401, reason='Unauthorized', body='{"errors":{"type":"unauthorized","message":"Invalid access token format"}}'), validation_errors=None)
(4 additional frame(s) were not displayed)
...
  File "lms/tasks/roster.py", line 151, in fetch_assignment_roster
    roster_service.fetch_assignment_roster(assignment)
  File "lms/services/roster.py", line 114, in fetch_assignment_roster
    roster = self._lti_names_roles_service.get_context_memberships(
  File "lms/services/lti_names_roles.py", line 53, in get_context_memberships
    response = 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

See: https://hypothes-is.slack.com/archives/C1MA4E9B9/p1725372178973579

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