davidkus / triviacrack-client

Command line client and bot for Trivia Crack.
MIT License
1 stars 0 forks source link

Fetching games for username...Request Timeout #5

Closed samcro1967 closed 2 years ago

samcro1967 commented 4 years ago

Started getting errors a few days ago. Deleted the container and image and rebuilt with the same result. Looks like ruby did not update. Still at version 2.6.5.

Docker Log

Starting to play Trivia Crack as username.
Starting a new game.
undefined method `[]' for nil:NilClass
Restarting bot in 10 seconds...

Debug Output

C:\Windows\system32>docker exec -it triviacrack bash
root@b8926808128d:/code# bin/trivia-crack bot -e username -p password --debug
Starting to play Trivia Crack as username.
Fetching games for username...
Request Timeout
/usr/local/bundle/gems/unirest-2x-1.1.3/lib/unirest.rb:72:in `rescue in internal_request'
/usr/local/bundle/gems/unirest-2x-1.1.3/lib/unirest.rb:58:in `internal_request'
/usr/local/bundle/gems/unirest-2x-1.1.3/lib/unirest.rb:47:in `request'
/usr/local/bundle/gems/unirest-2x-1.1.3/lib/unirest.rb:103:in `get'
/usr/local/bundle/gems/triviacrack-0.4.0/lib/triviacrack/api/common.rb:19:in `get'
/usr/local/bundle/gems/triviacrack-0.4.0/lib/triviacrack/api/game.rb:22:in `get_games'
/code/lib/triviacrack/client/bot.rb:43:in `block in play'
/code/lib/triviacrack/client/bot.rb:34:in `loop'
/code/lib/triviacrack/client/bot.rb:34:in `play'
bin/trivia-crack:52:in `block in start_bot'
bin/trivia-crack:49:in `loop'
bin/trivia-crack:49:in `start_bot'
bin/trivia-crack:23:in `bot'
/usr/local/bundle/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
/usr/local/bundle/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/bundle/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
/usr/local/bundle/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
bin/trivia-crack:69:in `<main>'
root@b8926808128d:/code#