Remote Generation Errors
You may encounter connection issues due to corporate firewalls or security policies. Since our service generates potentially harmful outputs for testing purposes, some organizations' security policies may block access to our API endpoints.
Checking Connectivity
To verify if you can reach our API, try accessing Promptfoo's version endpoint:
curl https://api.promptfoo.app/version
You should receive a response like:
{
"version": "0.100.5"
}
If this request fails or times out, it likely means your network is blocking access to our API. You can also try opening https://api.promptfoo.app/version
in your browser to see if you can reach the page.
Common Solutions
-
Check with IT: Since promptfoo generates adversarial content for security testing, our API endpoints may be blocked by corporate security policies. Contact your IT department to:
- Allowlist
api.promptfoo.app
- Allow HTTPS traffic to our endpoints
- Review security logs for blocked requests
- Allowlist
-
Use a Different Network: Try running promptfoo on:
- A personal network
- Mobile hotspot
- Development environment outside corporate network
-
Configure Proxy: If you need to use a corporate proxy, you can configure it using environment variables. Promptfoo uses proxy-agent to handle proxy configuration. It automatically detects and uses standard proxy environment variables. The proxy URL format is:
[protocol://][user:password@]host[:port]
export HTTPS_PROXY=http://proxy.company.com:8080
promptfoo eval
Alternative Options
If you cannot get network access to our remote generation service, you can:
- Use local generation with a local LLM
- Set up your own generation service
- Use manual prompt creation
See our configuration guide for more details on these options.
Getting Help
If you continue experiencing issues, contact us for enterprise support.