abi / abi/screenshot-to-code

Getting this error when trying to integrate anthropic api key Error code: 401 - {'type': 'error', 'error': {'type': 'authentication_error', 'message': 'invalid x-api-key'}}

Open
#430 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
78.7k
Forks
9.6k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Getting this error when trying to integrate anthropic api key Error code: 401 - {'type': 'error', 'error': {'type': 'authentication_error', 'message': 'invalid x-api-key'}}

![Captura de tela 2024-11-16 113211](https://github.com/user-attachments/assets/10d25181-74f5-4400-a402-2be3de8f3e61)

Contributor guide

No contributing guide indexed for this repository

Research direction

Look for where the Anthropic API key is configured, likely in environment variables or a config file. Check the API key format and authentication method. Verify the key is correctly passed in requests. Test with a valid key to confirm the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.