A bug was detected in production when going to a non-existent organisation endpoint, this would crash the service. To fix this fetchOrgInfo was removed from a parallel block to stop a likely race condition with different template returns. This works but a more permanent fix is needed.
- Remove the Fallback Policy within FetchOne to redirect halfway through the middleware chain.
- Debug why in localhost/dev this error doesn't appear (perhaps due to faster run times), so try to simulate in the test this slowed down.
- A test that checks 404 page appears at the end of the middleware chain with no race condition.
A bug was detected in production when going to a non-existent organisation endpoint, this would crash the service. To fix this fetchOrgInfo was removed from a parallel block to stop a likely race condition with different template returns. This works but a more permanent fix is needed.