Giter VIP home page Giter VIP logo

boursorama's People

Contributors

benoit485 avatar dependabot[bot] avatar dohseven avatar doubleface avatar lucst avatar orandin avatar renovate-bot avatar renovate[bot] avatar sblaisot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

benoit485

boursorama's Issues

Update

Hey

I did update who work, because what Store let install not work correctly

Idk how to pull here then do :
cozy-stack konnectors install --domain cloud.mewto.me boursorama 'git+https://[email protected]/konnectors/boursorama.git#build'

For more info (in french) :

Bonjour

Il manque dans helpers.js

(line ~23) const AbbrToAccountType = {

cefp: AccountType.MARKET

pour les comptes epargne piloté,

epargne: AccountType.SAVINGS

pour les livret simple (epargne/csl, juste sl est recuperer par le match)

et pour les prets :

consommation: AccountType.CREDIT

puis au dessus dans const AccountType = {
rajouter

PEA: 'PEA',

CREDIT: 'ConsumerCredit'

Et il faudrait ajouter dans lib.js, ligne ~275

// delete elems with undefined type.filter(obj => obj.type !== undefined)

sinon tous les liens sont retournée meme si ce n’est pas un compte valide, lorsqu’on agrege d’autres banque par exemple, et on obtient une erreur interne

et rajouter avant return

if (number === '') {const numberAgain = scrape($('div.account-number'), {reference: {sel: 'strong:first-child' }})account.number = numberAgain.reference account.vendorId = numberAgain.reference }}

pour permettre de recuperer le numero de compte quand il se place sous un div et non un h3

Some labels should be filtered

It seems the account list has some elements that should be filtered out as they are not accounts. I had to filter this but don't know how to do it properly (if filtering after the scrape operation, it will still throw a lot of error because type is not defined on those entries):

filter( x => x.label != 'TOUS MES COMPTES' && x.label != '' && x.label != '. . .')

Le connecteur ne fonctionne que si l'utilisateur a uniquement des comptes chèques chez Boursorama

Bonjour,

Je ne sais pas comment aider, et je vais faire de mon mieux.
J'ai remarqué récemment que le connecteur ne fonctionnait plus sur mon compte. J'ai essayé de débugguer et je me suis rendu compte que le parseBankAccounts fonctionne mal. Par exemple pour ma part voici le résultat de la liste des comptes (j'ai modifié les balances et les id mais on voit trois structures vides) :

[
  {
    idAccount: 'budget',
    label: 'TOUS MES COMPTES',
    balance: 111111,
    url: 'https://clients.boursorama.com/budget/'
  },
  {
    label: '',
    balance: NaN,
    url: 'https://clients.boursorama.comundefined'
  },
  {
    idAccount: '7dcf42b3b709d',
    label: 'COMPTE COMMUN',
    balance: 11111111,
    type: 'Checkings',
    url: 'https://clients.boursorama.com/compte/cav/7dcf42b3b709d/'
  },
  {
    idAccount: '38375408231c',
    label: 'COMPTE CARTE BLEUE',
    balance: 111111,
    type: 'Checkings',
    url: 'https://clients.boursorama.com/compte/cav/38375408231c/'
  },
  {
    idAccount: '21b3f97e493e1',
    label: 'COMPTE VIREMENT',
    balance: 111111,
    type: 'Checkings',
    url: 'https://clients.boursorama.com/compte/cav/21b3f97e493e1/'
  },
  {
    label: '',
    balance: NaN,
    url: 'https://clients.boursorama.comundefined'
  },
  {
    idAccount: 'f6182514a5fb348',
    label: 'HELLO BANK',
    balance: 11111,
    url: 'https://clients.boursorama.com/budget/compte/f6182514a5fb348/'
  },
  {
    idAccount: '1714a012ab91f5878ef2948',
    label: 'ASSURANCE AUTOMOBILE',
    balance: NaN,
    url: 'https://clients.boursorama.com/assurance/automobile/1714a012ab91f5878ef2948'
  },
  {
    label: '. . .',
    balance: NaN,
    url: 'https://clients.boursorama.comundefined'
  },
  {
    idAccount: '34fdb992a2a1b73ff63',
    label: 'ASSURANCE HABITATION',
    balance: NaN,
    url: 'https://clients.boursorama.com/assurance/habitation/34fdb992a2a1b73ff63'
  }
]

J'ai essayé de jouer avec le filtre du scrap du parseBankAccounts mais je ne m'y connais pas assez en selector : table.table--accounts tr.table__line--account

Comment je peux aider ?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

npm
package.json
  • cozy-doctypes 1.89.1
  • cozy-konnector-libs 5.8.0
  • moment 2.30.1
  • cozy-jobs-cli 2.3.0
  • cozy-konnector-build 1.5.1
  • jsdoc 3.6.11
travis
.travis.yml
  • node 16.20.2

  • Check this box to trigger a request for Renovate to run again on this repository

Duplicate accounts when synchronizing

Every time I synchronize, I get a bunch of errors in the logs, and I end up with an extra copy of my accounts (adding to more and more money, which I wish was real but isn't :( ).

The error logs (edited to remove identifying details):

W: Could not parse for
W: Cannot read property '3' of null
W: Failed to create global model:
W: {"errors":[{"status":"404","title":"Not Found","detail":"wanted remote asset is not part of our asset list","source":{}}]}
W: Failed to create local model:
W: Impossible to instanciate a classifier since there is no manually categorized transactions to learn from
E: Stderr: FetchError: {"error":"conflict","ok":false,"reason":"Document update conflict.","status":"409"}
    at CozyStackClient.<anonymous> (/tmp/service-banks692701657/index.js:22:349701)
    at tryCatch (/tmp/service-banks692701657/index.js:22:329033)
    at Generator._invoke (/tmp/service-banks692701657/index.js:22:328807)
    at Generator.e.<computed> [as next] (/tmp/service-banks692701657/index.js:22:329565)
    at asyncGeneratorStep (/tmp/service-banks692701657/index.js:38:33795)
    at _next (/tmp/service-banks692701657/index.js:38:34009)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  response: k [Response] {
    size: 0,
    timeout: 0,
    [Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
    [Symbol(Response internals)]: {
      url: 'https://mydomain/data/io.cozy.bank.groups/dbc65af4f2723e9791fc66a9b907baac',
      status: 409,
      statusText: 'Conflict',
      headers: [b [Headers]],
      counter: 0
    }
  },
  url: 'https://mydomain/data/io.cozy.bank.groups/dbc65af4f2723e9791fc66a9b907baac',
  status: 409,
  reason: {
    error: 'conflict',
    ok: false,
    reason: 'Document update conflict.',
    status: '409'
  }
}

W: Error while performing job: exit status 1 (retry in 58.474649ms)
E: Stderr: FetchError: {"error":"conflict","ok":false,"reason":"Document update conflict.","status":"409"}
    at CozyStackClient.<anonymous> (/tmp/service-banks909172580/index.js:22:347902)
    at tryCatch (/tmp/service-banks909172580/index.js:22:327234)
    at Generator._invoke (/tmp/service-banks909172580/index.js:22:327008)
    at Generator.e.<computed> [as next] (/tmp/service-banks909172580/index.js:22:327766)
    at asyncGeneratorStep (/tmp/service-banks909172580/index.js:38:33795)
    at _next (/tmp/service-banks909172580/index.js:38:34009)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  response: k [Response] {
    size: 0,
    timeout: 0,
    [Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
    [Symbol(Response internals)]: {
      url: 'https://mydomain/data/io.cozy.bank.accounts/dbc65af4f2723e9791fc66a9b969e2fd',
      status: 409,
      statusText: 'Conflict',
      headers: [b [Headers]],
      counter: 0
    }
  },
  url: 'https://mydomain/data/io.cozy.bank.accounts/dbc65af4f2723e9791fc66a9b969e2fd',
  status: 409,
  reason: {
    error: 'conflict',
    ok: false,
    reason: 'Document update conflict.',
    status: '409'
  }
}

I somehow have 2 versions of boursorama installed on this cozy (1.8.1-56a12982ace7ab6d59dbc79ae04006ff884e0417 and 1.8.1-99f2981f883ace5a1eaece3c421bcb5e129a447d34286459288153292da8ab4f) so I'm not sure which one is running, but I:

  • installed it directly from GH,
  • synced and got the problem,
  • removed uninstalled boursorama and deleted the accounts,
  • installed boursorama from the registry and set it up again,
  • synced and got the problem again.

Anything else I can help with?

Bug with login (code for repair)

Inside code lib.js change the start line on function

It's need to add _token and get his value from login page

`function authenticate(urlLogin, urlKeyboard, login, passwd) {
let formData = {
'form[clientNumber]': login,
'form[password]': '',
'form[matrixRandomChallenge]': '',
'form[_token]': ''
}

return request({
    uri: urlLogin
})
    .then($ => {
        const token = $('input#form__token').val()
        formData['form[_token]'] = token

        return request({
            uri: urlKeyboard
        })
    })`

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Problem with docker setup: missing `cozy-konnector-libs`

Hi,

I'm trying to set up a cozy stack with the boursorama konnector, self-hosted with docker (https://github.com/vsellier/easy-cozy). Apps seem to run fine, but when I installed this konnector (using cozy-stack apps install with this github url), I couldn't connect to my boursorama account.

In the logs, I got the following error:

Stderr: internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module cozy-konnector-libs
Require stack:
- /tmp/konnector-boursorama567143635/src/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/tmp/konnector-boursorama567143635/src/index.js:1:27)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
  code: MODULE_NOT_FOUND,
  requireStack: [ /tmp/konnector-boursorama567143635/src/index.js ]
}

However, the Ameli konnector (https://github.com/konnectors/cozy-konnector-ameli) uses the same cozy-konnector-libs, with the same version (4.42.0) and works fine on the same stack.

I tried asking the Cozy team for help, they told me they didn't support docker installations. I tried asking the maintainer of the docker stack for help (vsellier/easy-cozy#9) but it seems it's not an issue of the stack since another konnector using the same lib works fine.

If there's anything I can do to help, logs to pull, anything, please tell me :)

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.