Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 => Net::HTTPUnauthorized [...] WWW-Authenticate header missing in response #2

Open
iMilnb opened this issue Oct 4, 2019 · 0 comments

Comments

@iMilnb
Copy link

iMilnb commented Oct 4, 2019

When trying to get balances from my Ibercaja account I get the following:

$ bundle exec bankscrap balance Ibercaja --credentials=dni:12345678 password:111222
Traceback (most recent call last):
        16: from /usr/local/bin/bankscrap:23:in `<main>'
        15: from /usr/local/bin/bankscrap:23:in `load'
        14: from /var/lib/gems/2.5.0/gems/bankscrap-2.0.6/bin/bankscrap:5:in `<top (required)>'
        13: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
        12: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        11: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        10: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
         9: from /var/lib/gems/2.5.0/gems/bankscrap-2.0.6/lib/bankscrap/cli.rb:24:in `balance'
         8: from /var/lib/gems/2.5.0/gems/bankscrap-2.0.6/lib/bankscrap/cli.rb:82:in `initialize_client_for'
         7: from /var/lib/gems/2.5.0/gems/bankscrap-2.0.6/lib/bankscrap/cli.rb:82:in `new'
         6: from /var/lib/gems/2.5.0/gems/bankscrap-ibercaja-1.0.0/lib/bankscrap/ibercaja/bank.rb:16:in `initialize'
         5: from /var/lib/gems/2.5.0/gems/bankscrap-2.0.6/lib/bankscrap/bank.rb:30:in `initialize'
         4: from /var/lib/gems/2.5.0/gems/bankscrap-ibercaja-1.0.0/lib/bankscrap/ibercaja/bank.rb:37:in `fetch_accounts'
         3: from /var/lib/gems/2.5.0/gems/bankscrap-2.0.6/lib/bankscrap/bank.rb:59:in `get'
         2: from /var/lib/gems/2.5.0/gems/mechanize-2.7.6/lib/mechanize.rb:464:in `get'
         1: from /var/lib/gems/2.5.0/gems/mechanize-2.7.6/lib/mechanize/http/agent.rb:323:in `fetch'
/var/lib/gems/2.5.0/gems/mechanize-2.7.6/lib/mechanize/http/agent.rb:742:in `response_authenticate': 401 => Net::HTTPUnauthorized for https://ewm.ibercajadirecto.com/api/cuentas -- WWW-Authenticate header missing in response (Mechanize::UnauthorizedError)

My DNI and password are correct.

I would gladly help but my ruby level is near 0 :/

@iMilnb iMilnb changed the title WWW-Authenticate header missing in response 401 => Net::HTTPUnauthorized [...] WWW-Authenticate header missing in response Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant