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
So this error makes it fairly clear what the problem is but it isn't very friendly to make the user dig through code to determine the problem.
I had a look at adding a field 'lastResponse' to the AcmeClient which exposes the error but it isn't an adequate solution as you have to know to dig into the 4 levels of the response map.
Is there a better solution for this?
The text was updated successfully, but these errors were encountered:
I'm not familiar enough with the RFC to understand all of the places we need to extract errors from.
We also need to consider how we surface those errors.
I would normally throw a custom exception but the current code based doesn't really use exceptions.
The AcmeClient.validate method has been returning an 'invalid' message.
This left me a little perplexed as I had no idea why the request was invalid.
In digging into the code I realised the problem was a firewall configuration.
The problem is that currently there is no way to get the 'root' error out of acme client.
I had a play with the response object returned from the second call to Dil().post in AcmeClient.validate and found that
the error was contained in:
response!.data['challenges'][0]['error']['detail']
So this error makes it fairly clear what the problem is but it isn't very friendly to make the user dig through code to determine the problem.
I had a look at adding a field 'lastResponse' to the AcmeClient which exposes the error but it isn't an adequate solution as you have to know to dig into the 4 levels of the response map.
Is there a better solution for this?
The text was updated successfully, but these errors were encountered: