REST Resource - errors with API call to Funnelback


(Gjboyd7) #1

Trying to configure a Rest Resource using HTTP basic auth which performs a PUT to our Funnelback Push API. Keep getting various errors in matrix:

Curl Error: ‘https://ulster.funnelback.co.uk/push-api/v1/collections/ulster-events-dev/documents?key=http://example.com’: [REST0001]

also getting these errors:

PHP Warning sprintf(): Too few arguments
Matrix Warning [REST0001]

Matrix error logs say:
Level: PHP Warning /core/attributes/http_request/http_request.inc:1184) - sprintf(): Too few arguments
Level: Matrix Warning (/core/attributes/http_request/http_request.inc:1184) - [REST0001]

Thing is we can perform the API call without any problems in an external Push API call done outside of Matrix - which updates the funnelback push collection fine.


(Bart Banda) #2

What version of Matrix?

Can you try and do a curl on from the CLI off the Matrix server?

I’ve seen that error before, but can’t remember what it’s from. Also, what happens if you just do a simple GET instead?

Additionally, can you confirm that your matrix server has PUT access to the Funnelback API?