04-23-2018 13:49
04-23-2018 13:49
Hello, in our PHP backend - we've set up our subscription webhook. We are receiving notifications from Fitbit, but some of them are completely empty.
Say, 1/3 are filled with json data, as expected. The rest of them is just empty. Anyone here experienced this before?
We parse the $_POST like this:
$response = file_get_contents('php://input');
if(!empty($response))
{
And then I just log the $response in the database. This is how I know that it's empty.
Any suggestion on how to debug it further, or maybe figure out what could be wrong?