API 404 error if input parameters are given with get_graph_by_port_hostname

Hello

I am trying to get images with the get_graph_by_port_hostname function of the librenms API.
Without any input parameters it is working.

curl -H 'X-Auth-Token: THISISMYAUTHTOKEN' 'http://192.168.0.34/api/v0/devices/localhost/ports/ens3/port_bits' > image.png

returns the right graph.

But as soon as I try to give any input parameters, e.g.

curl -X POST -d '{"to":"1500288900","from":"1500202500"}' -H 'X-Auth-Token:  HISISMYAUTHTOKEN''http://192.168.0.34/api/v0/devices/localhost/ports/ens3/port_bits'`

it returns a 404 not found page.

My installation is the default Ubuntu-image, which I updated today during my testing.

This is the output of validate.php:

==========================================================
Component | Version
--------- | -------
LibreNMS  | 20ce209b2710f424f9be4f128a6eeab43074b626
DB Schema | 199
PHP       | 7.0.18-0ubuntu0.16.04.1
MySQL     | 10.0.29-MariaDB-0ubuntu0.16.04.1
RRDTool   | 1.5.5
SNMP      | NET-SNMP 5.7.3
==========================================================

[OK]    Database connection successful
[OK]    Database schema correct
[FAIL]  You have a different system timezone (BST) specified to the php configured timezone (UTC), please correct this.

Other Calls with Parameters seam to work:

curl -X POST -d '{"hostname":"localhost","version":"v1","community":"public"}' -H 'X-Auth-Token: HISISMYAUTHTOKEN' 'http://192.168.0.34/api/v0/devices'                               
{
    "status": "error",
    "message": "Already have host localhost"
}

If you need any further debugging information please let me know.
Greetings Jo

That’s because the call should be GET so add your params like ?to=x&from=Y