flutter_chatgpt_api icon indicating copy to clipboard operation
flutter_chatgpt_api copied to clipboard

Handling 403 errors when recovering the session

Open sgraton opened this issue 2 years ago • 6 comments
trafficstars

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

sgraton avatar Dec 21 '22 16:12 sgraton

fix #4

sgraton avatar Dec 21 '22 16:12 sgraton

@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 avatar Dec 23 '22 18:12 aytunch

@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

aytunch avatar Dec 23 '22 18:12 aytunch

@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.

sgraton avatar Dec 23 '22 19:12 sgraton

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

coskuncay avatar Dec 23 '22 20:12 coskuncay

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

wal33d006 avatar Dec 29 '22 07:12 wal33d006