Multiple stores unable to load POS Extension

@h-shopify thanks for the response. Our backend logs show that most requests during this time period were never reaching our servers so something was hanging indefinitely. Only a small subset eventually succeeded, I’m not sure if there was something in their network. However, it’s strange that two separate merchants on this app suddenly reported this around the same time and I know there has been fetch or session token errors affecting POS UI Extensions in the recent past:

In our case we do two things upon load 1) get the session token and b) use that token to make a fetch request to our server. It seems that one of these 2 things was hanging indefinitely. Only if an actual error is thrown or caught do we set isLoading to false. Our current code is below, I suppose we can harden this further by isolating if it’s a session token that never returned or if the fetch request is simply hanging.

But based on this, is there anything else you can see on your end in terms of which of the two was occurring yesterday?

  React.useEffect(() => {
    withRetry(async () => {
      const token = await api.session.getSessionToken();
      const serverResponse = await fetchSettings(token, locationId);
      if (!serverResponse) throw new Error('Failed to fetch settings');
      return serverResponse;
    })
      .then((serverResponse) => { ... setSettingsStatus({ loading: false, serverError: false }); })
      .catch(() => { setSettingsStatus({ loading: false, serverError: true }); });
  }, [locationId]);