infosimples / deathbycaptcha

Ruby API for DeathByCaptcha (Captcha Solver as a Service)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reCaptcha coordinates API not responding with coordinates

hudsonsferreira opened this issue · comments

Hi guys,

First of all, I'm using lastest version of deathbycaptcha gem: 5.0.3 .

When I try to decode a reCaptcha, the API doesn't respond with coordinates array. The response contains a string.

My code bellow:

[1] pry(main)> client = DeathByCaptcha.new(ENV["DEATH_BY_CAPTCHA_USERNAME"], ENV["DEATH_BY_CAPTCHA_PASSWORD"], :http)
[2] pry(main)> captcha = client.decode!(type: 2, path: 'tmp/2.jpg')
#<DeathByCaptcha::Captcha:0x007f989e3b68c8 @captcha=915940, @text="19", @is_correct=true>

The image that I'm using is the same of this repository example: https://github.com/infosimples/deathbycaptcha/blob/master/captchas/2.jpg

What's wrong?

Regards

Images must be base64 encoded.