I was experiencing errors with a particular user and I realized that the error only happens when the user email has one or more underscores.
I was calling:
`
GET https://blog.tinvi.to/wp-json/newsletter/v2/subscribers/example_example@hotmail.com/
`
and getting:
`
{
“code”: “rest_no_route”,
“message”: “No se ha encontrado la ruta que coincida con la URL y el método de la solicitud”,
“data”: {
“status”: 404
}
}
`
When the user is not registered, the error is different, as it properly finds the rest route:
`
{
“code”: -1,
“message”: “Subscriber does not exist”,
“data”: {
“status”: 404
}
}
`
It may be caused by the way WordPress interprets routes, but I’m not sure since I’m not specialized on WordPress (I’m calling the API using Postman and also axios.js in node.js).