da-h / AirLatex.vim

Overleaf / ShareLatex in Vim
MIT License
83 stars 8 forks source link

Unknown Code:7:::1+0 #33

Closed eqimd closed 3 years ago

eqimd commented 3 years ago

AirLatex doesn't load any project just giving Unknown Code:7:::1+0. Tried to set browser to Firefox using let g:AirLatexCookieBrowser="Firefox" and it didn't help. AirLatex.log:

[DEBUG] airlatex.session #54: (Thread-1  ) login()
[DEBUG] airlatex.session #69: (Thread-1  ) Checking Browser 'Firefox' for Cookies at directory ''.
[DEBUG] airlatex.session #102: (Thread-1  ) updateProjectList()
[DEBUG] airlatex.sidebar #78: (MainThread) triggerRefresh() -> event called
[DEBUG] airlatex.sidebar #59: (MainThread) flush_refresh() -> called
[DEBUG] airlatex.session #149: (Thread-3  ) msg_queue : Connecting Project
[DEBUG] airlatex.sidebar #78: (MainThread) triggerRefresh() -> event called
[DEBUG] airlatex.sidebar #59: (MainThread) flush_refresh() -> called
[DEBUG] airlatex.session #210: (Thread-4  ) Websocket channelInfo 'GJnD3f7bbw9o2AmPMpx_:60:60:websocket,flashsocket,htmlfile,xhr-polling,jsonp-polling'
[DEBUG] airlatex.session #212: (Thread-4  ) Websocket wsChannel 'GJnD3f7bbw9o2AmPMpx_'
[DEBUG] airlatex.project_handler #224: (Thread-4  ) Websocket Connecting to wss://www.overleaf.com/socket.io/1/websocket/GJnD3f7bbw9o2AmPMpx_
[DEBUG] airlatex.project_handler #141: (Thread-4  ) starting sendOps_flush()
[DEBUG] airlatex.project_handler #151: (Thread-4  ) sendOps_flush() -> waiting
[DEBUG] airlatex.project_handler #241: (Thread-4  ) 7:::1+0
[DEBUG] airlatex.session #149: (Thread-3  ) msg_queue : Connected.
[DEBUG] airlatex.project_handler #241: (Thread-4  ) None
[DEBUG] airlatex.session #149: (Thread-3  ) msg_queue : Unknown Code:7:::1+0
[DEBUG] airlatex.sidebar #78: (MainThread) triggerRefresh() -> event called
[DEBUG] airlatex.sidebar #59: (MainThread) flush_refresh() -> called
[DEBUG] airlatex.sidebar #78: (MainThread) triggerRefresh() -> event called
[DEBUG] airlatex.sidebar #59: (MainThread) flush_refresh() -> called
[DEBUG] airlatex.session #44: (MainThread) cleanup()
[DEBUG] airlatex.project_handler #213: (MainThread) Connection Closed
[DEBUG] airlatex.project_handler #207: (MainThread) triggerSidebarRefresh()
[DEBUG] airlatex.session #149: (Thread-3  ) msg_queue : Disconnected.

scr

da-h commented 3 years ago

Hi,

I may have found a bug in my code that probably caused the error code. Could you please try again?

Best da-h

eqimd commented 3 years ago

Still doesn't work :( scr

da-h commented 3 years ago

Oh no!

The thing is that I cannot reproduce the problem right know anymore.

Could you give me some details about your login process? Especially, the following information could help me reproduce the error on my end:

Best da-h

eqimd commented 3 years ago
  1. Linux Mint 20.1
  2. Firefox, last version.
  3. I login with e-mail.

UPD: Tried to login with Google, it didn't help.

da-h commented 3 years ago

Ok. I have just set up an e-mail based overleaf.com account myself.

It seems like browser_cookie3 does not catch up all required cookies all the time. In your Airlatex.log, I have added the list of cookies that have been found during login. Just to be sure, I have adapted the cookie query in a latest commit. (So please update the project before proceeding).

As far as I can tell, overleaf requires two cookies to be present during login & during websocket connection: overleaf_session2 and gke-route. Could you please check if those are present on your next login in the log file?

If not, please override the cache of firefox by opening www.overleaf.com/project in the browser and reloading the page using Ctrl + Shift + R.

eqimd commented 3 years ago

Yes, all the needed cookies load and now the plugin works! It's great! Now I can try to find another bugs and maybe do something useful for project :)

da-h commented 3 years ago

Great!

I will add some notes to the README.md regarding this issue and the required steps to solve this problem.