I’m trying to connect a sign-up form in WeWeb to a Xano REST API endpoint (auth/signup) that takes name, email, and password. I want users to be able to sign up by filling in a form in WeWeb that sends this data to Xano.
How things are set up:
- I’m using the REST API Request action in a workflow.
- Method: POST
- URL: This is the endpoint provided by Xano for your API
- I’ve tried both Raw body and Parsed fields:
- In Parsed fields, I’ve added name, email, and password with dynamic values like {{ name }}.
- Content-Type is set to application/json.
- My form inputs are linked to variables: name, email, and password.
The steps to reproduce the issue:
- Fill out the sign-up form.
- Submit the form which triggers the API request workflow.
- Receive an error in the logs.
What I’ve already tried:
- Switching from raw body to parsed fields
- Hardcoding values in the body (e.g., “email”: “test@example.com”)
- Checking that my form inputs are correctly bound to the variables
- Logging variable values before the API request
- Making sure Content-Type is application/json
Where exactly I’m getting stuck:
Even with hardcoded values and correct formatting, I keep receiving this error:
“message”: “Request failed with status code 400”,
“code”: “ERR_BAD_REQUEST”,
“response”: {
“code”: “ERROR_CODE_INPUT_ERROR”,
“message”: “Invalid email format.”,
“payload”: {
“param”: “email”
}
}
I’ve double checked the email format, and even with “test@example.com” it’s still giving me this 400 error. Not sure if I’m missing something in how WeWeb is formatting/sending the request to Xano.
Any help or insight would be massively appreciated!