da-h / AirLatex.vim

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

Login doesnt work #28

Closed dataO1 closed 3 years ago

dataO1 commented 4 years ago

Im getting prompted to login, even if im logged in already. Doesnt change, when im relogging. Connecting to overleaf seems to work. Also i have browser_cookie3 installed via pip, is there a way to debug that ? There are no errors popping up from withing vim.

da-h commented 4 years ago

Hi @diskroma,

a few questions first:

  1. Are you using Firefox or Chrome/Chromium for login?
  2. Are you using www.overleaf.com or another Overleaf instance?

Best, da-h

dataO1 commented 4 years ago

I am using Chromium and yes, im using www.overleaf.com. I also login via LastPass, but that shouldnt change anything with the cookie.

da-h commented 4 years ago

Hey @diskroma,

today I was looking into this issue a bit. I've created an account for www.overleaf.com to test if there was an api change in the protocol.

I am able to login without any tweaks using Firefox. For Chromium, browser_cookie3 needed some config on my machiene

However, I was running into another issue: When choosing a project after login ([enter] on the project name), the websocket handshake is only every now and then successful (first message is None).

Unfortunately, I have no solution, yet. Until then, several restarts may be needed until it works.

Best, da-h

dataO1 commented 4 years ago

Thanks for looking into this, ill try it with firefox then i guess.

Best, diskroma

dataO1 commented 4 years ago

Firefox seems to work out of the box, however i dont get any documents, when connecting a project. This is how it looks:

1583700496_grim (ignore the "laksd.... stuff, i accidentally inserted something)

da-h commented 4 years ago

Ah, right. That is what I meant; the websocket connection does not start correctly in some cases. (Currently working on a solution.)

If you want to try it out, just restart the process several times until it works. However, due to that and one other issue the project is far from useable.

da-h commented 4 years ago

Short Update: I asked the Overleaf-Team to document their api (https://github.com/overleaf/overleaf/issues/299), however i did not get an answer yet.

The easiest will be to debug the whole setup in a local environment, which I plan to do next in this project.

da-h commented 3 years ago

Hey, I tackled the project again today!

The work today was to set up a local overleaf instance and adapting the code to the servers most recent API. (See also #29)

While adapting the session to the latest Overleaf version today, I also adapted the recognition of project trees. If you are still interested in the project status do not hesitate to try it out & let me know if the current code solved your problem.

Best, da-h

da-h commented 3 years ago

Since, as far as I can tell, exactly this bug has been fixed recently (see #31), I'll close this issue for now.

Should the problem still occur contrary to expectations, please let me know. Feel free to reopen this issue. :)