ubank icon indicating copy to clipboard operation
ubank copied to clipboard

Cannot enrol a new device: `POST` to `/app/v1/welcome` endpoint no longer works

Open peter-kerr1 opened this issue 1 year ago • 9 comments

The POST request at the following line no longer works. The following response is given:

{
    "dialog": {
        "type": "Simple",
        "data": {
            "type": "error",
            "message": "Please update your app"
        },
        "buttons": [
            {
                "type": "Default",
                "data": {
                    "text": "No",
                    "secondary": "True"
                }
            },
            {
                "type": "ToAppStore",
                "data": {
                    "text": "Update"
                }
            }
        ]
    },
    "message": "Please update the app to use this feature"
}

I tried changing app_version to 11.43.1 (the current app version as at 2024-08-07), but that didn't fix the problem.

Hoping this is just a simple fix, because this tool will make my life very convenient :)

peter-kerr1 avatar Aug 07 '24 04:08 peter-kerr1

Facing same issue UBank may have updated their backend or the way logins work. Hoping this is a simple fix as well because I would also find this tool really helpful, have been looking at it myself.

jakepronger avatar Aug 28 '24 04:08 jakepronger

I've been looking at this off and on for a while been meaning to try fix this issue. I've been looking at this more indepth today mostly looking at the code and comparing it with developer tools and even using my phone monitoring the http requests. I think I may have just gotten it to work by adding "x-api-version": "30", below line 189 to the headers param. I was just looking at the request and thought why not try adding that since I saw it in the dev tools and boom.

jakepronger avatar Aug 28 '24 05:08 jakepronger

Epic, that works! Thanks @jakepronger. I have a question for you - how do you find the rest of the endpoints available? Because they don't seem to match the format of the endpoints defined in the CDR API.

peter-kerr1 avatar Aug 28 '24 05:08 peter-kerr1

I've just used the project successfully for the first time been planning to use this for an idea of mine. Have you used this project before? What endpoints are you looking for in particular or don't match in the defined article? I will take a deeper look later.

jakepronger avatar Aug 28 '24 05:08 jakepronger

I've never used this project before, since I wasn't able to generate an auth key until you mentioned this fix. Ideally, I want to download a .csv file of the last week's worth of transactions of one of my accounts. Failing that, a list of transactions in JSON format would do fine. I don't really have the time to reverse-engineer which endpoint(s) to use myself, so I may have to abandon the idea...

peter-kerr1 avatar Aug 28 '24 06:08 peter-kerr1

Interesting, I also want to do the same as well as automate scheduled payments (at specific times) and because payments can't be scheduled now from savings accounts (coming into effect in september). So I've been debugging with that and I've been able to make an automated transfer. Will look into it more as well as looking at transaction history but I believe it is there. You can literally do anything with this I believe. I can keep you posted when I work on this more and will also look at making a merge request if possible with the response api fix.

jakepronger avatar Aug 28 '24 11:08 jakepronger

I've never used this project before, since I wasn't able to generate an auth key until you mentioned this fix. Ideally, I want to download a .csv file of the last week's worth of transactions of one of my accounts. Failing that, a list of transactions in JSON format would do fine. I don't really have the time to reverse-engineer which endpoint(s) to use myself, so I may have to abandon the idea...

I'm making like a utility python script that uses this to make transactions and read transaction information. You can pull up the transaction information of a certain account using its ID.

jakepronger avatar Sep 04 '24 09:09 jakepronger

I'm making like a utility python script that uses this to make transactions and read transaction information. You can pull up the transaction information of a certain account using its ID.

If you're willing to share what you've got when you're done, I'd love to take a look!

peter-kerr1 avatar Sep 06 '24 01:09 peter-kerr1

I'm making like a utility python script that uses this to make transactions and read transaction information. You can pull up the transaction information of a certain account using its ID.

If you're willing to share what you've got when you're done, I'd love to take a look!

hey man feel free to dm me on discord (jakepronger) or email [email protected]. I may also be looking at integrating into Commbank API for net codes and am working on other projects that will link up to the ubank stuff. So I will swing around too it. I'll lyk.

jakepronger avatar Sep 28 '24 10:09 jakepronger

hey man feel free to dm me on discord (jakepronger) or email [email protected]. I may also be looking at integrating into Commbank API for net codes and am working on other projects that will link up to the ubank stuff. So I will swing around too it. I'll lyk.

I've sent you a friend request on Discord

peter-kerr1 avatar Oct 25 '24 02:10 peter-kerr1

I can't reproduce any errors. Maybe because I'm not trying to enrol a new device?

eidorb avatar Nov 22 '24 08:11 eidorb

It's because of the new passkey thing.

Soz, I'm not gonna break what's working for me. I'm actually using this!

And if that ends up breaking too I'll move to a better bank 🤷

eidorb avatar Nov 23 '24 00:11 eidorb

It's because of the new passkey thing.

Soz, I'm not gonna break what's working for me. I'm actually using this!

And if that ends up breaking too I'll move to a better bank 🤷

I don't believe the new passkey method has any effect on it, however when enrolling a new device it doesn't work because UBank requires a provided api version. Many people use your repo like me and if your not willing to update it with user provided code (very simple fix) just because it's working for yourself than other people will just look at this and apply the fix for themselves. We're both using this as well.

jakepronger avatar Nov 23 '24 03:11 jakepronger

This broken for me as well. can this be fixed please? otherwise we will fork it

dnascimento avatar Nov 23 '24 08:11 dnascimento

Give it a go peeps!

eidorb avatar Nov 26 '24 00:11 eidorb

Give it a go peeps!

All credit to you for making this repo.

jakepronger avatar Nov 26 '24 11:11 jakepronger

I use it in this project btw @jakepronger:

https://brodie.id.au/blog/serverless-investment-management-portfolio.html

eidorb avatar Nov 26 '24 11:11 eidorb

I use it in this project btw @jakepronger:

https://brodie.id.au/blog/serverless-investment-management-portfolio.html

Ohhhh, I saw this on your profile. Interesting. Not sure what I want to do but I want to integrate this with commbank and make automated scheduled (instant) payments across both banks.

jakepronger avatar Nov 26 '24 11:11 jakepronger

I want to do but I want to integrate this with commbank and make automated scheduled (instant) payments across both banks.

Take a look here then: https://github.com/eidorb/portfolio/tree/master/portfolio

There's a bunch of other banking examples in there, using various... methods. I'm sure you can do it for CBA too ✈️

eidorb avatar Nov 26 '24 11:11 eidorb