Skip to content

Handling 403 errors when recovering the session#6

Open
sgraton wants to merge 4 commits into
coskuncay:masterfrom
sgraton:master
Open

Handling 403 errors when recovering the session#6
sgraton wants to merge 4 commits into
coskuncay:masterfrom
sgraton:master

Conversation

@sgraton

@sgraton sgraton commented Dec 21, 2022

Copy link
Copy Markdown
  • Removed dart SDK version limitation < 3
  • User agent management review
  • Update of the README for user agent

@sgraton

sgraton commented Dec 21, 2022

Copy link
Copy Markdown
Author

fix #4

@aytunch

aytunch commented Dec 23, 2022

Copy link
Copy Markdown

@sgraton thanks for this PR. Does this help us use the package in flutter web?
Also where do we get the clearance token and user agent? Should we get them from Chrome/dev tools also?
Any help is appreciated. Thanks.
Also @coskuncay will this PR be merged to main?

@aytunch

aytunch commented Dec 23, 2022

Copy link
Copy Markdown

@sgraton Hi, I see that you are making additions to the PR
Can I try the current state of this PR using as follows, thanks:

flutter_chatgpt_api:
    git:
      url: https://github.com/sgraton/flutter_chatgpt_api

@sgraton

sgraton commented Dec 23, 2022

Copy link
Copy Markdown
Author

@sgraton thanks for this PR. Does this help us use the package in flutter web? Also where do we get the clearance token and user agent? Should we get them from Chrome/dev tools also? Any help is appreciated. Thanks. Also @coskuncay will this PR be merged to main?

This PR does not help on the web flutter part, I did not take a look to this issue.
Clearence_token retrieves from cookies (shown in README) and user-agent in any network request in Chrome dev tools.
Last addition only add a debug mode with more logs.

@coskuncay

Copy link
Copy Markdown
Owner

Hi @sgraton thank you for your PR. How did you solve " {"detail":"Too many requests in 1 hour. Try again later."}" problem.

@wal33d006

Copy link
Copy Markdown

@sgraton
There were some updates in the open AI API and now it throws an exception which says Failed to refresh auth token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants