-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Balances do not match when importing via bunq api. #1607
Comments
Mmm. Incorrect balances are usually caused by incorrect transactions: transfers becoming expenses and deposits. Might that be the case? The math is pretty much foolproof but if Firefly III is making garbage out of the transactions from the API, the result will be garbage too. Does the sandbox still have 1 transaction in it? |
Yea, sandbox will have 0 transactions you have to create them your self. But thats rather EZ. Just create a lil script that makes 10 batch payments of 100 payments. So you can easily create 1k payments. of random amounts to random sandbox users. alpha, bravo, charlie, delta, echo@bunq.com. And of-course you would need to topup via a request to suggardaddy@bunq.com. |
Alright, that's something I can work on. Are the transactions correct otherwise on your import? No weird stuff in Firefly III? |
I also had a mismatch in the balances between bunq app and firefly after bunq import. I just changed the initial amount until the value matched the actual value. How far back does the bunq api import from? Because it seems that the initial amount is what's causing the mismatch (in my case anyway). |
I think it goes back until the beginning of the monetary account. I saw that my first transaction ever was also imported. |
I've now added all my accounts and I'm now seeing the same behaviour. Could it be a result of the internal bunq to bunq account transactions being doubled? #1564 |
Yes, that's a possibility. I'm just now building something to fill my own account(s). @OGKevin is there any documentation on sugardaddy and the other accounts? I sent out a payment request, but I'm not sure what to expect. |
@JC5 https://github.com/bunq/tinker_php/blob/d95d22158115881d7f32bb3bff7db37cdbacee70/src/BunqLib.php#L484-L495 here is an example. You literally just send a request to that email and then it will be auto accepted. The max per request is 500 tho. If you did that and you still didn't get the money that i would wait until https://together.bunq.com/d/3779-encountered-error-while-retrieving-new-sandbox-apikey is resolved and then try again. |
Ah very nice! I requested 10K, I’m a big spender 😎. I’ll tone it down 😋 |
I've fixed #1564 and I hope the problem is related to this one. Transfers are no longer stored twice so importing data from bunq should result in perfect results. |
@JC5 ill pull develop and will let you know. |
hmm, is develop broken ? when i visit
|
Did you migrate the database? There are new account types, I believe the controller is looking for them. |
🤔 |
🤔 Wait! Add |
yea that worked, but now after the import they still dont match. Im now at -7k. And the other ones are also become less, but still far off. I've also noticed that in the dashboard, you will also see accounts that dont belong to you. As in expense accounts e.g. However none of these are correct tho, as it the amount of euros. Tested on commit: 566be8d |
Mmm, stranger and stranger. Especially that last one. Could you see if any transactions in particular are wrong? In the meantime, I'll try to build a more complex sandbox environment. |
I'll take a look at the transactions. You use the payment endpoint to pull transactions i take it ? I can take a look at the code as well and see if i can spot stuff. But thats kinda hard bc you dont use the git flow with pull requests :P. |
Seems as if there are extra ibans from bunq that get used when using bunq requests (amongst other things?) While they should be from/to one of your own accounts, they end up as extra accounts that are either your own name or "bunq".
Not at home now to test this / look it up, but that's what I saw yesterday.
…________________________________
From: Kevin Hellemun <notifications@github.com>
Sent: Thursday, August 16, 2018 5:42:47 PM
To: firefly-iii/firefly-iii
Cc: Thomas Brasser; Comment
Subject: Re: [firefly-iii/firefly-iii] Balances do not match when importing via bunq api. (#1607)
I'll take a look at the transactions. You use the payment endpoint to pull transactions i take it ? I can take a look at the code as well and see if i can spot stuff. But thats kinda hard bc you dont use the git flow with pull requests :P.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#1607 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACr6MLb0Xn0V0jd0XeWjwncj4bRuP1FBks5uRZL3gaJpZM4V6Bme>.
|
I've pushed some fixes and it seems my local instance is pretty much up to date after about ~120 transactions. This is just basic stuff though. Regardless, Firefly III will go back in time in a loop until all transactions are downloaded and will then start moving forward in time to keep up with new transactions. That should already stabilise the import a bit. If any of you have the time to verify this with your own accounts I'd be grateful! |
I'll test the dev branch as soon as I'm back from holidays in 2 weeks! Kutgw! |
I'll give it a test in a bit as well. Will let you know. |
Got this nice little email 😁 |
So the import didnt finish 🤔 |
Where do you save the last/newer id ? I've deleted the entries in the preferences table, but the Import is still continuing from that last save point instead of beginning all over again 🤔 |
The .env file is overwritten at start, so I suggest using See for more options this file: https://github.com/firefly-iii/firefly-iii/blob/master/.env.docker I'll expand the wiki. |
Got it, I was looking in .env.example instead of .env.docker, so I thought some variables weren't exposed. I'll see to it if I can get to it today, otherwise I'll try again tomorrow. |
Sure thing, I really appreciate the time you're spending on this. |
I have a log in which I did the following:
I will email a sharing link to you (gmail) when it's done importing, please don't share my financial details with anyone (A) |
Thanks, I saw it. Will dive into it tonight. I appreciate the trust 👍 |
Ran the import and still incorrect, seems better but now other accounts have +10k whilst another account is in debit whilst it's actually not... Curious of @tbrasser's logs will help you. |
For those in the thread. I've pushed improved logging. If you set the log level to "info" (using either the .env file or the -e command line options) you should be able to see a more concise overview of what is happening in the log files. |
I'll generate improved logs when I'm back at my network. Still no VPN road warrior set-up so I can do these things remotely.
Get Outlook for Android
On Wed, Oct 31, 2018 at 5:11 PM +0100, "James Cole" <notifications@github.com> wrote:
For those in the thread. I've pushed improved logging. If you set the log level to "info" (using either the .env file or the -e command line options) you should be able to see a more concise overview of what is happening in the log files.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Let's keep this open for now. |
@tbrasser When you have time, I would appreciate some feedback on the import process using the new log structure. If you feel uncomfortable using the develop-branch, I suggest I will revive this thread after the release of 4.7.9. |
I'll give it a try today if I don't forget 👍 |
That would be cool. I'm especially curious about the DUO and Belastingdienst related payouts. |
I'm sorry for the delays here. I'm in the middle of a new job (my first 'real' one) and moving. I'm definitely going to use firefly III with Bunq and will test everything here and provide feedback to get it working. I just can't promise on when I can find the time. But really thanks a lot for all the effort here |
No problem, just let me know. The new "saving goal" option is also wrecking havoc with the importer so plenty of things to test 😉 |
Alright, so I ran the import. Balances are a lot better but not totally correct yet. 2 of my accounts, my "savings" and "monthly expenses" accounts now have the correct balance. My saving goals accounts are a little short approx 10 euros short. While my main account is way of. It says I have -90 euro on my account. The BelastingDienst payments seem to be alright. |
I re-ran it tonight, this time included all my accounts. The balances are miss matches now, including the ones that succeeded yesterday :(. The importer crashes with the following error:
|
I'll do some digging this weekend. I've been working on the API mostly for the last few weeks. |
I finally ran into this problem myself. I have two accounts who are off by one euro. Stay tuned. |
Storing the same auto-save amount twice in one day fails. The second one is probably thought to be a duplicate. |
This is now fixed. So far, no more problems here. |
I am running Firefly III version 4.7.5.3
Description
After running import via bunq api. Account balances do not match.
Steps to reproduce
Run the bunq importer via the API and then check its balance.
Extra info
Please add extra info here, such as OS, browser, and the output from the
/debug
-page of your Firefly III installation (click the version at the bottom).Bonus points
Earn bonus points by:
minus 8 thousand ? 😅 All these balances make 0 sense. And none are accurate :(
The text was updated successfully, but these errors were encountered: