Cannot read property 'reject' of undefined


#1

Hello,

I have created a widget on https://twitter.com/settings/widgets by going to “Widgets”.
Filled out the form and copy pasted the JavaScript. But when I load the page all I get is an error.

Uncaught TypeError: Cannot read property 'reject' of undefined 

It is on platform.twitter.com/widgets.js:37 where it breaks, so I don’t think it is something I have done.

I get this on Chrome, but it alto doesn’t work on Safari and Firefox.


#2

Hi Noë, could you please provide us some more information and we can try to help debug the problem. Thanks.

[faq:25874]


#3

Well as a proof of concept I wrote this html file:

Tweets by @noesnaterse

That is the part that was pasted from https://twitter.com/settings/widgets
You can try it too, and then you get the error in every browser on every platform.


#4

I have the same issue here using twttr.widgets.createTimeline

var Deferred = { twitter: (function() { return $.ajax({ dataType: 'script', cache: true, url: '//platform.twitter.com/widgets.js' }); })() };
deferred.twitter.done(function() {
	twttr.widgets.createTimeline(
		barrelData.widgetId,
		container[0],
		function(el){
			barrelData.iframe = iScrollIframe(el);
		}, {
			theme: 'dark',
			linkColor: '#f6fea2',
			height: container.innerHeight() - ('small' == screenDetect.size() ? 50 : 0)
		}
	);
});

#5

Hi Noë,

Can you delete your widget, recreate it, and try it again? That should generate a new widget id. I believe that particular widget id you shared was deleted. Hope this helps!

Also, on our side we should print better error messages instead of failing with that javascript error. Thanks for the report, we’ll try to fix this soon.


#6

Hi Ara,

That seemed to have done the trick, however I did not delete anything.
So I don’t know how the widget got deleted.

But it works now, to thanks a lot!


#7