Hi @Kevin Ear,
The problem happens after clicking the submit button, so we can set the breakpoint on this line.
var response = await HttpClient.PostAsJsonAsync(NavigationManager.BaseUri + "orders", OrderState.Order);
And we can clearly see the 500 error, then we can find the post orders method and add try...catch
to check the details.
try
{
await _db.SaveChangesAsync();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
throw;
}
For this issue, finally I found that the Address
table is missing MobileNumber
, State
Columns in database.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Jason