[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Analysis 500 Error #546

Closed
dvngnt opened this issue Sep 11, 2024 · 13 comments
Closed

AI Analysis 500 Error #546

dvngnt opened this issue Sep 11, 2024 · 13 comments
Assignees
Labels
bug Something isn't working

Comments

@dvngnt
Copy link
dvngnt commented Sep 11, 2024

Description:

http://localhost:3333/api/internal/ai/dora_metrics 500 (Internal Server Error)

Steps to reproduce:

  1. Generate open api key
  2. Enter key in middleware

Expected behavior:

AI reports

Actual behavior:

image

@dvngnt dvngnt added the bug Something isn't working label Sep 11, 2024
@jayantbh
Copy link
Contributor

Hey @dvngnt, thanks for reporting the issue! :)

Could you confirm that there's no accidental whitespaces or something else possibly wrong with the token?


In any case, it appears that the error message should have been better than... that.

@dvngnt
Copy link
Author
dvngnt commented Sep 11, 2024

@jayantbh i'm copying directly from https://platform.openai.com/api-keys

Permissions
Read and write API resources

@jayantbh
Copy link
Contributor

Yeah that seems like it should definitely work.
We'll look into this, though any help is absolutely appreciated. :)

@jayantbh
Copy link
Contributor
jayantbh commented Sep 11, 2024

Just another quick check:
Could you confirm that your OpenAI billing/credits/usage limits are not a factor?

Additionally:
Any logs from the CLI, or the system status UI while you run into this error could help us further. :)
In case you're unable to get logs from the above means, or need a greater amount of logs, you can access the relevant files by means of docker exec -it ... directly. Instructions here: https://github.com/middlewarehq/middleware#:~:text=port%3A%206385.-,View%20the%20logs,-%3A%20Although%20the%20CLI

@Kamlesh72
Copy link
Contributor

@jayantbh Chatgpt doesn't have free plan right?

@dvngnt
Copy link
Author
dvngnt commented Sep 11, 2024 via email

@VipinDevelops
Copy link
Contributor

I will look into It Give me some time I will update you ASAP

@VipinDevelops
Copy link
Contributor

Hey @dvngnt I tried to reproduce the issue you are facing and it's working fine for me using open AI
image

@dvngnt
Copy link
Author
dvngnt commented Sep 12, 2024

Thanks for the responses. I'll try to attempt again later today.

@Kamlesh72
Copy link
Contributor

@VipinDevelops you added min. $5 credits for chatgpt api right?

@dvngnt
Copy link
Author
dvngnt commented Sep 12, 2024 via email

@dvngnt dvngnt closed this as completed Sep 12, 2024
@VipinDevelops VipinDevelops reopened this Sep 13, 2024
@VipinDevelops
Copy link
Contributor
VipinDevelops commented Sep 13, 2024

Thanks @dvngnt
Don't close it for now I am thinking of adding a check for error so at least we get some better error than 500 if something goes wrong.

VipinDevelops added a commit that referenced this issue Sep 17, 2024
[FIX]: Handle Error response from AI API
@jayantbh
Copy link
Contributor
jayantbh commented Oct 1, 2024

I believe this has been handled for now. Closing. :)

@jayantbh jayantbh closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants