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

Can't connect to Google Calendar via IPv6 #17

Open
hanskokx opened this issue May 17, 2018 · 11 comments
Open

Can't connect to Google Calendar via IPv6 #17

hanskokx opened this issue May 17, 2018 · 11 comments

Comments

@hanskokx
Copy link

Unable to configure Google Calendar. A code is never generated.

qml: HTTP 0 Headers: 

file:///home/hans/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/GoogleCalendarSession.qml:69: SyntaxError: JSON.parse: Parse error
qml: HTTP 0 Headers: 

file:///home/hans/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/GoogleCalendarSession.qml:69: SyntaxError: JSON.parse: Parse error
qml: HTTP 0 Headers: 

file:///home/hans/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigSerializedString.qml:15: SyntaxError: JSON.parse: Parse error
file:///home/hans/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigGoogleCalendar.qml:28: TypeError: Cannot call method 'concat' of undefined

@Zren
Copy link
Owner

Zren commented May 17, 2018

  • Are you offline?
  • What version of Event Calendar?
  • What distro? What version of Qt? What version of Plasma? To find out, open the Info Center app.

@hanskokx
Copy link
Author

hanskokx commented May 17, 2018 via email

@Zren
Copy link
Owner

Zren commented May 17, 2018

Try relogging when you get the chance.

@hanskokx
Copy link
Author

hanskokx commented May 17, 2018 via email

@Zren
Copy link
Owner

Zren commented May 17, 2018

I tried in KDE Neon, and with the Kubuntu 18.04 LiveCD in VirtualBox, and it still works for me.

HTTP 0 usually means it can't send the request (eg: offline), or there was some other error making the connection via Qt. Hmmm...

@hanskokx
Copy link
Author

hanskokx commented May 17, 2018 via email

@Zren
Copy link
Owner

Zren commented May 17, 2018

You could turn on debugging (at the bottom of Event Calendar > General) to log the json responses it does receive.

It first connects to https://accounts.google.com/o/oauth2/device/code to get the "code", then it checks https://www.googleapis.com/oauth2/v4/token every 5 seconds to see if the user has logged in yet. After you've logged in and it's successfully received an Access Token, it contacts https://www.googleapis.com/calendar/v3/users/me/calendarList to get your list of calendars.

https://github.com/Zren/plasma-applet-eventcalendar/blob/master/package/contents/ui/config/GoogleCalendarSession.qml#L57

@Zren
Copy link
Owner

Zren commented May 17, 2018

See if you can connect to those hosts with both IPv4 and IPv6.

@hanskokx
Copy link
Author

hanskokx commented May 18, 2018 via email

@hanskokx
Copy link
Author

hanskokx commented May 18, 2018 via email

@Zren Zren changed the title Unable to configure Google Calendar Can't connect to Google Calendar via IPv6 May 18, 2018
@intika
Copy link

intika commented Feb 9, 2019

Had similar issue, actually it's not related to network at all... even if the bug is blocking network XMLHttpRequest... in my case it was caused by a mis configuration related to another plasmoid (notifications) what i did is remove the plasmoid that caused the problem restart plasmashell then added back the removed plasmoid.

How to debug - Detailed solution

  • Make a copy of plasma desktop main config file : /home/user/.config/plasma-org.kde.plasma.desktop-appletsrc
  • Start a temporary french desktop (with the steps bellow)
  • Kill plasmashell, remove /home/user/.config/plasma-org.kde.plasma.desktop-appletsrc, start plasmashell and check if it works as intended (if it works this mean it's related to a plasmoids in this case follow the rest of the steps, but if it does not work here it mean that the problem come from somewhere else may be a missing/corrupted package... in that case restore your config file and debug differently...)
  • Restore plasma-org.kde.plasma.desktop-appletsrc and restart plasmashell
  • Remove suspected plasmoid and restart plasmashell (repeat this step until it works and you identify the guilty plasmoid)
  • Restore plasma-org.kde.plasma.desktop-appletsrc and restart plasmashell
  • Remove the guilty plasmoid
  • Restart plasmashell
  • Restore the removed plasmoid

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