Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Api Subscription Notifications are often empty

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?

Best Answer
0 Votes
0 REPLIES 0