https://promptfoo.dev/ logo
Network errors
# 💬|general
p
Hi, are any people having issues with reaching the promptfoo api Im getting an odd error, on first run i get: [shared.ts:42] Checking Promptfoo API health at https://api.promptfoo.app/health... [apiHealth.ts:17] [CheckRemoteHealth] Checking API health: {"url":"https://api.promptfoo.app/health","env":{}} [apiHealth.ts:40] [CheckRemoteHealth] Making fetch request: {"url":"https://api.promptfoo.app/health","options":{"headers":{"Content-Type":"application/json"}},"timeout":5000,"nodeVersion":"v20.19.2"} [apiHealth.ts:66] [CheckRemoteHealth] API health check response: {"data":{"status":"OK"}} but then when i comes to validating plugins on the same run: [index.ts:672] Validating plugins... [index.ts:679] Checking Promptfoo API health at https://api.promptfoo.app/health... [apiHealth.ts:17] [CheckRemoteHealth] Checking API health: {"url":"https://api.promptfoo.app/health","env":{}} [apiHealth.ts:40] [CheckRemoteHealth] Making fetch request: {"url":"https://api.promptfoo.app/health","options":{"headers":{"Content-Type":"application/json"}},"timeout":5000,"nodeVersion":"v20.19.2"} [apiHealth.ts:112] [CheckRemoteHealth] API health check failed: {"error":"Request timed out after 5000 ms","url":"https://api.promptfoo.app/health"} [run.ts:100] An unexpected error occurred during red team run: Unable to proceed with test generation: Network error: Request timed out after 5000 ms
i
Hmm, wonder if it's transient, can you just retry and see how that works?
p
So, tbis was happening via an aws instance I was working on
Moved it to my residential home ip and all is fine
i
Interesting, good to know