cline / cline

Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev
Apache License 2.0
11.78k stars 920 forks source link

Cline giving me connection error #736

Open dpmanek opened 23 hours ago

dpmanek commented 23 hours ago

Which API Provider are you using?

Anthropic

Which Model are you using?

Claude 3.5 Sonnet

What happened?

API request Failed. Connection error.

Steps to reproduce

Shows connection error. API request failed. worked perfectly before.

Relevant API REQUEST output

No response

Additional context

No response

jckail commented 21 hours ago

+1

just confirmed endpoint was working with a curl command

curl --request POST \ --url https://api.anthropic.com/v1/messages \ --header 'anthropic-version: 2023-06-01' \ --header 'content-type: application/json' \ --header 'x-api-key: YOUR_API_KEY' \ --data '{ "model": "claude-3-5-sonnet-20241022", "max_tokens": 1024, "messages": [ { "role": "user", "content": "Hello, Claude!" } ] }'

{"id":"msg_01F3PPHbxPxrYVyFzezbydhJ","type":"message","role":"assistant","model":"claude-3-5-sonnet-20241022","content":[{"type":"text","text":"Hi! I'm happy to help. What's on your mind?"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":11,"output_tokens":17}}%

jckail commented 20 hours ago

Switched over to the OpenRouter api and the 3-5 beta model works fine for me.

imolitor commented 18 hours ago

Same here. Happens since last Cline update. I downgraded to version 2.1.4 and no more connection errors