dsdanielpark / Gemini-API

The unofficial python package that returns response of Google Gemini through cookie values.
https://pypi.org/project/python-gemini-api/
MIT License
148 stars 11 forks source link

SNlM0e token value not found. Double-check cookies dict value or pass it as Gemini(cookies=Dict()) #3

Closed opnoice closed 4 months ago

opnoice commented 4 months ago

Traceback (most recent call last): File "c:\Users\Divyanshi\Desktop\New\app.py", line 22, in GeminiClient = Gemini(cookies=cookies) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Divyanshi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\gemini\core.py", line 97, in init self.token = self._get_snim0e() ^^^^^^^^^^^^^^^^^^ File "C:\Users\Divyanshi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\gemini\core.py", line 221, in _get_snim0e raise Exception( Exception: SNlM0e token value not found. Double-check cookies dict value or pass it as Gemini(cookies=Dict())

opnoice commented 4 months ago

I have no cookie named SNlM0e on gemini website

opnoice commented 4 months ago

i tried multiple times, same error, also i put whole website cookies

PushkarOP commented 4 months ago

Same issue

dsdanielpark commented 4 months ago

Aware of the error, likely due to fast cookie refresh.

Aim to update by March for smoother use by many users after February work. Thanks. Submit other issues to #4.