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

Error recieving goal weight

We are failing when trying to recieve goad weigt from fitbit. 

Php error code: 

PHP Fatal error: Uncaught Error: Object of class GuzzleHttp\Psr7\Request could not be converted to string in /usr/local/crc-fitbit/include/getdata.inc:276
Stack trace:
#0 /usr/local/crc-fitbit/daemon/daemon.php(105): getdata->GetData()
#1 {main}
thrown in /usr/local/crc-fitbit/include/getdata.inc on line 276

Fatal error: Uncaught Error: Object of class GuzzleHttp\Psr7\Request could not be converted to string in /usr/local/crc-fitbit/include/getdata.inc:276
Stack trace:
#0 /usr/local/crc-fitbit/daemon/daemon.php(105): getdata->GetData()
#1 {main}
thrown in /usr/local/crc-fitbit/include/getdata.inc on line 276

What we send to fitbit:

"/1/user/^userId^/body/log/weight/goal.json"

This worked 4 days ago and also the year before and the users have not changed anything. The same error occur on 10 of the randomized users i have tried manually to receive data from. 

 

 

Best Answer
0 Votes
2 REPLIES 2

(moved to Web API forum)

Peter McLennan
Gondwana Software
Best Answer
0 Votes

We also have the same problem with fat/goal.json.. (/1/user/^userid^/body/log/fat/goal.json)

(Al-tho we do get other data like devices information)

Best Answer
0 Votes