Skip to content
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: invalid Zip archive: Could not find central directory end #233

Open
adorableweasel opened this issue Aug 16, 2023 · 5 comments
Open

Comments

@adorableweasel
Copy link

adorableweasel commented Aug 16, 2023

I'm trying to get this setup for ProtonVPN and get to this step:

"Please log-in at https://account.protonvpn.com/dashboard and then visit https://account.protonvpn.com/api/vpn/v2/users and copy the value of the cookie starting with "AUTH-" in the request from your browser's network request inspector:"

Of which after following the steps, the result is this:

"Error: invalid Zip archive: Could not find central directory end"

Any advice?

Edit: Doing this on Ubuntu V 22.04.2 LTS

@jamesmcm
Copy link
Owner

Are you able to get a zip file if you open:

https://account.protonvpn.com/api/vpn/config?Category=Country&Tier=2&Platform=Linux&Protocol=udp

when logged in?

They might have changed the config generation - I'll check it when I renew my subscription.

@lpapadakos
Copy link

lpapadakos commented Aug 20, 2023

Hello @adorableweasel in my case this happened becaue the cookie I was pasting was malformed.

  • Get the Cookie: line from the network request.
  • Paste it in a text editor
  • Now copy only the relevant cookie -there might be others in that line, like Session: e.t.c.-
    (Keep only this part: AUTH-xyz...=abc... without the semicolon)
  • Paste that into the vopono prompt

@adorableweasel
Copy link
Author

Hello @adorableweasel in my case this happened becaue the cookie I was pasting was malformed.

  • Get the Cookie: line from the network request.
  • Paste it in a text editor
  • Now copy only the relevant cookie -there might be others in that line, like Session: e.t.c.-
    (Keep only this part: AUTH-xyz...=abc... without the semicolon)
  • Paste that into the vopono prompt

Okay looks like the text editor helped. But I'm getting another error now

Error: Failed to parse auth cookie

@lpapadakos
Copy link

I got that error as well, if I left the semicolon in.

Copy only the AUTH-efefwf=dfsefefs... part, no semicolons, no trailing spaces

@jamesmcm
Copy link
Owner

jamesmcm commented Nov 4, 2023

Note the specific AUTH-xxx=yyy cookie you need to copy is the one where xxx there matches the x-pm-uid header.

I've tried to make it a bit clearer in the User Guide - https://github.com/jamesmcm/vopono/blob/master/USERGUIDE.md#openvpn-sync-and-authentication

protonvpn_header

FWIW you can also use the Wireguard configs as custom providers e.g.:

$ vopono -v exec --custom ./hostname-RO-9.conf --protocol wireguard --provider custom --protonvpn-port-forwarding firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants