API not returning data

Looks like the same problem as this - commenting out those same lines resulted in data being returned: