Skip to content

API returning 'No data passed' in Postman

edited June 9 in Troubleshooting

Have the same issue as this post:
https://sendy.co/forum/discussion/19774/error-no-data-passed-when-request-http-post#gsc.tab=0

Ben, your solution does not fix the issue and if I use the post url you have to subscribe a user all I get returned is '1'

Is this some issue with my hosting server or a problem with Sendy's API?

Comments

  • Hi,

    1. Log the incoming request on your server or in Sendy’s subscribe.php file (temporarily add a line like file_put_contents('log.txt', print_r($_POST, true));) to verify data is reaching it.
    2. If it’s empty, then your host may be blocking or stripping POST data.
    3. Contact your hosting support and ask if there’s a firewall/mod_security rule interfering with POST requests to PHP scripts.

    Thanks.

    Best regards,
    Ben

  • Thank you for the advice

This discussion has been closed.