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
When attempting to add a new member using the Ghost Admin API within an Astro project, I encounter a ValidationError indicating a validation failure for the "email" field, despite ensuring the email is correctly formatted and present in the request payload.
Steps to Reproduce
Set up a Ghost Admin API instance with the necessary configuration (URL, key, version).
Create an endpoint in an Astro project to handle member sign-up, which collects an email address from a form submission and attempts to add a new member using api.members.add.
Submit a valid email address through the form to trigger the endpoint.
Expected result: The member should be added successfully, and a success response should be returned.
Actual result: The operation fails with a ValidationError, specifically mentioning a validation failure for the "email" field, despite the email being present and correctly formatted in the request.
Technical Details
Ghost Version: v5.47.0
This issue seems to suggest that there might be a problem with how the Ghost Admin API is handling or validating the email field in the request. I have verified that the email is correctly formatted and included in the request payload, suggesting the issue might lie within the API or its validation logic.
I noticed a similar problem - the read operation on members shows in source you can lookup a member by e-mail, but attempting to do so results in a "Resource not found" error.
Issue Summary
When attempting to add a new member using the Ghost Admin API within an Astro project, I encounter a ValidationError indicating a validation failure for the "email" field, despite ensuring the email is correctly formatted and present in the request payload.
Steps to Reproduce
Expected result: The member should be added successfully, and a success response should be returned.
Actual result: The operation fails with a ValidationError, specifically mentioning a validation failure for the "email" field, despite the email being present and correctly formatted in the request.
Technical Details
Ghost Version: v5.47.0
This issue seems to suggest that there might be a problem with how the Ghost Admin API is handling or validating the email field in the request. I have verified that the email is correctly formatted and included in the request payload, suggesting the issue might lie within the API or its validation logic.
Code
The text was updated successfully, but these errors were encountered: