Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Process crash when Newsfeed is called #787

Closed
MichalTuleja opened this issue Aug 9, 2018 · 0 comments
Closed

Process crash when Newsfeed is called #787

MichalTuleja opened this issue Aug 9, 2018 · 0 comments

Comments

@MichalTuleja
Copy link
Contributor

The explorer crashes as soon as /api/newsfeed is called; the following is being logged:

/home/lisk/lisk-explorer/services/newsfeed/TwitterService.js:29
                return o.retweeted_status.entities.urls[0].url;
                                                           ^

TypeError: Cannot read property 'url' of undefined
    at tweetUrl (/home/lisk/lisk-explorer/services/newsfeed/TwitterService.js:29:46)
    at tweetMapper (/home/lisk/lisk-explorer/services/newsfeed/TwitterService.js:51:7)
    at Array.map (<anonymous>)
    at client.get (/home/lisk/lisk-explorer/services/newsfeed/TwitterService.js:60:26)
    at Request._callback (/home/lisk/lisk-explorer/node_modules/twitter/lib/twitter.js:227:5)
    at Request.self.callback (/home/lisk/lisk-explorer/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/home/lisk/lisk-explorer/node_modules/request/request.js:1157:10)
    at emitOne (events.js:116:13)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant