Skip to content

gptpro sub oauth receives invalid json error #4650

@fiveangle

Description

@fiveangle

What happened?

/login:provider:OpenAi results in Unexpected token response.

macoS 26.5

if you can't repro, close and ill keep pounding but i explored every corner and could'nt find any reason. hopefully this isn't a. sign o'the times.
if i can provide any additional details you'd prefer, just instruct and i'll add here quickly.

Steps to reproduce

~/dev/pi$ pi   
fd not found. Downloading...
Failed to download fd: Unexpected token '', ""... is not valid JSON

 pi v0.75.0                                                                                                                                                                     
 escape interrupt · ctrl+c/ctrl+d clear/exit · / commands · ! bash · ctrl+o more                                                                                                
 Press ctrl+o to show full startup help and loaded resources.                                                                                                                   
                                                                                                                                                                                
 Pi can explain its own features and look up its docs. Ask it how to use or extend Pi.                                                                                          


 Error: Failed to login to ChatGPT Plus/Pro (Codex Subscription): Unexpected token '
 Login to ChatGPT Plus/Pro (Codex Subscription)                                     ', "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"... is not valid JSON                                                           


────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                                                                                                
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
~/dev/pi
0.0%/262k (auto)                                     

Expected behavior

tested re-auth with opencode and oath succeed w/o issue.

Version

0.75.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions