bunqCommunity / bunqDesktop

The unofficial, free and open source desktop application for the bunq API
https://bunqdesk.top
MIT License
272 stars 53 forks source link

Something went wrong! in Cards #518

Closed LiroyvH closed 5 years ago

LiroyvH commented 5 years ago

Hi,

With the latest version (bD 0.9.7, macOS Mojave 10.14.4), the "Cards" screen crashes as soon as you reach the Online Cards card in the list. If I skip it by clicking the card below it, it can jump to that OK. As soon as you click the Online Card or scroll up/down to it, it shows:

Something went wrong! TypeError: Cannot read property 'filter' of undefined at n.value (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/cards.bundle.js:32:7634) at Aa (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/vendor.bundle.js:3049:63088) at Oa (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/vendor.bundle.js:3049:62883) at Ra (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/vendor.bundle.js:3049:66730) at zi (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/vendor.bundle.js:3049:90799) at Ki (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/vendor.bundle.js:3049:91183) at As (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/vendor.bundle.js:3049:98070) at xs (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/vendor.bundle.js:3049:97450) at Es (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/vendor.bundle.js:3049:96471) at Qi (file:///Applications/bunqDesktop.app/Contents/Resources/app.asar/app/react/vendor.bundle.js:3049:95345)

It can be resolved for now by downgrading to 0.9.6 by the looks of it. Incidentally, the Dashboard section seems to hang a lot in this version. It won't respond to any input at all right after finishing background sync. This may hang for up to 5 - 7 seconds. Not a major concern, just an FYI.

Further environmentals that may be of use:

Thanks :)

Crecket commented 5 years ago

It looks like a property called primary_account_numbers_virtual isn't available when it should be.

Could you open the cards page, then go to the settings page, click the "Debug application" button and then check the cards item in the list there? You should look for a card with type MASTERCARD_VIRTUAL and it should have the primary_account_numbers_virtual property both marked in red here:

Screenshot from 2019-05-02 10-06-16

LiroyvH commented 5 years ago

@Crecket There is nothing beyond "pin_code_assignment". Compared to your screenshot, the following is missing:

This is missing on all cards. I just checked, and this information does not show up for any card whilst using oAuth. (The rest loads fine though) It does show up when using API. When using API, the "primary_account_numbers_virtual" shows up and it has 9 entries, one for each virtual card. (I don't actually see all virtual cards in the Cards screen though, not sure if you're supposed to see them - still only see one Online MC card.)

Crecket commented 5 years ago

Ah I'm guessing this is related to using OAuth where certain card details aren't available. Stupid mistake on my part, thanks for checking.

It should be fixed now so you can grab the nightly build tomorrow.

LiroyvH commented 5 years ago

Thanks! :)

Crecket commented 5 years ago

Yeah so using OAuth means it isn't possible to view the different virtual cards at all instead of the private details just being hidden like what happens with the other cards :thinking:

LiroyvH commented 5 years ago

@Crecket Indeed, judging by the debug output: that isn't possible. Incidentally, when you select "Display inactive cards", this doesn't show deactivated online cards either whilst I do see them in the debug output. (At least, I see them linked to monetary accounts) (I was testing this whilst still in API-mode)

By the way, I see this i (information) button behind each virtual card which lists the transactions done with that online card. How does one do that with the other cards? That's rather handy! :)

Crecket commented 5 years ago

That button simply goes to the monetary account that is linked to that virtual mastercard at the moment similar to clicking on any of the accounts in the accounts list

LiroyvH commented 5 years ago

@Crecket Lol, do'h. I clicked it on a card that has its own account specifically for online payments. Didn't notice it just jumped to the account. :P Thanks ;)