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

Unknow infos in cookie #1

Open
denisprovost opened this issue Feb 27, 2025 · 4 comments
Open

Unknow infos in cookie #1

denisprovost opened this issue Feb 27, 2025 · 4 comments

Comments

@denisprovost
Copy link

Hi, I'm trying to retrieve cookie information.
I find sso-rw and sso but the rest no.

x-anonuserid
x-challenge
x-signature

are not found in the cookie, any reason?
Ty

@endman100
Copy link

In my testing, just using "sso-rw" and "sso" successfully get the response.
You can using the program below.

from grok_client import GrokClient
# Your cookie values
cookies = {
    "sso": "ey...",
    "sso-rw": "ey..."
}
# Initialize the client
client = GrokClient(cookies)

# Send a message and get response
response = client.send_message("write a poem")
print(response)

Also, if there are any other mistakes, please let me know. Thanks!

@denisprovost
Copy link
Author

Nice, thank you!

@justinpaulturner
Copy link

@denisprovost did this work for you? I had same issue and was not able to get the request working with just the sso's.

@denisprovost
Copy link
Author

denisprovost commented Feb 27, 2025

@justinpaulturner yes, using only sso and sso-rw as @endman100 explained works for me

Strange think, this code work too:

cookie = "eyJh_________yUnE"
client = GrokClient({"sso": cookie, "sso-rw": cookie})

for me your api is a great help, thank you!

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

3 participants