Marc-R2 / ai-commits-intellij-plugin

CommitGPT for IntelliJ based IDEs/Android Studio.
MIT License
12 stars 6 forks source link

JsonConvertException on Token Verification in PhpStorm #8

Open mrmt00 opened 1 year ago

mrmt00 commented 1 year ago

Description: I encountered a JSON conversion exception in PhpStorm when using the CommitGPT plugin. This issue seems to occur during the verification of an OpenAI API token.

Environment PhpStorm Version: 2023.2.2 CommitGPT Plugin Version: 0.7.1 Marc-R2 Operating System: Ubuntu 20.04.6 LTS x86_64

Steps to reproduce 1- Go to Settings > Tools > CommitGPT 2- Click on the link to generate an openai token 3- Generate the token and copy it 4- Paste it in the Openai Token input 5- Click on verify and I see "Openai token is not valid (unknown)" 6- I check my syslog with sysLog='tail -f -n200 /var/log/{messages,kernel,dmesg,syslog}'

Observed error log:

Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> access-control-allow-origin: * Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> alt-svc: h3=":443"; ma=86400 Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> openai-processing-ms: 174 Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> openai-version: 2020-10-01 Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> strict-transport-security: max-age=15724800; includeSubDomains Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: -> x-request-id: e93044abb6506e380268111b736a6855 Nov 15 14:11:13 dell jetbrains-phpstorm.desktop[400775]: HttpClient: RESPONSE https://api.openai.com/v1/models failed with exception: io.ktor.serialization.JsonConvertException: Illegal input

flyingboy007 commented 1 year ago

+1 same issue in Rubymine aswell