Connection error when calling DeepSeek V3.1 via SambaNova API - Failed to fetch

Hi everyone,

I’m experiencing a connection issue with DeepSeek V3.1 on SambaNova.

When making API requests, I get:

“Network error, try again!” / “Failed to fetch (unk)” .This started happening yesterday.

What I’ve tried:

- Verified API key is valid

- Tested connectivity from different network

- Confirmed the endpoint URL is correct: ttps://api.sambanova.ai/v1

I’m calling the SambaNova API through a third-party application’s proxy configuration. The error appears when the app tests connectivity to your endpoint at ttps://api.sambanova.ai/v1

Is anyone else experiencing this, or is there a known issue with the DeepSeek V3.1 endpoint?

Hello,

Thank you for reaching out and for the detailed report.
We will investigate and follow up with an update shortly.

Apologies for the inconvenience.

Best regards,
Prajwal

@leonardogmez2781192

It is working for me try this with your API key if you post the results please ensure you obfuscate your key

import osimport requestsimport json

api_key = os.environ.get(“SAMBANOVA_API_KEY”)url = “https://api.sambanova.ai/v1/chat/completions”headers = {“Content-Type”: “application/json”,“Authorization”: f"Bearer {api_key}",“x-api-key”: api_key,“User-Agent”: “SambaNova/Python-Requests-Debug”}data = {“model”: “DeepSeek-V3.1”,“messages”: [{“role”: “user”, “content”: “Hello!”}],“temperature”: 0.1}

print(“🚀 OUTGOING REQUEST”)print(f"URL: {url}“)print(“Headers:”)for k, v in headers.items():print(f”  {k}: {v}“)print(f"Body: {json.dumps(data)}”)

try:response = requests.post(url, headers=headers, json=data, timeout=30)print(“\n” + “=”*50)print(“📦 INCOMING RESPONSE”)print(f"Status: {response.status_code}“)print(“Headers:”)for k, v in response.headers.items():print(f”  {k}: {v}“)print(f"Body: {response.text}”)print(“=”*50 + “\n”)print(“Final Result:”, response.json()[‘choices’][0][‘message’][‘content’])except Exception as e:print(f"Error: {e}")


Is your failing call using httpx by any chance?

Hello Coby. Here I have the error with the code you gave me and my valid API key.

:rocket: OUTGOING REQUEST

URL: ttps://api.sambanova.ai/v1/chat/completions

Headers:

Content-Type: application/json

Authorization: Bearer [valid API key]

x-api-key: [valid API key]

User-Agent: SambaNova/Python-Requests-Debug

Body: {“model”: “DeepSeek-V3.1”, “messages”: [{“role”: “user”, “content”: “Hello!”}], “temperature”: 0.1}

Error: (‘Connection aborted.’, HTTPException(‘Failed to fetch’))

So, I don’t know if Sambanova is rejecting, blocking my connection or not even reaching the server. (In the URL I erased the ‘h’ from https because it wouldn’t let me post the link, just in case).

@leonardogmez2781192 it does seem your IP is within a band that could be being blocked .

curl ifconfig.me

My public IP is 45.186.209.171. Can the IP be checked and confirm if it’s being blocked or rate limited?

45.186.209.186 spam report 45.186.209.186 spam report

This is being blocked before it ever reaches us. You will need to see if you can get a different IP range from your company, Internet provider , or vpn provider.

I tried using hotspot and it also doesn’t work. I tried with VPN as well and it gave me the same error all around. The solution might be requesting an IP change to my provider, right?

Yes you will have to sort this with your ISp. I am sorry you are having issues.

-Coby

Hii, I was about to make a post about this too but with DeepSeek V3.2. Is it possible that mine is also an ISP problem?

I have actually tested this in different WiFi as well. But no luck :((