Skip to content

[Bug]: Error failed to send message HTTP 401, invalid_api_key #725

Discussion options

You must be logged in to vote

Hi @bozzy01 Thanks again for trying out the project and sorry you're having trouble.

I moved this to troubleshooting since I'm convinced this is a configuration error as I only get the API response you're experiencing when I actually input a wrong API key.

After careful review, it looks like your api key is including quotation marks in the API call

message: 'Incorrect API key provided: "sk-uvOH********************************************" <--- before "sk" and here
...
"message": "Incorrect API key provided: \"sk-uvOH********************************************\"  <--- before "sk" and here

Notice my response when I deliberately put the wrong key

{
    "error": {
        "message": "Incorre…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bozzy01
Comment options

Answer selected by danny-avila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #714 on July 28, 2023 23:22.