Skip to content

ListWorkerTypes is called while logged out

Sentry Issue: ARKINDEX-FRONTEND-C5S

AxiosError: Request failed with status code 403
  at settle (../../node_modules/axios/lib/core/settle.js:19:12)
  at onloadend (../../node_modules/axios/lib/adapters/xhr.js:59:7)

The ListWorkerTypes endpoint requires to be logged in and to have a verified email, but viewing any ML result and having the worker run details component appear anywhere will cause it to be called. It returns HTTP 403, and the worker types list remains empty in the store, so it will get called again anytime the component appears again anywhere else, and we get hundreds of events in Sentry.