maxenxe / HQ-Trivia-Bot-NOT-MAINTAINED-

Small NodeJS bot for HQ Trivia
24 stars 13 forks source link

res.links error? #13

Closed lampkiller44 closed 6 years ago

lampkiller44 commented 6 years ago

node bot.js

Screenshot done Answers resized node-tesseract: Running 'tesseract answers.jpg C:\Users\Lamp\AppData\Local\Temp\tmp-7368w24GCZrIGEM7' node-tesseract: Deleting 'C:\Users\Lamp\AppData\Local\Temp\tmp-7368w24GCZrIGEM7.txt' node-tesseract: Preprocessor cleanup Straw—capping Panhandling Question resized node-tesseract: Running 'tesseract question.jpg C:\Users\Lamp\AppData\Local\Temp\tmp-7368AHsTmZJKZqpp' node-tesseract: Deleting 'C:\Users\Lamp\AppData\Local\Temp\tmp-7368AHsTmZJKZqpp.txt' node-tesseract: Preprocessor cleanup The question is "Vhat is the act C performing music public places for ti " Error: Error on response (503):null : <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

https://www.google.com/search?hl=en&q=Vhat%20is%20the%20act%20C%20performing%20music%20public%20places%20for%20ti%20%0C&start=0&sa=N&num=25&ie=UTF-8&oe=UTF-8&gws_rd=ssl






About this page

Our systems have detected unusual traffic from your computer network. This page checks to see if it's really you sending the requests, and not a robot. Why did this happen?

IP address:
Time: 2018-03-10T23:26:52Z
URL: https://www.google.com/search?hl=en&q=Vhat%20is%20the%20act%20C%20performing%20music%20public%20places%20for%20ti%20%0C&start=0&sa=N&num=25&ie=UTF-8&oe=UTF-8&gws_rd=ssl
at Request._callback (C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\node_modules\google\lib\google.js:98:16)
at Request.self.callback (C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\node_modules\request\request.js:186:22)
at Request.emit (events.js:180:13)
at Request.<anonymous> (C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\node_modules\request\request.js:1163:10)
at Request.emit (events.js:180:13)
at IncomingMessage.<anonymous> (C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\node_modules\request\request.js:1085:12)
at Object.onceWrapper (events.js:272:13)
at IncomingMessage.emit (events.js:185:15)
at endReadableNT (_stream_readable.js:1101:12)
at process._tickCallback (internal/process/next_tick.js:114:19)

C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\bot.js:50 for (var i = 0; i < res.links.length; ++i) { ^

TypeError: Cannot read property 'links' of null at C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\bot.js:50:55 at Request._callback (C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\node_modules\google\lib\google.js:98:7) at Request.self.callback (C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\node_modules\request\request.js:186:22) at Request.emit (events.js:180:13) at Request. (C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\node_modules\request\request.js:1163:10) at Request.emit (events.js:180:13) at IncomingMessage. (C:\Users\Lamp\Desktop\HQ-Trivia-Bot-master\node_modules\request\request.js:1085:12) at Object.onceWrapper (events.js:272:13) at IncomingMessage.emit (events.js:185:15) at endReadableNT (_stream_readable.js:1101:12) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! hqtriviabot@1.0.0 start: node bot.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hqtriviabot@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Lamp\AppData\Roaming\npm-cache_logs\2018-03-10T23_26_51_876Z-debug.log

maxenxe commented 6 years ago

Try using a VPN for the Google error, it should fix the problem