Skip to content

Sentry error investigation: Cannot read properties of null (reading 'getAttribute')

initial description

  • Page: projects:blob:show
  • Sentry link

milestone kick off notes

The Sentry issue linked actually shows the “Cannot read properties of undefined (reading 'endsWith')” error. The breadcrumbs also include “TypeError: Cannot read properties of null (reading 'pathLocks')”, “TypeError: Cannot destructure property 'mergeRequests' of '{}' as it is null.”, “TypeError: Cannot read properties of undefined (reading 'type')”. So this is the issue, where the query does not return an error, but an empty project. I created an investigation issue for this for the backend team. Do we want to do anything else here? I can add ? to some places.

  1. Prioritise the backend issue to be investigated
  2. Add a filter in Sentry for the localStorage problem that floods us with .getAttribute errors.
  3. Create a utility for checking localStorage
Edited by 🤖 GitLab Bot 🤖