infosimples/deathbycaptcha

reCaptcha coordinates API not responding with coordinates

hudsonsferreira opened this issue · 1 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.