Closed Bug 1137455 Opened 9 years ago Closed 9 years ago

Error: TypeError: this.mDeferred is null in gdataRequest.jsm

Categories

(Calendar :: Provider: GData, defect)

Lightning 4.0.0.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rkent, Assigned: darktrojan)

References

Details

Attachments

(2 files)

Error console, repeated many times:

Error: TypeError: this.mDeferred is null
Source File: resource://gdata-provider/modules/gdataRequest.jsm
Line: 244
Any other errors, maybe the one from bug 1101175 ? With calendar.debug.log and calendar.debug.log.verbose enabled, what messages immediately preceed that error?
I get this too, although not very often. There's one instance on my console now, with no other messages in the 6 minutes before it.

I also noticed that the non-all-day events on my Google calendar are now missing. If I restart Thunderbird, the all-day events will disappear too.
Attached file error.log β€”
This bug happened to me again (might be something different from my previous comment), and I managed to get the log from this calendar refresh and the two before it. That might help figure out why 401s are occurring in the first place.

(The error in the last line occurred 7 times, it just doesn't show up like that when I cut and paste.)
> 00:41:25.699 [calGoogleSession] Token will expire in 0 seconds, refreshing

Perhaps we shouldn't try to reuse a token the very second it expires.
Attachment #8571913 - Attachment mime type: text/x-log → text/plain
Attached patch 1137455-1.diff β€” β€” Splinter Review
Fairly certain that here's the problem. Request fails, authError. Re-auth. Request succeeds, succeed() resolves the promise. Next function in promise chain from original request calls succeed() again.
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #8574259 - Flags: review?(philipp)
Comment on attachment 8574259 [details] [diff] [review]
1137455-1.diff

Review of attachment 8574259 [details] [diff] [review]:
-----------------------------------------------------------------

Indeed, this might actually fix it. Can you set a commit message and set checkin-needed? I'll see that this gets to be part of 1.0.5
Attachment #8574259 - Flags: review?(philipp) → review+
https://hg.mozilla.org/comm-central/rev/43811e5e942c

(oops, forgot the reviewer in the commit message)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
OS: Windows 8.1 → All
Hardware: x86_64 → All
Resolution: --- → FIXED
Target Milestone: --- → 4.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: