-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Example off BTCPay API passing unnecessarily degraded and misleading error back #6261
Comments
Hi, is this a duplicate of #6263? I don't understand why you've opened a new issue. If not please don't ignore our issue templates, provide more context, and I'll reopen it. |
No . The #6263 issue above is solely a UI issue. This issue that you have just closed is solely about unnecessarily degraded, deficient and misleading information passed back from the API with nothing to do with UI. Both of these are clear in the title. Both reference the same issue, #6248, for context, that was properly raised according to the context the OP had with the degraded information they were provided with. While this is not relevant here, there was good reason to believe a hot wallet was in use following an answer to a question I posed on chat.btcpayserver.org. It is incredibly easy to get confused about what workflows were used when. Providing confused degraded information in API error messages helps no one. What is relevant is that I added specific links to source code in the referenced issue and it should not be necessary for me to provide them again here because context is lost. The fact that it is the same issue now used for context for two other issues has nothing to do with two completely separate issues now properly raised. As pointed out in the other raised issue, the OP solved the problem by removing seed phrases and reinserting it with 'hot wallet' toggle on. However this is not relevant to observing how degraded the error was for this issue. Please reopen until satisfactorily dealt with. Some of my comments from issue #6248 follow for the record. However it is better to view them from the context of the issue they were raised in. For v1.13.5, the error occurs due to btcpayserver/BTCPayServer/Controllers/GreenField/GreenfieldStoreOnChainWalletsController.cs Line 355 in 30d91d0
Above matches the errors reported freom the POST endpoint. There is a second part of API POST function where the same error message can result btcpayserver/BTCPayServer/Controllers/GreenField/GreenfieldStoreOnChainWalletsController.cs Line 550 in 30d91d0
Again, the wallet is 'hot' because seed words were used. Also the wallet can be used for transactions through UI.
|
Pinging @pavlenex to get this issue reopened |
I will improve error message |
Please see #6248 for an example of API passing unnecessarily degraded and misleading error back.
The issue was solved by OP of the issue by removing seed entry wallet and reentering it with 'hot wallet' enabled.
The solution could have been more easily determined by returning more specific error information that was available but ignored.
The text was updated successfully, but these errors were encountered: