Flowise
Flowise copied to clipboard
Error: Request failed with status code 401
Hello, someone else experiencing this error? Do you have any solution for it?
Maybe api key incorrect ?
same error. API key copied directly from OpenAI
Same issue
Same issue here, anyone managed to fix this ?
same issue +1
tried three different api keys from three different accounts but still not working
not same issue, my error code is 404, and i change the llm to gpt-3.5-turbo-0613
then it works
same issue
401
error message indicates that your authentication credentials are invalid. This could happen for several reasons, such as:
- You are using a revoked API key.
- You are using a different API key than one under the requesting organization.
- You are using an API key that does not have the required permissions for the endpoint you are calling.
Result:
Reference: OpenAI error code 401
@chungyau97 this is not the case, since I've tried with multiple fresh keys, please re-open.
Could you share your Flowise configuration?
- Node version
- Method of setting up
- Device OS
@chungyau97
- 16.17.1
- npm i -g flowise
- MacOS 13.4
My side is working fine. I tried deleting one character from the key, and it shows 401, which is correct. macOS 13.2.1 (22D68)
- npm install -g flowise
- npx flowise start
@DmacMcgreg,
Seem like your problem is related to the older version of NodeJS.
Please proceed to download the LTS
version of it. 18.17.0 LTS
If you're adventurous enough, give NVM a try. This is to manage different version of NodeJS
Hi @chungyau97 ,
Getting 401 status code as shown below in server error logs:
2023-08-08 05:30:23 [ERROR]: [server]: Error: Request failed with status code 401 and body {"statusCode":401,"message":"Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired."}
Azure OpenAI keys are valid and not expired.
Request you to please check the detailed issue here.
Please let us know how to resolve the same.
Hi @NISHANTSHRIVASTAV,
I will close this issue as I replied in #710.
How I was able to fix:
- Went to https://platform.openai.com/account/billing/overview and put some money in order to have credits to call OpenAI API
- Created new API key for OpenAI
- In Flowise make sure you have the same API keys in Chat Open AI and OpenAI Embedding
This was my way.