swdyh / goodbye_chatwork

Chatwork(chatwork.com) log downloader
MIT License
67 stars 24 forks source link

goodbye_chatwork_0.0.7 raised RuntimeError: no token while trying to get access token #17

Open MidNightEye59 opened 7 years ago

MidNightEye59 commented 7 years ago

I'm in trouble about this problem. login': no token (RuntimeError)

Environment :Windows10 Pro Ruby    :Ver2.2.6P396 goodbye_chatwork 0.0.7 [Github] https://github.com/swdyh/goodbye_chatwork/

I use Chatwork(Not KDDI Chatwork for enterprises)

Below is full traces.

$ goodbye_chatwork -i example@example.com -p my_password
2017-05-01T20:23:00+09:00 login as example@example.com...
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/goodbye_chatwork-0.0.7/lib/goodbye_chatwork.rb:41:in `login': no token (RuntimeError)
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/goodbye_chatwork-0.0.7/bin/goodbye_chatwork:47:in `<top (required)>'
        from C:/Ruby22-x64/bin/goodbye_chatwork:22:in `load'
        from C:/Ruby22-x64/bin/goodbye_chatwork:22:in `<main>'
ghost commented 5 years ago

I confirmed the same phenomenon.

reCAPTCHA ( https://www.google.com/recaptcha/intro/v3.html ) is introduced in Loing ( https://www.chatwork.com/login.php ).

Is there a possibility that reCAPTCHA is the cause?

ghost commented 5 years ago

I read login function in gems/goodbye_chatwork-0.0.8/lib/goodbye_chatwork.rb .

That sent E-mail & Password with POST in login function, then parsed API TOKEN from response body.

However, when "login': no token (RuntimeError)" has is output, I confirmed that response body is also empty.

worldpeace39 commented 5 years ago

I am in trouble with the same error. Is there any solution?