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

Blocks: Crash while getting delegate data #807

Closed
lsilvs opened this issue Sep 3, 2018 · 0 comments
Closed

Blocks: Crash while getting delegate data #807

lsilvs opened this issue Sep 3, 2018 · 0 comments
Assignees
Milestone

Comments

@lsilvs
Copy link
Contributor

lsilvs commented Sep 3, 2018

The following error occurs when delegate data are not available by HTTP.

Exception has occurred: TypeError
TypeError: Cannot read property 'statusCode' of undefined
    at Request.request.get [as _callback] (/lib/api/blocks.js:114:18)
    at self.callback (/node_modules/request/request.js:185:22)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at Request.onRequestError (/node_modules/request/request.js:877:8)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at Socket.socketErrorListener (_http_client.js:387:9)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
@lsilvs lsilvs self-assigned this Sep 3, 2018
@lsilvs lsilvs added this to the Version 2.1.5 milestone Sep 3, 2018
@MichalTuleja MichalTuleja changed the title TypeError: Cannot read property 'statusCode' of undefined Blocks: Crash while getting delegate data Sep 7, 2018
@MichalTuleja MichalTuleja removed the api label Sep 7, 2018
MichalTuleja added a commit that referenced this issue Sep 7, 2018
…defined

Avoid crash when response not present - Closes #807
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

2 participants