Code Monkey home page Code Monkey logo

bankscrap-ibercaja's Issues

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

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 :/

Version number

First of all thank you for contributing with a new adapter!

Just one thing I've noticed is that the version number pushed yo rubygems is 1.0.0. In other adapters we're using the 2.x.x as a way to indicate that is an adapter only compatible with bankscrap v2, as the v1 was a quite different implementation.

Do you think we should do the same with all adapters, including this, or it doesn't make sense?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.