nashtech-garage/yas

[Storefront][Customer] Toast does not appear after the user successfully updates their information.

Closed this issue · 0 comments

Scenario

Go to the storefront website -> Sign in -> Profile -> User Profile. Then update your profile as wanted and click on "Save".

image

The error , SyntaxError: Unexpected end of JSON input, occurs when the response.json() method is called on an empty response body. This usually happens when the server responds with a 204 No Content status or an empty body, but the client still tries to parse it as JSON. So the toast will not be called and appear even though the request is executed successfully.

  • Before
sto_before bff_before
  • After
sto_after bff_after