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

getting "no csrf found" error frequently #50

Closed
anzarwani opened this issue Jul 3, 2023 · 4 comments
Closed

getting "no csrf found" error frequently #50

anzarwani opened this issue Jul 3, 2023 · 4 comments

Comments

@anzarwani
Copy link
Contributor

I am running a streamlit app and credentials are well placed in secrets.toml file. The app used to work fine but in the last run I got the below error.

File "/home/appuser/venv/lib/python3.9/site-packages/hugchat/login.py", line 102, in grantAuth raise Exception("No csrf found!")

link to the project : BookBot

@ogios
Copy link
Collaborator

ogios commented Jul 3, 2023

the package just had an update 2 days ago(0.0.8), you still get the error after update?

@anzarwani
Copy link
Contributor Author

I updated the package and didn't get the csrf error anymore but now I am getting below error.

AttributeError: 'Login' object has no attribute 'saveCookies'

I will need to check this. Thank you!

@ogios
Copy link
Collaborator

ogios commented Jul 3, 2023

#44

the save and load funtions' name was changed and support customized path

@anzarwani
Copy link
Contributor Author

@ogios It is working now. Thank you.

I think the readme.md needs to be updated to reflect the recent changes. It still has old function names.

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