Toggldesktop: Brand new user first time trying "Syntax error: Bad or invalid port number: 8888;https=127.0.0.1:8888"

Created on 1 May 2016  路  6Comments  路  Source: toggl-open-source/toggldesktop

Hello all,

I just signed up on the toggl website. There was some issues with that, but I managed to do it solely through "Signup" with google feature. Now I've downloaded the desktop app. I'm trying to "LOG IN WITH GOOGLE". I press the "Allow" button and get to a page that says "Received verification code. You may now close this window."

The first time I did this and looked back at the "Toggl Desktop" window I saw a red alert-bar with the message "Syntax error: Bad or invalid port number: 8888;https=127.0.0.1:8888". In addition I was still on the sign-in view.

I dismissed the alert bar and tried again. After authorizing the application nothing happens on the desktop app (including no alert-bar).

Any ideas where I can start troubleshooting?

Most helpful comment

Hi there,

it seems an obscure bug but I have a very similar behavior. Sorry for commenting on such an old issue. Running Win10 (Toggl 7.4.35), I've tried to reinstall Toggl and cleared cache but no luck. Login screen shows the spinner for a few seconds, then says Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769. Log file below.

Any ideas, @IndrekV ? Ironically, it does work fine on Linux and Mac.

/edit:

For everyone who arrives here via Google:
It's problem with the proxy. The Win10 system has a software called "Freedom" installed which modifies the proxy settings. If Toggl is set to "Do not use proxy", it does work.

2019-06-04 19:02:47.073 [6172 0]:context:D:startPeriodicUpdateCheck
2019-06-04 19:02:47.074 [6172 0]:context:D:Next periodic update check at 2019-06-05T19:02:47Z
2019-06-04 19:02:47.074 [6172 0]:context:D:Next periodic sync at 2019-06-04T19:31:06Z
2019-06-04 19:02:47.075 [6172 0]:context:D:SetEnvironment production
2019-06-04 19:02:47.088 [6172 0]:context:D:SetDBPath C:Users\Bob\AppData\LocalTogglDesktop\toggldesktop.db
2019-06-04 19:02:47.088 [6172 0]:database:D:sqlite3_threadsafe()=1
2019-06-04 19:02:47.091 [6172 0]:database:D:PRAGMA journal_mode=wal
2019-06-04 19:02:47.097 [6172 0]:database:D:Migrated in 4 ms
2019-06-04 19:02:47.097 [6172 0]:context:D:StartEvents
2019-06-04 19:02:47.097 [6172 0]:ui:D:VerifyCallbacks
2019-06-04 19:02:47.097 [6172 0]:context:D:updateUI display_settings
2019-06-04 19:02:47.097 [6172 0]:ui:D:DisplaySettings
2019-06-04 19:02:47.106 [6172 0]:context:W:Cannot get default PID, user logged out
2019-06-04 19:02:47.106 [6172 0]:context:W:Cannot get default PID, user logged out
2019-06-04 19:02:47.108 [6172 0]:database:D:LoadCurrentUser
2019-06-04 19:02:47.109 [6172 0]:context:D:setUser user_logged_in=0
2019-06-04 19:02:47.109 [6172 0]:ui:D:DisplayLogin open=1, user_id=0
2019-06-04 19:02:47.126 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/record_timeline-0 ..
2019-06-04 19:02:47.129 [6172 0]:context:D:switchTimelineOff
2019-06-04 19:02:47.129 [6172 0]:context:D:switchWebSocketOff
2019-06-04 19:02:47.129 [6172 1]:context:D:onSwitchTimelineOff
2019-06-04 19:02:47.129 [6172 0]:context:D:updateUI display_project_autocomplete display_autotracker_rules
2019-06-04 19:02:47.129 [6172 1]:context:D:onSwitchWebSocketOff
2019-06-04 19:02:47.129 [6172 1]:websocket_client:D:Shutdown
2019-06-04 19:02:47.130 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.141 [6172 1]:ui:D:DisplayProjectAutocomplete
2019-06-04 19:02:47.144 [6172 0]:toggl_api:D:Retrieved window location and size (235x280 by 695x584)
2019-06-04 19:02:47.146 [6172 0]:toggl_api:D:Retrieved mini timer location (0x38 by 0)
2019-06-04 19:02:47.146 [6172 0]:toggl_api:D:Force moved mini timer to primary screen
2019-06-04 19:02:47.150 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/uses_proxy-0 ..
2019-06-04 19:02:47.151 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.175 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/dock_icon-1 ..
2019-06-04 19:02:47.175 [6172 5]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=stats&ea=win/mainsize-0x0&el=&ev=1 ..
2019-06-04 19:02:47.177 [6172 5]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.178 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.195 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/menubar_timer-0 ..
2019-06-04 19:02:47.197 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769

// This request and Analytics log gets repeated every few ms

2019-06-04 19:02:47.542 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/pomodoro_break-0 ..
2019-06-04 19:02:47.544 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.557 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/stop_entry_on_shutdown_sleep-0 ..
2019-06-04 19:02:47.559 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:55.905 [6172 0]:TogglClient:D:Sending request to https://desktop.toggl.com/api/v8/me?app_name=windows_native_app&with_related_data=true ..
2019-06-04 19:02:55.908 [6172 0]:ServerStatus:D:UpdateStatus status_code=0
2019-06-04 19:02:55.908 [6172 0]:ui:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:55.908 [6172 0]:ui:D:DisplayError err=Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769 actionable=Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769 is_user_error=0
2019-06-04 19:02:55.909 [6172 0]:toggl_api:D:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:55.909 [6172 0]:toggl_api:D:Notifying bugsnag: System.Exception: Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:03:00.442 [6172 0]:toggl_api:D:Saved window location and size (235x280 by 695x584)
2019-06-04 19:03:00.452 [6172 0]:toggl_api:D:Saved mini timer location (0x38 by 0)

All 6 comments

Please make sure google login is enabled in the web app profile view. If it is enabled try to disable and re-enable it to see if this fixes the issue for Toggl Desktop. If the issue remains please specify your operation system version so we can look more into it.

I am using Windows 10 Home. I'm sorry but I don't know what you mean by "the web app profile view." However I tried it again today and it seems to work.

Sorry for the false alarm, I guess?

Hi there,

it seems an obscure bug but I have a very similar behavior. Sorry for commenting on such an old issue. Running Win10 (Toggl 7.4.35), I've tried to reinstall Toggl and cleared cache but no luck. Login screen shows the spinner for a few seconds, then says Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769. Log file below.

Any ideas, @IndrekV ? Ironically, it does work fine on Linux and Mac.

/edit:

For everyone who arrives here via Google:
It's problem with the proxy. The Win10 system has a software called "Freedom" installed which modifies the proxy settings. If Toggl is set to "Do not use proxy", it does work.

2019-06-04 19:02:47.073 [6172 0]:context:D:startPeriodicUpdateCheck
2019-06-04 19:02:47.074 [6172 0]:context:D:Next periodic update check at 2019-06-05T19:02:47Z
2019-06-04 19:02:47.074 [6172 0]:context:D:Next periodic sync at 2019-06-04T19:31:06Z
2019-06-04 19:02:47.075 [6172 0]:context:D:SetEnvironment production
2019-06-04 19:02:47.088 [6172 0]:context:D:SetDBPath C:Users\Bob\AppData\LocalTogglDesktop\toggldesktop.db
2019-06-04 19:02:47.088 [6172 0]:database:D:sqlite3_threadsafe()=1
2019-06-04 19:02:47.091 [6172 0]:database:D:PRAGMA journal_mode=wal
2019-06-04 19:02:47.097 [6172 0]:database:D:Migrated in 4 ms
2019-06-04 19:02:47.097 [6172 0]:context:D:StartEvents
2019-06-04 19:02:47.097 [6172 0]:ui:D:VerifyCallbacks
2019-06-04 19:02:47.097 [6172 0]:context:D:updateUI display_settings
2019-06-04 19:02:47.097 [6172 0]:ui:D:DisplaySettings
2019-06-04 19:02:47.106 [6172 0]:context:W:Cannot get default PID, user logged out
2019-06-04 19:02:47.106 [6172 0]:context:W:Cannot get default PID, user logged out
2019-06-04 19:02:47.108 [6172 0]:database:D:LoadCurrentUser
2019-06-04 19:02:47.109 [6172 0]:context:D:setUser user_logged_in=0
2019-06-04 19:02:47.109 [6172 0]:ui:D:DisplayLogin open=1, user_id=0
2019-06-04 19:02:47.126 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/record_timeline-0 ..
2019-06-04 19:02:47.129 [6172 0]:context:D:switchTimelineOff
2019-06-04 19:02:47.129 [6172 0]:context:D:switchWebSocketOff
2019-06-04 19:02:47.129 [6172 1]:context:D:onSwitchTimelineOff
2019-06-04 19:02:47.129 [6172 0]:context:D:updateUI display_project_autocomplete display_autotracker_rules
2019-06-04 19:02:47.129 [6172 1]:context:D:onSwitchWebSocketOff
2019-06-04 19:02:47.129 [6172 1]:websocket_client:D:Shutdown
2019-06-04 19:02:47.130 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.141 [6172 1]:ui:D:DisplayProjectAutocomplete
2019-06-04 19:02:47.144 [6172 0]:toggl_api:D:Retrieved window location and size (235x280 by 695x584)
2019-06-04 19:02:47.146 [6172 0]:toggl_api:D:Retrieved mini timer location (0x38 by 0)
2019-06-04 19:02:47.146 [6172 0]:toggl_api:D:Force moved mini timer to primary screen
2019-06-04 19:02:47.150 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/uses_proxy-0 ..
2019-06-04 19:02:47.151 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.175 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/dock_icon-1 ..
2019-06-04 19:02:47.175 [6172 5]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=stats&ea=win/mainsize-0x0&el=&ev=1 ..
2019-06-04 19:02:47.177 [6172 5]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.178 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.195 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/menubar_timer-0 ..
2019-06-04 19:02:47.197 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769

// This request and Analytics log gets repeated every few ms

2019-06-04 19:02:47.542 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/pomodoro_break-0 ..
2019-06-04 19:02:47.544 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:47.557 [6172 4]:HTTPSClient:D:Sending request to https://ssl.google-analytics.com/collect?v=1&tid=UA-3215787-27&cid=74c6277e-1d17-4589-9bcb-991f4505393f&t=event&ec=settings&ea=settings/stop_entry_on_shutdown_sleep-0 ..
2019-06-04 19:02:47.559 [6172 4]:Analytics:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:55.905 [6172 0]:TogglClient:D:Sending request to https://desktop.toggl.com/api/v8/me?app_name=windows_native_app&with_related_data=true ..
2019-06-04 19:02:55.908 [6172 0]:ServerStatus:D:UpdateStatus status_code=0
2019-06-04 19:02:55.908 [6172 0]:ui:E:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:55.908 [6172 0]:ui:D:DisplayError err=Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769 actionable=Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769 is_user_error=0
2019-06-04 19:02:55.909 [6172 0]:toggl_api:D:Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:02:55.909 [6172 0]:toggl_api:D:Notifying bugsnag: System.Exception: Bad URI syntax: bad or invalid port number: 7769;https=localhost:7769
2019-06-04 19:03:00.442 [6172 0]:toggl_api:D:Saved window location and size (235x280 by 695x584)
2019-06-04 19:03:00.452 [6172 0]:toggl_api:D:Saved mini timer location (0x38 by 0)

Yup, this seems like a problem with Freedom. I'm raising an issue with them

having the same issue :(

Hi @jeanettebautista. Are you using a proxy or some software that sets a proxy for you?
Have you tried "Preferences->Proxy->Do not use proxy" in Toggl Desktop?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nidarasheed picture nidarasheed  路  5Comments

florieger picture florieger  路  5Comments

danfarrow picture danfarrow  路  7Comments

jlaw9 picture jlaw9  路  4Comments

DustinJSilk picture DustinJSilk  路  7Comments