Git Product home page Git Product logo

gosyncmycalendars's Introduction

GoSyncMyCalendars License

Master: codecov Develop: codecov

Master: Build Status Develop: Build Status

gosyncmycalendars's People

Contributors

tetalius avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gosyncmycalendars's Issues

Synchronize location info

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

Error

*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

Environment

develop

Release

0.1.1

Sentry

https://sentry.io/gosyncmycalendars/gosyncmycalendars/issues/569119221

Modifying recurrent events removes recurrence

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.

Synchronize recurrence info

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

*api.OutlookError: code: ErrorInvalidParameter. message: Notification URL 'https://ec2-34-245-25-172.eu-west-1.compu...

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)'.

*pq.Error: update or delete on table "calendars" violates foreign key constraint "parent_calendar" on table ...

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

*json.UnmarshalTypeError: cannot unmarshal string into Go struct field OutlookRecurrencePattern.DaysOfWeek of type api.Outl...

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

*errors.errorString: an ID for the event must be given

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

*api.GoogleError: 401. message: Unauthorized WebHook callback channel: https://ec2-34-245-25-172.eu-west-1.compute....

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

*errors.errorString: error creating new request: parse {message:Missing Authentication Token}: first path segment in U...

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

*json.UnmarshalTypeError: cannot unmarshal string into Go struct field OutlookRecurrencePattern.Type of type api.OutlookRec...

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

*pq.Error: could not determine data type of parameter $2

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.