brightcove / PHP-API-Wrapper

This project provides a starting point for integrating the Brightcove CMS API into your application. It provides simple ways to interact with the API, as well as a long list of helper functions.
25 stars 33 forks source link

Error 400 #24

Closed ezraw closed 7 years ago

ezraw commented 7 years ago

Hi,

I am receiving a 400 response code. I've ensured the API application has all permissions enabled. Is there documentation for the error codes? I've been unable to find it.

Brightcove\API\Exception\APIException: Invalid status code: expected 200-299, got 400. in Brightcove\API\Client->request() (line 321 of /sites/all/libraries/PHP-API-Wrapper/lib/Brightcove/API/Client.php).

janmashat commented 7 years ago

The error codes for CMS API are listed here: https://docs.brightcove.com/en/video-cloud/cms-api/references/error-messages.html

Debug logging can be enabled in lib/Brightcove/API/Client.php, ex: public static $debugRequests = "/tmp/bc.log";

ezraw commented 7 years ago

Thanks! I'll take this specific issue to the Drupal issue queue then.