infosimples / deathbycaptcha

Ruby API for DeathByCaptcha (Captcha Solver as a Service)
MIT License
144 stars 35 forks source link

http fail with positive balance #9

Closed mtorres-ix closed 11 years ago

mtorres-ix commented 11 years ago

hi there I have a problem with this gem, I cant connect to the api and I have a valid account with positive balance

I'm getting this error:

/Users/chebyte/Developer/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/deathbycaptcha-4.1.4/lib/deathbycaptcha/http_client.rb:78:in `rescue in call': HTTP call failed (DEATHBYCAPTCHA API ERROR) (DeathByCaptcha::Errors::CallError)

anyone knows?

barbolo commented 11 years ago

Can you paste the result of running the code below in your Ruby interpreter? (tip: http://pastebin.com/)

require 'deathbycaptcha'

client = DeathByCaptcha.http_client('YOUR_USERNAME', 'YOUR_PASSWORD') client.config.is_verbose = true puts client.get_user.inspect

mtorres-ix commented 11 years ago
I, [2013-07-30T10:16:43.757378 #84634]  INFO -- : SEND: user {:username=>"xxxx", :password=>"xxxx"}
I, [2013-07-30T10:16:44.953246 #84634]  INFO -- : RECV: 97 {"is_banned": false, "status": 0, "rate": 0.13900000000000001, "balance": 13900.0, "user": 95622}
{"is_banned"=>false, "status"=>0, "rate"=>0.139, "balance"=>13900.0, "user"=>95622}
[Finished in 5.3s]
barbolo commented 11 years ago

@mtorres-ix

The result looks good. You actually CAN connect to the API.

Can you paste the code that raised the error?

mtorres-ix commented 11 years ago

now is working seems that the api was down