-
Notifications
You must be signed in to change notification settings - Fork 25
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
Most recent transactions not appearing #4
Comments
hey @dwdickens, I see you've forked this project and modified date handling - did you fix this issue? |
No it wasn't the date handling. It looks like it's some sort of server side caching, but I have no idea. Here are the steps to reproduce:
The workaround I have found is to manually log in to Netbank, open the account and scroll down. If I then run the script, it picks up the most recent transactions. It doesn't matter if I manually log in to Netbank on a different machine to the one that runs the script. Based on this, I think there must be some sort of server side caching that goes on. Any ideas? It's quite annoying! |
Yes, you are right, the date should be function toDateString(timestamp) {
return moment(timestamp).utc().format('DD/MM/YYYY');
} I will fix this later. However, it shouldn't cause your problem, as you tried it around 11pm AEST, which is the same day as UTC. Are you talking about the Pending transactions? Most recent transactions might not be cleared, and are pending. Currently, this program will only return the processed transactions, as some data in the pending transactions are not accurate, might be changed later, (such as time). To avoid the duplication, I didn't return the pending ones. However, I can add support for returning pending transactions as a special group, if it's necessary. |
I fixed the timezone issue, and added the pending transactions in the After reinstall Please have a look, and let me know if you still have any issue. |
Thanks Tao, that's great! I haven't had a play with the update, but the issue of needing to log in to netbank manually to allow the script to pick up recent transactions is unrelated to pending transactions. Here are the steps to reproduce: The only explanation I can think of is that on the server side, it is caching the transaction list and the script does not cause the server to refresh but manually logging in does. |
Hi, I just test the procedure via $ cba-netbank ui
Logon as account XXXXXXX ...
? Which account? Smart Access (0620XX XXXXXXXX) Balance: $1047.44 Available Funds: $1047.44
Downloading history [03/05/2017 => 03/07/2017] ...
Time Description Amount Balance
---------------- -------------------------------------------------------- --------- --------
2017-07-03 11:20 Transfer to xx0642 NetBank; test $-5.00 $1047.44
...
Total 38 transactions and 0 pending transactions.
? Which account? Smart Access (0620XX XXXXXXXX) Balance: $1047.44 Available Funds: $1047.44
Downloading history [03/05/2017 => 03/07/2017] ...
Time Description Amount Balance
---------------- -------------------------------------------------------- --------- --------
2017-07-03 11:23 Transfer to xx0642 CommBank app; Test $-5.00 $1042.44
2017-07-03 11:20 Transfer to xx0642 NetBank; test $-5.00 $1047.44
...
Total 39 transactions and 0 pending transactions. I tried both online banking over desktop browser and mobile netbank app, they seems appeared on the transaction history immediately. Is it possible that the ISP/router cached the request? I can add a explicit |
|
Great, I'll give it a try. Thanks so much for this, it's a fantastic project |
Thank you for this project, it works fabulously! |
@rikdepeuter that sounds ace! Maybe submit your edits as a pull request and we can all pick over it? |
Hi, thanks so much for making this available - it's great!
I've noticed the most recent transactions aren't being pulled. As I try this at around 11pm AEST, only transactions up to the previous day are being returned, not today's transactions.
Perhaps this line is the issue? Should it be a reference to local time rather than UTC?
var to = toDateString(moment.utc().valueOf());
The text was updated successfully, but these errors were encountered: