Closed paulingham closed 11 years ago
I faced the same issue and can't find any resource to resolve this problem, so could you help me? Whenever, I call decode(image_url), it raises exception: "Connection timed out during API request"
Any help?
@tamvo https://github.com/infosimples/deathbycaptcha/pull/7 - made a pull request, give that a go until it gets merged in.
The pull request by @paulingham was merged today.
Thanks guys, much appreciated.
Hi,
I'm just wondering if anyone is experiencing any issues with the socket client? I've not been able to get it to work on REE or 1.9.3.
I've obviously remove usernames/passwords but wondered if you guys were aware of anything?
SEND: {"captcha":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL\nDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/\nwAALCAA5ASwBAREA/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL\n/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEI\nI0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVW\nV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ip\nqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3\n+Pn6/9oACAEBAAA/APf6KKKKKKKKo6ydRXRrs6QsTaiIj9nE33C/bPtXgms/\nFr4l6JZzf2r4eitEbMa3DW7qFY9CDnFehfDv4jR6v8PV1rxHd29vLBM0EsrM\nF342/Nj/AIEOldRbeN/DF4kjW2uWUvlxmRgsoyFAyTiqdp8TPBd4VEXiOwDN\n0WSTYf1q1rdwdd8PXVt4e1+3tr51BhuYZFk2EEHp7gEfjXLfBnxRrfiXQtUX\nxBOZb6yvTAd0YRlG0cEADnOa9KooooooooooooooooooooooooooqK5uYLO2\nkuLmVYoYxud3OAo968y1b48+FNM1ZrFFuLoK4Vp4QPL+ue9Z2vftD+HrB400\nizn1TcD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9qCmPYqsqZ\nB4IAVcfQV9A2HhTwh4R1GXXrS3t7CadPLeQS7EYHB4XO0dAeAK6W21Cyvc/Z\nbuCfAyfKkDcfga4r4y6glh8MNWBuTBJOqwxkEguSwyox6gH8Aa841Pwxpelf\ns2pdxWUS3t1FBcyzyRr5hYyDADYzgBzj0BPrXZ/AC9trj4apbwsxltrqVZgR\nwGJ3DHr8pWvUqKKKKKKKKKKayK4AZQwByMjNO6UUUUUUUUUUUUUUUUUUVDdw\nG5s5oFfYZEKbsdMjFfJvw78B2Ou/Eu98ParPI8Fh525oPl8xo329+g716F8X\nfCxvvGWnX2u65FYeGdiodzElCOoVMHLN644HXiuH0zWNA0D4yaW3hO6li0ZJ\nIrZ5nLfvg3Dk9yCSOw6CvRP2idIt5fDNhq/mSLcQ3At9oJ2urAnkdOCMj6mq\n/wAQ7Aa/8BtI16SaaCa0tIJfKjc+XJvKKQwPXsQe2K1/gLoENl4PTW4C4bUs\niSNnJUeWzJlR2yVJP1x2Fet0UUUUUUUUUUUUUUUUUUUUUUUUUUUUUVk+JtZk\n8P8Ahy91SHT7jUJYEBjtbZSzyMSFAAHOMnJODgAnBr58+EMmsW/xZl1HU9Cv\nY/7UEweQwPGkLud+eR0yMYz3q78b2vNO+JmjapfWEt9o8ccXlQMxEcjKxLp3\nAJ47enpXMeMdb1W28Z6L4tn8InR7dQj29tMoAlKE7txCg5PoRkda9B+P+tyT\n+B9AjSNUh1CUXLA8su1AQAf+BmlOpS+M/wBnmSw0jT7ma6trWKCSNYNu54mQ\ntsA4IwCRj6YzxUXwh+JWl6VpujeB7uy1FdT8+WFm8kbEdpGYAjO4deSRxznj\nke7UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUV//9k=\n","is_case_sensitive":1,"cmd":"upload","version":"DBC/Ruby v4.1.0"} SEND: {"username":"xxxxxxxxxxx","password":"xxxxxxxxxxx","cmd":"login","version":"DBC/Ruby v4.1.0"} CONN:
<Errno::EINPROGRESS: Operation now in progress - connect(2) would block>
SEND: Resource temporarily unavailable - recvfrom(2) would block SEND: /var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/socket_client.rb:151:in'
CLOSE:
SEND: Connection timed out during API request
Exception: Connection timed out during API request
recv_nonblock'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/socket_client.rb:151:in
recv'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/socket_client.rb:197:inblock in call'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/socket_client.rb:184:in
each'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/socket_client.rb:184:incall'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/socket_client.rb:186:in
block in call'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/socket_client.rb:184:ineach'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/socket_client.rb:184:in
call'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/socket_client.rb:51:inupload'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/deathbycaptcha-4.1.2/lib/deathbycaptcha/client.rb:99:in
decode'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/bundler/gems/otb_availability_checker_gem-bfe5eafa4915/lib/otb_availability_checker/recaptcha/cracker.rb:41:inretrieve_captcha'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/bundler/gems/otb_availability_checker_gem-bfe5eafa4915/lib/otb_availability_checker/recaptcha/cracker.rb:14:in
crack'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/bundler/gems/otb_availability_checker_gem-bfe5eafa4915/lib/otb_availability_checker/suppliers/ryanair/captcha_cracker.rb:15:incrack!'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/bundler/gems/otb_availability_checker_gem-bfe5eafa4915/lib/otb_availability_checker/suppliers/ryanair.rb:37:in
crack_captcha'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/bundler/gems/otb_availability_checker_gem-bfe5eafa4915/lib/otb_availability_checker/suppliers/ryanair.rb:31:insubmit_search'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/bundler/gems/otb_availability_checker_gem-bfe5eafa4915/lib/otb_availability_checker/suppliers/ryanair.rb:20:in
scrape'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/bundler/gems/otb_availability_checker_gem-bfe5eafa4915/lib/otb_availability_checker.rb:16:inscrape!'\n(irb):2:in
irb_binding'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb/workspace.rb:80:ineval'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb/workspace.rb:80:in
evaluate'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb/context.rb:254:inevaluate'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb.rb:159:in
block (2 levels) in eval_input'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb.rb:273:insignal_status'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb.rb:156:in
block in eval_input'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb/ruby-lex.rb:243:inblock (2 levels) in each_top_level_statement'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in
loop'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb/ruby-lex.rb:229:inblock in each_top_level_statement'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in
catch'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb/ruby-lex.rb:228:ineach_top_level_statement'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb.rb:155:in
eval_input'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb.rb:70:inblock in start'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb.rb:69:in
catch'\n/opt/ruby-1.9.3/lib/ruby/1.9.1/irb.rb:69:instart'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:47:in
start'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:8:instart'\n/var/www/otb_livebook_app/shared/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:41:in
<top (required)>'\nscript/rails:6:inrequire'\nscript/rails:6:in
We're definitely not firewalled as I can see the traffic via a TCP dump.