You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Payments - Error message appears when making a bank account as a default payment #7868
changed the title [-]Payments - Error message appears when making a bank account as a default payment met[/-][+]Payments - Error message appears when making a bank account as a default payment[/+]on Feb 22, 2022
Ok. Thanks. I will debug this. It does not seem related to that change as I also used to get to before that regression on my account. I will update you shortly as this is
@kbecciv I need the user's email to be able to get logs and try to determine if this can be worked on by an contributor or not. Can you give me the email of the user you used and an approximate date and time (including time zone) when the test was done?
Also, do we not include the user's email and other relevant data as part of the issue template??
Logs for the request are here. The error in question is:
Throwing exception with message: '405 Invalid wallet account' from auth/command/SetWalletLinkedAccount.cpp:45
Seems we throw that error when the wallet bank account used is not in OPEN state. I checked and indeed the bank account you are using (id 1432796) is in the SETUP state:
Now, I am not sure what this means... is the bank account not supposed to be in that state? Are we not supposed to be calling that command in this scenario? I have no idea. Pinging @madmax330 and @MariaHCD as they might have some more context.
Hmm. So this PR updates the error messages and we take care of this case. Should we just do that? Or do you think we should actually prevent them from trying to default an account?
Also once we release this, when will the wallet not be open?
Hope you are not asking me, because I have no idea. Also, unassigning myself as triaging is done and people that know this better than me are involved.
Or do you think we should actually prevent them from trying to default an account?
Do you mean, should we not show the option to set a default when the bank account is not in the Open state? I am sure we will want to add a more comprehensive solution for showing bank accounts in the non-open state in product, and at that point we won't let you set those accounts as a default, but for now we can lean on the error messages.
Also once we release this, when will the wallet not be open?
Cool well based on that I think we can just close this then. We are making the error messages much better, so the user will now know why the default failed
Activity
MelvinBot commentedon Feb 22, 2022
Triggered auto assignment to @iwiznia (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.[-]Payments - Error message appears when making a bank account as a default payment met[/-][+]Payments - Error message appears when making a bank account as a default payment[/+]timszot commentedon Feb 23, 2022
@parasharrajat This is related to your PR #7782 that was merged yesterday. Can you take a look here please?
parasharrajat commentedon Feb 23, 2022
Ok. Thanks. I will debug this. It does not seem related to that change as I also used to get to before that regression on my account. I will update you shortly as this is
iwiznia commentedon Feb 23, 2022
Given this, I doubt this is a deploy blocker.
iwiznia commentedon Feb 23, 2022
@kbecciv I need the user's email to be able to get logs and try to determine if this can be worked on by an contributor or not. Can you give me the email of the user you used and an approximate date and time (including time zone) when the test was done?
Also, do we not include the user's email and other relevant data as part of the issue template??
kbecciv commentedon Feb 23, 2022
@iwiznia Here is the email user - applausetester++2501mn@applause.expensifail.com and an approximate date and time is 02/22/22 at 5:02 PM EST.
parasharrajat commentedon Feb 23, 2022
Ok, I tested it. This error is not a regression my PR. #7769 was a regression from the PR which I already solved and it is now on staging.
This seems like a backend error.
iwiznia commentedon Feb 23, 2022
Thanks @kbecciv!
Logs for the request are here. The error in question is:
Seems we throw that error when the wallet bank account used is not in OPEN state. I checked and indeed the bank account you are using (id 1432796) is in the SETUP state:
Now, I am not sure what this means... is the bank account not supposed to be in that state? Are we not supposed to be calling that command in this scenario? I have no idea. Pinging @madmax330 and @MariaHCD as they might have some more context.
MariaHCD commentedon Feb 24, 2022
I think we don't want to call
SetWalletLinkedAccountif the bank account is still in the setup state. cc: @stitesExpensifystitesExpensify commentedon Feb 24, 2022
Hmm. So this PR updates the error messages and we take care of this case. Should we just do that? Or do you think we should actually prevent them from trying to default an account?
Also once we release this, when will the wallet not be open?
CC @kevinksullivan
iwiznia commentedon Feb 25, 2022
Hope you are not asking me, because I have no idea. Also, unassigning myself as triaging is done and people that know this better than me are involved.
madmax330 commentedon Feb 28, 2022
I think fixing the error messages is fine. It would tell them that the bank account they want to use isn't valid. Not much else to do.
kevinksullivan commentedon Mar 2, 2022
Was OOO and just catching up now.
Do you mean, should we not show the option to set a default when the bank account is not in the
Openstate? I am sure we will want to add a more comprehensive solution for showing bank accounts in the non-open state in product, and at that point we won't let you set those accounts as a default, but for now we can lean on the error messages.Someone could not have an upgraded Wallet.
stitesExpensify commentedon Mar 8, 2022
Cool well based on that I think we can just close this then. We are making the error messages much better, so the user will now know why the default failed
botify commentedon Mar 8, 2022
Be sure to fill out the Contact List!