Skip to main content

โ€œmetadata.email is not allowed to be emptyโ€ When Saving Empty Profile on Aistro

JM โ€œcryptotestnetโ€ Morales
Support
aistrobugimpact-minorqualifiedreliabilityrewarded

image.png

๐Ÿงพ Summary: When attempting to save the profile on Aistro (https://www.aistro.io/content/profile?locale=en) with an empty email field, an error message appears:

Request failed: 400 : {"error":""metadata.email" is not allowed to be empty"} The error message is not user-friendly and exposes backend validation details.

๐ŸŒ Platform / Environment:

๐Ÿงช Steps to Reproduce:

  1. Log in to your Aistro account.
  2. Navigate to your profile page: https://www.aistro.io/content/profile?locale=en.
  3. Clear or leave the email field empty.
  4. Click Save.
  5. Observe the error message displayed.

๐Ÿ’ฅ Actual Result:

  • The system returns an error response: javascript Request failed: 400 : {"error":"\"metadata.email\" is not allowed to be empty"}
  • The message exposes internal validation structure (metadata.email) instead of showing a simple user-friendly error.

โœ… Expected Result:

  • The app should prevent saving empty required fields.
  • Display a clear, user-friendly message, e.g.: > โ€œEmail address cannot be empty. Please enter a valid email.โ€ >

โš™๏ธ Possible Cause:

  • Missing frontend validation for required fields.
  • Direct backend validation response being shown to the user without proper error handling or localization.

๐Ÿงฑ Severity: Medium ๐ŸŽฏ Priority: High ๐Ÿ“‚ Category: UI / Validation / API Response Handling

Reply