Request forwarding failed: error sending request for url - cc-switch
Quick fix
Check your local network connection and proxy configuration so cc-switch can reach the Nvidia API endpoint, resolving the 502 timeout.
Symptom
Section titled “Symptom”{"error":{"message":"请求转发失败: error sending request for url (https://integrate.api.nvidia.com/v1/chat/completions?beta=true)","type":"proxy_error"}}{"error":{"message":"request forwarding failed: error sending request for url (https://integrate.api.nvidia.com/v1/chat/completions?beta=true)","type":"proxy_error"}}
This 502 means cc-switch timed out or failed to connect while forwarding the request to the Nvidia API. Per community feedback, that usually comes from the proxy not being enabled correctly, or from local network instability leaving the proxy unable to reach the external API. Some users report it appearing suddenly after a period of normal use — a typical connectivity problem.
Check that your system or cc-switch has a proxy configured and enabled correctly.
Check your local network connection and confirm the proxy node can reach https://integrate.api.nvidia.com.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 2 real issues
- #1019API Error: 502 {"error":{"message":"请求转发失败: error sending request for url (https://integrate.api.nvidia.com/v1/chat/completions?beta=true)","type":"proxy_error"}}
- #1024502 {"error":{"message":"请求转发失败: error sending request for url (https://integrate.api.nvidia.com/v1/chat/completions?beta=true)","type":"proxy_error"}}
- It worked before and started erroring in the last couple of days. Why?
- Usually a 502 timeout from local network instability or a dead proxy node. Check your network connection and proxy state.
- I already enabled the proxy — why does it still error?
- Still erroring with the proxy on means the proxy itself cannot reach the target server. Check the proxy node connectivity, or try another node.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.