Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

JsonConvertException on Token Verification in PhpStorm #8

@mrmt00

Description

@mrmt00

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions