Opened 8 years ago

Closed 3 years ago

#12559 closed defect (wontfix)

IO pipline topics: TypeError when subscribed to /dojo/io/error/

Reported by: Simon Speich Owned by: Bryan Forbes
Priority: high Milestone: 1.11
Component: IO Version: 1.6.0
Keywords: io, publish, deferred, xhr Cc:
Blocked By: Blocking:

Description

I'm subscribed to the error topic to listen to server errors:

dojo.subscribe('/dojo/io/error'), function(dfd, err){
	console.log(dfd, err)
	// do something here
};
When the server responds with a 404, the subscription is never called because there is a type error. Unfortunately, firebug and crome devtools can not give the correct line, but I think it occurs in dojo/_base/connect on line 274 f.apply(this, args
[]);

Below are the error messages: Firebug: TypeError?: lls[i] is undefined, bootsrap.js line 490 Chrome Devtools: TypeError?: Cannot call method 'apply' of undefined, dojo/_base/Deferred.js: 213

Change History (2)

comment:1 Changed 7 years ago by bill

Owner: changed from James Burke to Bryan Forbes

Bulk change to reassign IO tickets to Bryan, since he is working on new dojo/request module. Some of these tickets should probably be closed as already fixed, invalid, or wontfix.

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.11
Resolution: wontfix
Status: newclosed

With dojo/request, you would instead use dojo/request/notify to add an event handler for error events. We're not planning to make changes to the deprecated dojo.io APIs, so I'm marking this as wontfix.

Note: See TracTickets for help on using tickets.