cancel
Showing results for 
Search instead for 
Did you mean: 

Twitter trends dashlet fails

janvg
Champ in-the-making
Champ in-the-making
I installed the dashlet examples and added it to the dashboard.

When I try to load the twitter ttrends dashlet it gives this error :

org.alfresco.web.scripts.WebScriptException - TypeError: Cannot read property "trends" from null (AlfrescoScript#12)
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:239)
   
Exception:   org.alfresco.web.scripts.WebScriptException - Failed to load script '/org/alfresco/components/custom-dashlets/twittertrends.get.js (in classpath store file:C:/Alfresco3E/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': TypeError: Cannot read property "trends" from null (AlfrescoScript#12)
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:120)
4 REPLIES 4

bessong
Champ in-the-making
Champ in-the-making
HI?

Where did you find the Twitter dashlet sample ?

I'd be interested in this one 😉

Greg

janvg
Champ in-the-making
Champ in-the-making

mikeh
Star Contributor
Star Contributor
http://community.alfresco.com/alfresco/n/browse/workspace/SpacesStore/602b180a-a6ae-11dd-8b53-f73cef...

As to the bug - I'm not sure. It looks like the Twitter service isn't returning correctly formatted JSON (although it looks ok from a very brief inspection just now). Unfortunately that sample code doesn't contain much error checking / validation - I'll find out who wrote it and point them here.

Mike

bessong
Champ in-the-making
Champ in-the-making
Thanks all,

I missed it

I'll have a look, on this dashlet next week. If I can help… I'll do !

GrG
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.