Web.API Insights getLogEntries issue

I’m trying to create a simple webpage to display the temperature of various sensors and a graph for the past 24 hours using the Web API and javascript.
I got the sensors to show their current temperature. But now I’m trying to get the log entries from Insights, but that doesn’t work.
First I get the different logs using homey.insights.getLogs() from those logs I store the id (‘measure_temperatur’) en the uri of the logs that i want (a guid) from the entries.
Then I fire a request to homey.insights.getLogEntries(uri,id,‘last24Hours’) but the code never returns to my ‘then’ part.

Am I doing something wrong? or does anyone have a working example?