API Testing error

Error: timeout of 5000ms exceeded

The HTTP client gave up waiting for a response before the server replied, which could be a slow endpoint, a slow test environment, or a hung request.

Why this happens

How to fix it

  1. Check whether the timeout is consistent (a real perf problem) or intermittent (an environment/data problem) before touching the timeout value
  2. Only raise the client timeout once you've confirmed the endpoint is expected to be this slow
  3. Isolate test data per test so one test's data volume doesn't slow down another's requests