AirLatex.vim icon indicating copy to clipboard operation
AirLatex.vim copied to clipboard

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

Open kgmt0 opened this issue 1 year ago • 0 comments

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 avatar Mar 14 '23 00:03 kgmt0