# Errors and workarounds

These are some common issues that you might face while running tests and how to get past them:

  1. Network Error: This happens when the URL used in test suite is not accessible. Check if the URL is correct and see if it's accessible using cURL. Make sure that the backend is running. Also, make sure that the domain part is not missing in URL and the protocol (http/https) is correct.
  2. Timeout error: This happens when the API call times out. Currently, the timeout is 10s (we're planning to make this configurable in an upcoming release). If you don't expect the API to take this long, check the firewall/security groups on the test machine. In some cases, if a particular port/IP is not allowed to access the machine, the API call will simply get stuck and not return with any error.
  3. Unexpected 404 error: If you get a 404 Not Fuond error where you expected the API call to work, check if the URL is correct. Check for extra/missing slashes in the URL. You can use the edit all tests feature to fix URL for all tests in one go. Incorrect HTTP method might also result in this issue, so check if you accidentaly entered the method as GET instead of POST, for example.
  4. Unexpected 403/401 error: 403/401 are authentication/authorization errors. Check if the auth token is missing from header or incorrect. Specifically while using bearer auth along with variables, make sure you don't end up adding the "Bearer" keyword in both header and variable or missing it from both. For example, if you set the header to as this:
    {"Authorization": "Bearer {{token}}"}
    and then set the token variable as "Bearer some_token_value", this will result in an error as the "Bearer" keyword is present twice.