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

Log in fails due to updateProjectList() failing to parse the projects page #45

Open
kgmt0 opened this issue Mar 14, 2023 · 0 comments · May be fixed by #46
Open

Log in fails due to updateProjectList() failing to parse the projects page #45

kgmt0 opened this issue Mar 14, 2023 · 0 comments · May be fixed by #46

Comments

@kgmt0
Copy link

kgmt0 commented Mar 14, 2023

When I try to log in (using the cookies method), I get the this error message:

Offline. Please Login. I saved the webpage 'https://www.overleaf.com' I got under /tmp/tmpmh97iu98.

This is what's in the log file:

            __init__ / openSidebar #31  : Starting AirLatex (Version 0.2)
            __init__ / openSidebar #32  : System Info:
            __init__ / openSidebar #33  :   - Python Version: 3.10
            __init__ / openSidebar #34  :   - OS: Linux (6.2.2-arch2-1)
                   session / login #98  : login()
                   session / login #139 : Found Cookie for domain 'overleaf_session2' named 'REDACTED'
       session / updateProjectList #169 : updateProjectList()

I checked session.py and it looks like updateProjectList() is looking for the project list in a meta tag with name=ol-projects:

            meta = re.search('<meta\s[^>]*name="ol-projects"[^>]*>', projectPage.text) if projectPage.ok else None

But the projects page on Overleaf no longer has that tag. I closest thing I found was a meta tag with name=ol-prefetchedProjectsBlob. I tried updating the code to use that tag instead but I got an error about missing attributes, so it looks like the format changed as well.

kgmt0 added a commit to kgmt0/AirLatex.vim that referenced this issue Mar 14, 2023
updateProjectList() was looking for the project list in a meta tag with
name=ol-projects, which no longer exists. Fix this by using meta tag
with name=ol-prefetchedProjectsBlob instead.

Fixes da-h#45.
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

Successfully merging a pull request may close this issue.

1 participant