Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while getting new session #124

Closed
nishantshah977 opened this issue Apr 29, 2024 · 4 comments
Closed

Error while getting new session #124

nishantshah977 opened this issue Apr 29, 2024 · 4 comments

Comments

@nishantshah977
Copy link

@PawanOsman It works fine in my localhost. Whne I try to host it on render or shared web hosting it gives following error.

error={'message': 'Error getting a new session, If this error persists, your country may not be supported yet. If your country was the issue, please consider using a U.S. VPN or a U.S. residential proxy.', 'type': 'invalid_request_error'}, support='https://discord.pawan.krd')

Steps taken to reproduce

  1. Switched to US location
  2. Used US Proxy
  3. Waited 24 hours to see if it works
@2013224691
Copy link

I'm having the same problem. Any ideas on how to fix it? I'm in the US and I'm trying to use a US VPN anyways, but it's not working.

@nishantshah977
Copy link
Author

I created my own proxy using python so closed this issue. Thanks for this wonderful project.

@2013224691
Copy link

Can you share your python solution please?

@nishantshah977
Copy link
Author

What I did is used g4f.ai for getting response from model and returned those using flask (like your code does).

Why don't you explore it and create new repo. You project is really awesome and helpful. Hope to see it live again without any error

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

No branches or pull requests

2 participants