cozy / cozy-calendar

An application to manage your events
https://demo.cozycloud.cc/#apps/calendar/
GNU Affero General Public License v3.0
66 stars 39 forks source link

[client] TypeError: docType is undefined #564

Open clochix opened 8 years ago

clochix commented 8 years ago

Seen in user logs, no context:

error - calendar:client | {"type":"error","error":{"msg":"TypeError: docType is undefined","name":"TypeError","full":"TypeError: docType is undefined","stack":"SocketListener</SocketListener.prototype.handleModel/<.success</<@https://xxxx.cozycloud.cc/apps/calendar/javascripts/app.js:1934:11
.fetch/options.success@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:20313:22\njQuery.Callbacks/fire@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:3187:10\njQuery.Callbacks/self.fireWith@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:3299:7\ndone@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:8365:5\n.send/callback/<@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:8712:9\n"},"url":"https://xxxx.cozycloud.cc/apps/calendar/javascripts/app.js","line":1934,"col":11,"href":"https://xxxx.cozycloud.cc/apps/calendar/#month/2016/7"}
[2016-07-05 08:05:54:154] error - calendar:client | SocketListener</SocketListener.prototype.handleModel/<.success</<@https://xxxx.cozycloud.cc/apps/calendar/javascripts/app.js:1934:11
.fetch/options.success@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:20313:22
jQuery.Callbacks/fire@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:3187:10
jQuery.Callbacks/self.fireWith@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:3299:7
done@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:8365:5
.send/callback/<@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:8712:9
clochix commented 8 years ago

Looking at users logs, a contact sync is in progress and lot of contact.update are fired. All of them seems to have a docType, but one of the docType is 'Contact' instead of 'contact'. This is the only difference I've found. /cc @gregorylegarec

gregorylegarec commented 8 years ago

Should be fixed by https://github.com/cozy/cozy-calendar/pull/591.

jsilvestre commented 8 years ago

This will be fixed in the next release, thank you @gregorylegarec!