working call to api but raises exception

Signed-off-by: grudelsud <thomasalisi@gmail.com>