saoudrizwan / claude-dev

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

Anthropic API Connection Request Failed on VS Code #154

Closed latitudeki5223 closed 1 week ago

latitudeki5223 commented 3 weeks ago

I keep getting a 401 {"type":"error","error":{"type":"authentication_error","message":"invalid x-api-key"}} I have uninstalled, reinstalled multiple times. I have changed my api-key 3 times. There is credit on the account. Im not have any luck, any suggestions. I was using Calude-dev last week, but as my chain length got to long I stopped, because it was not handling the long chain well. But I got through that prob and now wish to use it again, but I am not able to? Have you any suggestions.

saoudrizwan commented 3 weeks ago

Hey sorry you're dealing with that. Can you try using openrouter? (Settings > API Provider > OpenRouter). If you're still seeing the same issue, this might be more than an api error and could be something wrong in the extension.

latitudeki5223 commented 3 weeks ago

Hi. I'll give that a go and report back. Great product. Bit quick to chew the tokens. But really handy. CheersTony Get Outlook for AndroidFrom: Saoud Rizwan @.>Sent: Friday, August 23, 2024 5:03:18 pmTo: saoudrizwan/claude-dev @.>Cc: latitudeki5223 @.>; Author @.>Subject: Re: [saoudrizwan/claude-dev] Anthropic API Connection Request Failed on VS Code (Issue #154) Hey sorry you're dealing with that. Can you try using openrouter? (Settings > API Provider > OpenRouter). If you're still seeing the same issue, this might be more than an api error and could be something wrong in the extension.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306473816", "url": "https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306473816", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

danghieuan commented 2 weeks ago

@saoudrizwan Hello, do you any updates? I'm waiting to fix this issue.

latitudeki5223 commented 2 weeks ago

Hi. Sorry. Won't be back at it to the morning  I'll update you then.CheersTonyGet Outlook for AndroidFrom: An Dang-Hieu @.>Sent: Friday, August 23, 2024 8:52:36 pmTo: saoudrizwan/claude-dev @.>Cc: latitudeki5223 @.>; Author @.>Subject: Re: [saoudrizwan/claude-dev] Anthropic API Connection Request Failed on VS Code (Issue #154) @saoudrizwan Hello, do you any updates? I'm waiting to fix this issue.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306882738", "url": "https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306882738", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

latitudeki5223 commented 2 weeks ago

Hi, Im just trying again now for you… I just tried anthropic in openrouter and got API Request Failed

401 Missing Authentication header or invalid API key…This is the error just straight in claude-dev…API Request Failed

401 {"type":"error","error":{"type":"authentication_error","message":"invalid x-api-key"}}

From: An Dang-Hieu @.> Sent: Friday, August 23, 2024 8:52 PM To: saoudrizwan/claude-dev @.> Cc: latitudeki5223 @.>; Author @.> Subject: Re: [saoudrizwan/claude-dev] Anthropic API Connection Request Failed on VS Code (Issue #154)

@saoudrizwan https://github.com/saoudrizwan Hello, do you any updates? I'm waiting to fix this issue.

— Reply to this email directly, view it on GitHub https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306882738 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A4Q47LZ7DIP26EXRWQFEPZLZS4LOXAVCNFSM6AAAAABM7CCVROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBWHA4DENZTHA . You are receiving this because you authored the thread.Message ID: @.***>

[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306882738", "url": "https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306882738", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

latitudeki5223 commented 2 weeks ago

I tried my open ai key in open router and that didn’t work either.

From: An Dang-Hieu @.> Sent: Friday, August 23, 2024 8:52 PM To: saoudrizwan/claude-dev @.> Cc: latitudeki5223 @.>; Author @.> Subject: Re: [saoudrizwan/claude-dev] Anthropic API Connection Request Failed on VS Code (Issue #154)

@saoudrizwan https://github.com/saoudrizwan Hello, do you any updates? I'm waiting to fix this issue.

— Reply to this email directly, view it on GitHub https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306882738 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A4Q47LZ7DIP26EXRWQFEPZLZS4LOXAVCNFSM6AAAAABM7CCVROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBWHA4DENZTHA . You are receiving this because you authored the thread.Message ID: @.***>

[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306882738", "url": "https://github.com/saoudrizwan/claude-dev/issues/154#issuecomment-2306882738", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

saoudrizwan commented 2 weeks ago

You need to use an openrouter api key https://openrouter.ai/