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 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

Sign In or Register to comment.