-
Notifications
You must be signed in to change notification settings - Fork 56
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: Querying all projects failed. Please try again. #75
Comments
Hey, I came across this. I'd point out the Overleaf team introduced some changes last year, which may cause this issue. Since I'm an overleaf/overleaf-sync newbie, I'd appreciate experts' help! ❤️ The Overleaf team has been working on a migration project for the last year and completed it. Before
After
Git historyGathered by me after digging the git history of overleaf/overleaf repository and may be incorrect. Take a look at the commits that introduced these changes into Overleaf (CE edition).
Two versions of the project list page seem to have been maintained during migration, and the old one that contains What can we do?One patch will be to have overleaf-sync/olsync/olclient.py Lines 38 to 41 in aa62165
to @staticmethod
def filter_projects(json_content, more_attrs=None):
more_attrs = more_attrs or {}
+ projects = json_content.get("projects", []) # you have to check json_content is not None
- for p in json_content:
+ for p in projects: and overleaf-sync/olsync/olclient.py Lines 91 to 93 in aa62165
to json_content = json.loads(
- BeautifulSoup(projects_page.content, 'html.parser').find('meta', {'name': 'ol-projects'}).get('content'))
+ BeautifulSoup(projects_page.content, 'html.parser').find('meta', {'name': 'ol-prefetchedProjectsBlob'}).get('content'))
return list(OverleafClient.filter_projects(json_content)) My suggestion seems not intuitive because to call |
One of the folk already fixed this issue. |
Hi sorry, I did not understand how I can fix this error. |
I think you have to use this repo: https://github.com/svennniiii/overleaf-sync |
For PIPX users: |
Command
ols list
doesn't work.I am successfully logged in via
ols login
.This is the output of
ols list -v
:The text was updated successfully, but these errors were encountered: