10
9
Fork
You've already forked linux-app
14

No connection created when Firefox as default browser #701

Closed
opened 2026年06月23日 10:42:19 +02:00 by Codemeister · 3 comments

Installation

apt install eduvpn-client

Version

4.7.2+ubuntu+24.04+1 and 5.0.2

Check if your issue is in the known issues list

Not in known issues.

OS/Distribution

linux mint 22.3

Logs

time=2026年06月19日T16:15:49.737+02:00 level=DEBUG msg="FSM transition" old=Main new=GettingConfig
time=2026年06月19日T16:15:49.783+02:00 level=DEBUG msg="OAuth log" log="Access token is expired"
time=2026年06月19日T16:15:49.784+02:00 level=DEBUG msg="OAuth log" log="getting tokens with the refresh token at URL: https://evpn.hs-harz.de/vpn-user-portal/oauth/token"
time=2026年06月19日T16:15:49.878+02:00 level=DEBUG msg="OAuth log" log="Got a refresh token error: tokens are invalid due to: got invalid_grant when refreshing the tokens with description: "refresh_token" expired"
time=2026年06月19日T16:15:49.878+02:00 level=DEBUG msg="FSM transition" old=GettingConfig new=OAuthStarted
time=2026年06月19日T16:15:49.880+02:00 level=DEBUG msg="OAuth log" log="starting HTTP loopback server"
time=2026年06月19日T16:16:33.932+02:00 level=DEBUG msg="OAuth log" log="got HTTP response for OAuth exchange"
time=2026年06月19日T16:16:33.944+02:00 level=DEBUG msg="FSM transition" old=OAuthStarted new=Main
time=2026年06月19日T16:16:33.944+02:00 level=DEBUG msg="error returned to client" error="Failed to connect to server. The cause of the error is: no parameter 'state' found in URL."
2026年06月19日 16:16:33,944 - call-model - ERROR - /usr/lib/python3/dist-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to connect to server. The cause of the error is: no parameter 'state' found in URL. Do you have a problem while adding before connecting?

=========
The error occurs ONLY with Firefox-based browsers (Firefox, LibreWolf, Zen) as default browsers. Chrome-based browsers (Vivaldi, Brave) work fine.

my local Institution: Harz University of Applied Sciences

# Installation apt install eduvpn-client # Version 4.7.2+ubuntu+24.04+1 and 5.0.2 # Check if your issue is in the known issues list Not in known issues. # OS/Distribution linux mint 22.3 # Logs ## time=2026年06月19日T16:15:49.737+02:00 level=DEBUG msg="FSM transition" old=Main new=GettingConfig time=2026年06月19日T16:15:49.783+02:00 level=DEBUG msg="OAuth log" log="Access token is expired" time=2026年06月19日T16:15:49.784+02:00 level=DEBUG msg="OAuth log" log="getting tokens with the refresh token at URL: https://evpn.hs-harz.de/vpn-user-portal/oauth/token" time=2026年06月19日T16:15:49.878+02:00 level=DEBUG msg="OAuth log" log="Got a refresh token error: tokens are invalid due to: got invalid_grant when refreshing the tokens with description: \"refresh_token\" expired" time=2026年06月19日T16:15:49.878+02:00 level=DEBUG msg="FSM transition" old=GettingConfig new=OAuthStarted time=2026年06月19日T16:15:49.880+02:00 level=DEBUG msg="OAuth log" log="starting HTTP loopback server" time=2026年06月19日T16:16:33.932+02:00 level=DEBUG msg="OAuth log" log="got HTTP response for OAuth exchange" time=2026年06月19日T16:16:33.944+02:00 level=DEBUG msg="FSM transition" old=OAuthStarted new=Main time=2026年06月19日T16:16:33.944+02:00 level=DEBUG msg="error returned to client" error="Failed to connect to server. The cause of the error is: no parameter 'state' found in URL." 2026年06月19日 16:16:33,944 - call-model - ERROR - /usr/lib/python3/dist-packages/eduvpn/utils.py - utils.py:143 - exception occurred: Failed to connect to server. The cause of the error is: no parameter 'state' found in URL. Do you have a problem while adding before connecting? ========= The error occurs ONLY with Firefox-based browsers (Firefox, LibreWolf, Zen) as default browsers. Chrome-based browsers (Vivaldi, Brave) work fine. ========= my local Institution: Harz University of Applied Sciences
 time=2026年06月19日T16:16:33.944+02:00 level=DEBUG msg="error returned to client" error="Failed to connect to server. The cause of the error is: no parameter 'state' found in URL."

That is very weird. Do you use some browser plugins that potentially strip off query parameters that look like "tracking" parameters? 🤔

Can you test with a "clean" Firefox/Librewolf profile without any extensions and configuration changes?

For me, both Firefox and Librewolf work fine (for the record: on Fedora 44).

``` time=2026年06月19日T16:16:33.944+02:00 level=DEBUG msg="error returned to client" error="Failed to connect to server. The cause of the error is: no parameter 'state' found in URL." ``` That is very weird. Do you use some browser plugins that potentially strip off query parameters that look like "tracking" parameters? 🤔 Can you test with a "clean" Firefox/Librewolf profile without any extensions and configuration changes? For me, both Firefox and Librewolf work fine (for the record: on Fedora 44).

I tried with a fresh install of firefox - and it worked, but only after a reboot and selecting the institution again. After that I removed extensions from zen and librewolf. It seems the offending extension is SmartHTTPS (version 0.3.5). If I disable this extension, leaving my other extension active (uBlock origin and KeepassXC) everything works again.

I tried with a fresh install of firefox - and it worked, but only after a reboot and selecting the institution again. After that I removed extensions from zen and librewolf. It seems the offending extension is SmartHTTPS (version 0.3.5). If I disable this extension, leaving my other extension active (uBlock origin and KeepassXC) everything works again.

@Codemeister wrote in #701 (comment):

I tried with a fresh install of firefox - and it worked, but only after a reboot and selecting the institution again. After that I removed extensions from zen and librewolf. It seems the offending extension is SmartHTTPS (version 0.3.5). If I disable this extension, leaving my other extension active (uBlock origin and KeepassXC) everything works again.

Ah, it probably rewrites the HTTP call to localhost to HTTPS. It might be better to use Firefox' built-in "HTTPS-Only Mode", it doesn't suffer from this problem.

@Codemeister wrote in https://codeberg.org/eduVPN/linux-app/issues/701#issuecomment-17944613: > I tried with a fresh install of firefox - and it worked, but only after a reboot and selecting the institution again. After that I removed extensions from zen and librewolf. It seems the offending extension is SmartHTTPS (version 0.3.5). If I disable this extension, leaving my other extension active (uBlock origin and KeepassXC) everything works again. Ah, it probably rewrites the HTTP call to localhost to HTTPS. It might be better to use Firefox' built-in "HTTPS-Only Mode", it doesn't suffer from this problem.
Sign in to join this conversation.
No Branch/Tag specified
master
upstream-deb
openvpn-persistent
1.x
4.7.2
4.7.1
4.7.0
4.6.0
4.5.1
4.5.0
4.4.99.0
4.4.0
4.3.1
4.3.0
4.2.99.1
4.2.99.0
4.2.1
4.2.0
4.1.99.0
4.1.3
4.1.2
4.1.1
4.1.0
3.1.1
4.0.1
4.0.0
pr-3.3.1
pr-3.3.0
pr-3.2.0
3.1.0
3.0.0
2.2.1
2.2.0
2.1.0
2.0.0
1.1
1.0.3
1.0.2
1.0.1
1.0rc17
1.0rc16
1.0rc15
1.0rc14
1.0rc13
1.0rc12
1.0rc11
1.0rc10
1.0rc9
1.0rc8
1.0rc7
1.0rc6
1.0rc5
1.0rc4
1.0rc3
1.0rc2
1.0rc1
0.8
0.7.2
0.7.1
0.7
0.6.1
0.6
0.5.1
0.5
0.3
0.2.1
0.2
0.1.1
0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eduVPN/linux-app#701
Reference in a new issue
eduVPN/linux-app
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?