tetalius / gosyncmycalendars Goto Github PK
View Code? Open in Web Editor NEWProject for the synchronization between Google and Outlook calendar events
Home Page: https://gosyncmycalendars.me/
License: BSD 3-Clause "New" or "Revised" License
Project for the synchronization between Google and Outlook calendar events
Home Page: https://gosyncmycalendars.me/
License: BSD 3-Clause "New" or "Revised" License
Cron renewal never works. :(
Capture message from sentry sends message as an error, so remove this call from line 36 on backend/logic.rb
Currently, the synchronization between the events is very basic. Subject, hours and description are the ones that are syncing.
This issue is generated because of the need to sync location between the events. Problem with this is that the providers use very different strategies to implement this funcionality.
This issue will be closed on next release (v0.1.4) preferrably before 2018-06-30 as this is the due date of the project
*json.SyntaxError: unexpected end of JSON input
File "github.com/TetAlius/GoSyncMyCalendars/backend/db/db.go", line 52, in StartSync
data.sentry.CaptureErrorAndWait(err, map[string]string{"database": "backend"})
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 138, in subscribeCalendarHandler
err = s.database.StartSync(calendar, decoded[1])
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 57, in subscribeCalendarHandler)-fm
server.mux.HandleFunc("/subscribe/", server.subscribeCalendarHandler)
File "net/http/server.go", line 1947, in ServeHTTP
f(w, r)
File "net/http/server.go", line 2337, in ServeHTTP
h.ServeHTTP(w, r)
...
(6 additional frame(s) were not displayed)
unexpected end of JSON input
develop
0.1.1
https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/569119221
Although recurrence events are not prepared to be synchronized, they should update without removing the recurrence.
Right now, they are updating and recurrence is removed because of the json is sending:
"recurrence":[{}]
It should not be sending this.
Currently, the synchronization between the events is very basic. Subject, hours and description are the ones that are syncing.
This issue is generated because of the need to sync recurrence between the events. Problem with this is that the providers use very different strategies to implement this funcionality.
This issue will be closed on next release (v0.1.4) preferrably before 2018-06-30 as this is the due date of the project
https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/569959447/
*api.OutlookError: code: ErrorInvalidParameter. message: Notification URL 'https://ec2-34-245-25-172.eu-west-1.compute.amazonaws.com:8081/outlook/watcher?validationtoken=NGRlNzA3NmUtNjIyNC00Y2FhLTkyZWEtZWNmNmIzYzUzYzJi' verification failed 'System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.ConnectStream.WriteHeaders(Boolean async)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Exchange.OData.Model.Notifications.PushNotification.PushSubscriptionCallbackUrlValidationHelper.SendRequestAndVerifyResponse(Uri callbackUrl, PushSubscription pushSubscription)'.
File "github.com/TetAlius/GoSyncMyCalendars/backend/db/db.go", line 52, in StartSync
data.sentry.CaptureError(err, map[string]string{"database": "backend"})
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 136, in subscribeCalendarHandler
err = s.database.StartSync(calendar, decoded[1])
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 50, in subscribeCalendarHandler)-fm
server.mux.HandleFunc("/subscribe/", server.subscribeCalendarHandler)
File "net/http/server.go", line 1947, in ServeHTTP
f(w, r)
File "net/http/server.go", line 2337, in ServeHTTP
h.ServeHTTP(w, r)
...
(6 additional frame(s) were not displayed)
code: ErrorInvalidParameter. message: Notification URL 'https://ec2-34-245-25-172.eu-west-1.compute.amazonaws.com:8081/outlook/watcher?validationtoken=NGRlNzA3NmUtNjIyNC00Y2FhLTkyZWEtZWNmNmIzYzUzYzJi' verification failed 'System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.ConnectStream.WriteHeaders(Boolean async)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Exchange.OData.Model.Notifications.PushNotification.PushSubscriptionCallbackUrlValidationHelper.SendRequestAndVerifyResponse(Uri callbackUrl, PushSubscription pushSubscription)'.
https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/569938402/
*pq.Error: update or delete on table "calendars" violates foreign key constraint "parent_calendar" on table "calendars"
File "github.com/TetAlius/GoSyncMyCalendars/frontend/db/calendar.go", line 76, in deleteFromUser
data.sentry.CaptureError(err, map[string]string{"database": "frontend"})
File "github.com/TetAlius/GoSyncMyCalendars/frontend/db/user.go", line 190, in DeleteCalendar
return data.deleteFromUser(calendar, user)
File "github.com/TetAlius/GoSyncMyCalendars/frontend/frontend.go", line 281, in calendarHandler
err := s.database.DeleteCalendar(currentUser, id)
File "github.com/TetAlius/GoSyncMyCalendars/frontend/frontend.go", line 93, in calendarHandler)-fm
mux.HandleFunc("/calendars/", server.calendarHandler)
File "net/http/server.go", line 1947, in ServeHTTP
f(w, r)
...
(9 additional frame(s) were not displayed)
pq: update or delete on table "calendars" violates foreign key constraint "parent_calendar" on table "calendars"
Button of remove calendar should be disable when a link between the calendar exists
Remove custom notifications settings from travis.yml
https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/577311869/
*json.UnmarshalTypeError: cannot unmarshal string into Go struct field OutlookRecurrencePattern.DaysOfWeek of type api.OutlookDayOfWeek
File "github.com/TetAlius/GoSyncMyCalendars/backend/logic.go", line 93, in manageSubscription
s.sentry.CaptureErrorAndWait(err, tags)
File "github.com/TetAlius/GoSyncMyCalendars/backend/logic.go", line 31, in manageSynchronizationOutlook
err = s.manageSubscription(calendar, subscription.SubscriptionID, subscription.Data.ID, tags)
File "github.com/TetAlius/GoSyncMyCalendars/backend/handlers.go", line 75, in OutlookWatcherHandler
err = s.manageSynchronizationOutlook(notification.Subscriptions)
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 49, in OutlookWatcherHandler-fm
server.mux.HandleFunc("/outlook/watcher", server.OutlookWatcherHandler)
File "net/http/server.go", line 1947, in ServeHTTP
f(w, r)
...
(4 additional frame(s) were not displayed)
json: cannot unmarshal string into Go struct field OutlookRecurrencePattern.DaysOfWeek of type api.OutlookDayOfWeek
https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/574676232/
*errors.errorString: an ID for the event must be given
File "github.com/TetAlius/GoSyncMyCalendars/backend/logic.go", line 83, in manageSubscription
s.sentry.CaptureErrorAndWait(err, tags)
File "github.com/TetAlius/GoSyncMyCalendars/backend/logic.go", line 21, in manageSynchronizationOutlook
err = s.manageSubscription(calendar, subscription.SubscriptionID, subscription.Data.ID, tags)
File "github.com/TetAlius/GoSyncMyCalendars/backend/handlers.go", line 75, in OutlookWatcherHandler
err = s.manageSynchronizationOutlook(notification.Subscriptions)
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 48, in OutlookWatcherHandler-fm
server.mux.HandleFunc("/outlook/watcher", server.OutlookWatcherHandler)
File "net/http/server.go", line 1947, in ServeHTTP
f(w, r)
...
(4 additional frame(s) were not displayed)
an ID for the event must be given
https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/569855456/
*api.GoogleError: 401. message: Unauthorized WebHook callback channel: https://ec2-34-245-25-172.eu-west-1.compute.amazonaws.com:8081/google/watcher
File "github.com/TetAlius/GoSyncMyCalendars/backend/db/db.go", line 52, in StartSync
data.sentry.CaptureErrorAndWait(err, map[string]string{"database": "backend"})
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 136, in subscribeCalendarHandler
err = s.database.StartSync(calendar, decoded[1])
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 50, in subscribeCalendarHandler)-fm
server.mux.HandleFunc("/subscribe/", server.subscribeCalendarHandler)
File "net/http/server.go", line 1947, in ServeHTTP
f(w, r)
File "net/http/server.go", line 2337, in ServeHTTP
h.ServeHTTP(w, r)
...
(6 additional frame(s) were not displayed)
code: 401. message: Unauthorized WebHook callback channel: https://ec2-34-245-25-172.eu-west-1.compute.amazonaws.com:8081/google/watcher
https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/570882458/
*errors.errorString: error creating new request: parse {message:Missing Authentication Token}: first path segment in URL cannot contain colon
File "github.com/TetAlius/GoSyncMyCalendars/backend/db/db.go", line 161, in StopSync
data.sentry.CaptureErrorAndWait(err, map[string]string{"database": "backend"})
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 146, in subscribeCalendarHandler
err := s.database.StopSync(param, decoded[0], decoded[1])
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 51, in subscribeCalendarHandler)-fm
server.mux.HandleFunc("/subscribe/", server.subscribeCalendarHandler)
File "net/http/server.go", line 1947, in ServeHTTP
f(w, r)
File "net/http/server.go", line 2337, in ServeHTTP
h.ServeHTTP(w, r)
...
(3 additional frame(s) were not displayed)
error creating new request: parse {message:Missing Authentication Token}: first path segment in URL cannot contain colon
https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/577311869/
*json.UnmarshalTypeError: cannot unmarshal string into Go struct field OutlookRecurrencePattern.Type of type api.OutlookRecurrencePatternType
File "github.com/TetAlius/GoSyncMyCalendars/backend/logic.go", line 93, in manageSubscription
s.sentry.CaptureErrorAndWait(err, tags)
File "github.com/TetAlius/GoSyncMyCalendars/backend/logic.go", line 31, in manageSynchronizationOutlook
err = s.manageSubscription(calendar, subscription.SubscriptionID, subscription.Data.ID, tags)
File "github.com/TetAlius/GoSyncMyCalendars/backend/handlers.go", line 75, in OutlookWatcherHandler
err = s.manageSynchronizationOutlook(notification.Subscriptions)
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 49, in OutlookWatcherHandler-fm
server.mux.HandleFunc("/outlook/watcher", server.OutlookWatcherHandler)
File "net/http/server.go", line 1947, in ServeHTTP
f(w, r)
...
(4 additional frame(s) were not displayed)
json: cannot unmarshal string into Go struct field OutlookRecurrencePattern.Type of type api.OutlookRecurrencePatternType
https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/573684403/
*pq.Error: could not determine data type of parameter $2
File "github.com/TetAlius/GoSyncMyCalendars/backend/db/calendar.go", line 180, in updateCalendarFromUser
data.sentry.CaptureErrorAndWait(err, map[string]string{"database": "backend"})
File "github.com/TetAlius/GoSyncMyCalendars/backend/db/calendar.go", line 56, in UpdateAllCalendarsFromUser
data.updateCalendarFromUser(calendar, userUUID)
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 210, in refreshHandler
err := s.database.UpdateAllCalendarsFromUser(userUUID, email)
File "github.com/TetAlius/GoSyncMyCalendars/backend/backend.go", line 51, in refreshHandler)-fm
server.mux.HandleFunc("/refresh/", server.refreshHandler)
File "net/http/server.go", line 1947, in ServeHTTP
f(w, r)
...
(4 additional frame(s) were not displayed)
pq: could not determine data type of parameter $2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.