AJAX on subscriber_add endpoint returning html
Hi,
The subscriber_add endpoint is returning html when a user is already subscribed to a list. It should be returning a JSON object with the error. Currently, it returns this
Also, there is no GET endpoint to check if the subscriber is subscribed to any lists.
The subscriber_add endpoint is returning html when a user is already subscribed to a list. It should be returning a JSON object with the error. Currently, it returns this
Uncaught SyntaxError: Unexpected token <
The HTML/JS content is simply just a redirect message.Also, there is no GET endpoint to check if the subscriber is subscribed to any lists.
Comments
Looks like there is a PHP syntax error.
Is there a more full error message that you can post here though?
I'd like to see the location of where the syntax error happens?
I look forward to your response.