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

Gemini API IP Checking? #48

Open
UnitTHK opened this issue Dec 10, 2024 · 6 comments
Open

Gemini API IP Checking? #48

UnitTHK opened this issue Dec 10, 2024 · 6 comments
Labels
invalid This doesn't seem right

Comments

@UnitTHK
Copy link

UnitTHK commented Dec 10, 2024

It seems like Google are starting to implement an IP check or something for the API, if I use the cookie from the same IP address as the one used to generate the cookies things are fine, but once I put it on another IP (proxy/moving the source code to host machine) then the client refuses to login, anyone else experiencing that?

@HanaokaYuzu HanaokaYuzu added the invalid This doesn't seem right label Dec 10, 2024
@HanaokaYuzu
Copy link
Owner

Tested with multiple ip addresses and no error was found. You should use each set of cookies only in a single environment. Try a fresh login with incognito mode and copy new cookies from there when running on a remote host.

@UnitTHK
Copy link
Author

UnitTHK commented Dec 12, 2024

Tested with multiple ip addresses and no error was found. You should use each set of cookies only in a single environment. Try a fresh login with incognito mode and copy new cookies from there when running on a remote host.

I've tried with these, nothing worked. Even a new google account didn't work, all the credential works fine when it's on local machine, but once uploaded to a remote machine, or the proxy setting turned on, then the client will fail to auth, saying that the token is expired/etc. I can give remote access to my machine for more in-depth testing if required

@UnitTHK
Copy link
Author

UnitTHK commented Dec 12, 2024

Result on remote server:
image

Result on local machine:
image

@UnitTHK
Copy link
Author

UnitTHK commented Dec 12, 2024

The same token is used on both

Even when I generate a complete new set of token and only paste it on the remote server without running it on local, it will still error like this.
It's not an IP ban either, cause it happens on multiple of my VPSes, even ones that are freshly created for testing, so I really don't get wtf is going on

it used to works fine, but all of a sudden things just stops working, even though nothing changed

@HanaokaYuzu
Copy link
Owner

Are you able to play with https://gemini.google.com/app behind the problematic proxy or on those vps? According to google gemini is not available to some countries/regions

@UnitTHK
Copy link
Author

UnitTHK commented Dec 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants