Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'hitCount' of undefined #84

Closed
petermr opened this issue Mar 3, 2016 · 2 comments
Closed

TypeError: Cannot read property 'hitCount' of undefined #84

petermr opened this issue Mar 3, 2016 · 2 comments
Assignees

Comments

@petermr
Copy link
Member

petermr commented Mar 3, 2016

[I thought I had posted under this title before but can't find it]

localhost:projects pm286$ getpapers -q neonicotinoid -x -o neonicotinoid -k 100
info: Searching using eupmc API

TypeError: Cannot read property 'hitCount' of undefined
    at EuPmc.completeCallback (/Users/pm286/.nvm/v0.10.38/lib/node_modules/getpapers/lib/eupmc.js:64:11)
    at Request.emit (events.js:98:17)
    at Request.mixin._fireError (/Users/pm286/.nvm/v0.10.38/lib/node_modules/getpapers/node_modules/restler/lib/restler.js:207:10)
    at ClientRequest.<anonymous> (/Users/pm286/.nvm/v0.10.38/lib/node_modules/getpapers/node_modules/restler/lib/restler.js:246:14)
    at ClientRequest.emit (events.js:95:17)
    at Socket.socketErrorListener (http.js:1548:9)
    at Socket.emit (events.js:95:17)
    at net.js:834:16
    at process._tickCallback (node.js:448:13)

This was run when the internet connection had dropped. When I reconnected I didn't get it.

Can we test for connections by a method which gives a clean error and then drops the job?

@blahah
Copy link
Member

blahah commented Mar 5, 2016

Should have been fixed in #77

@blahah blahah closed this as completed Mar 5, 2016
@blahah
Copy link
Member

blahah commented Mar 5, 2016

(and included in release 0.4.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants