-
Notifications
You must be signed in to change notification settings - Fork 59
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 could not be queried.
#32
Comments
@ihasdapie, I've just had the same error. Try to re-run ols login and overwrite your cookie file. This helped in my case. |
@ihasdapie If this happens please re-run the command you ran with verbose option |
Closing this for now - feel free to re-open if this occurs again or when you can provide stack traces. Thanks! |
Hi, I am getting the same error now, I ran it with the -v option and get this. (overleaf) C:\Users\simon\Desktop\HT22\Master's Thesis Econometrics HT22 (Copy)>ols -v 💥 Querying project details |
Ok I see, could you please delete the |
I have tried to do that now, the same thing happens. I tried it before too but by logging in again and overwriting .olauth. I also tried making a new environment and installing there to not have any disturbances with anything. I am running Python 3.9.13 and installing with pip3. |
I changed for "debugging" in olbrowserlogin.py the code to this:
ols -login -v will then result in the following output (without SECRET):
It seems, that handle_cookie_added is never been called with the GCLB cookie. Could it be a problem with the language subdomain ("https://www.overleaf.com/project" vs "https://de.overleaf.com/project" )? |
@Tadelsucht That is an interesting observation. Does it work for you? Is there a way for me to try to sync via "https://de.overleaf.com/project" ? |
No, overleaf-sync does not work for me. Changing the URLs in the python script to the language specifc one does not help either. The python script does not get the needed GCLB cookie. 🤷♂️ |
Hm, okay. It is strange that not more people seem to have this problem 🧐
On 23 Nov 2022, at 16:05, Julien Bartels ***@***.***> wrote:
No, overleaf-sync does not work for me. Changing the URLs in the python script to the language specifc one does not help either. The python script does not get the needed GCLB cookie. 🤷♂️
—
Reply to this email directly, view it on GitHub<#32 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A4EUNJEPMFICRIBZDHM2VX3WJYXENANCNFSM5AYTTL3Q>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I just installed overleaf-sync via pip and have exactly the same problem. (I tried to delete
|
Same issue. I have a GCLB cookie for www.overleaf.com but not for overleaf.com. I replace
|
@wongsingfo Could you explain what value it is that you are coping from Chrome and how to find it? |
Can confirm what @wongsingfo and if you open a project (I opened the target project) in the QT window (commented out the |
@srydstedt if you want to do it manually, inspect element in chrome. Go to the application tab, on the left menu bar there is cookies under the storage section. If you click on the overleaf url, you see all cookies attributed to overleaf, one of which is the GCLB cookie which you can copy the value of. |
It now works again for me with your changes :) Thanks! |
Seems promising that it works for you guys, thanks for providing a solution! I am very new to all this, I've been trying to edit the code by myself for a while now but can't figure it out. So far I have done this, since apparently it was not good practise to try to edit the package where it's originally installed. |
I have figured out how to find the files and edit them now. But the sync still doesn't work for me. @Tadelsucht I tried your changes according to your fix and the login and list is working but not the sync. |
I reinstalled everything and now it works! What I did different was to install in a folder with a identical name as my project, don't know if it mattered or not. |
@itstorque |
I have a similar error:
|
I've been getting this error recently with overleaf-sync 1.1.5, possibly overleaf has changed up their site a bit?
I suggest that instead of querying for the project every time, we can give the option to manually specify or cache the overleaf project id; this would help avoid project querying failures
The text was updated successfully, but these errors were encountered: