How to Resolve the "API connectivity check failed: Failed to access the server" Message

Prev Next

Situation

You ran autify mobile link doctor and it returned a failed check with the message, "API connectivity check failed: Failed to access the server".

Resolution

1. Try directly calling the Autify API

Call the API directly to confirm whether it’s an issue with your internal network settings.

  1. Create a new Personal Access Token
  2. Replace <ACCESS_TOKEN> in the code below with your generated token
  3. Replace <PROJECT_ID> in the code below with your workspace ID
  4. Copy and paste the modified command into your CLI and execute it
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
"https://mobile-app.autify.com/api/v1/projects/<PROJECT_ID>/results"\

If you do not receive a successful response, please contact your internal IT or network team and request access or whitelisting for the NoCode mobile API: https://mobile-app.autify.com/api/

2. Check for SSL issues

If you can connect to the API via the curl command above but still encounter the "Failed to access the server" error, your network's SSL/TLS configuration might be the cause.

To test if the issue is related to SSL certificate verification, you can temporarily disable it and check the connectivity.

Try running the following commands to test both doctor and start without SSL verification. If you get successful output, please consult with your internal IT or network team about possible resolution steps.

Warning

These commands are for troubleshooting and diagnostic purposes only. We do not recommend using them for regular operations due to security risks.

Mac OS

NODE_TLS_REJECT_UNAUTHORIZED=0 autify mobile link doctor
NODE_TLS_REJECT_UNAUTHORIZED=0 autify mobile link start

Windows

# Windows Command Prompt
set NODE_TLS_REJECT_UNAUTHORIZED=0
autify mobile link doctor
autify mobile link start
# Windows PowerShell
$env:NODE_TLS_REJECT_UNAUTHORIZED=0
autify mobile link doctor
autify mobile link start