-
Notifications
You must be signed in to change notification settings - Fork 52
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
Error: Project details could not be queried. #61
Comments
Same problem here, I could not download the project files |
Same here, more info:
That line reads:
That self._cookie would probably need to come from OverleafClient.login() which states, that its DEPRECATED. |
Same issue, itstorque's commit remedied this after generating a new login cookie |
After getting the same error itstorque's commit fixed it but today a different error message appeared. Using linux
|
Hi @CeciliaCoelho, @itstorque's commit also stopped working for me. It seems Overleaf has made some changes on the website. These modifications (see #66) worked for me. |
Took a look at the rendered HTML for the landing page, they removed the classes for the links in the table. I think replacing the line JAVASCRIPT_EXTRACT_PROJECT_URL = "document.getElementsByClassName('project-list-table-name-link')[0].href" with this JAVASCRIPT_EXTRACT_PROJECT_URL = "document.getElementsByTagName('tbody')[0].children[0].getElementsByTagName('a')[0].href" should work. Its very jank, if they introduce another table in the HTML before the project list, it will break. Another possible implementation that I prefer would be replacing that line with JAVASCRIPT_EXTRACT_PROJECT_URL = "q=0;for (const c of document.getElementsByTagName('a')) { if(c.href.indexOf('/project/') > 0) { q=c.href; break; } }; q" The thinking here is that support for URLs is more concrete (backcompatibility) and therefore changes to the html page wouldn't break the ability to find a link to a project to load the GCLB cookie. Note: I didn't test these, but I am confident that they should work (lmk otherwise) |
I think this alone doesn't do the trick. Additionally, I had to do two changes in I don't know how the old landing page looked like, but it may be due to the same design changes. |
EDIT:User error, I forgot to select the project I want to sync / download. correct command to do is: |
I can obtain the project list with
ols list
, but I got an error when I dools -l
orols -r
to sync files.Project queried successfully.
✅ Querying project
💥 Querying project details
Error: Project details could not be queried.
The text was updated successfully, but these errors were encountered: