I have been using the API with no problems for a long time. All of a sudden I'm getting this error:
PHP Fatal error: Uncaught PodioError
Request URL:
Stack Trace:
#0 /srv/users/serverpilot/apps/dellentconsulting/public/vendor/podio/lib/Podio.php(93): Podio::request('POST', '/oauth/token', Array, Array)
#1 /srv/users/serverpilot/apps/dellentconsulting/public/pages/careers.php(97): Podio::authenticate('app', Array)
#2 /srv/users/serverpilot/apps/dellentconsulting/public/index.php(58): include('/srv/users/serv...')
#3 {main}
thrown in /srv/users/serverpilot/apps/dellentconsulting/public/vendor/podio/lib/Podio.php on line 283
I didn't make any changes in my code, or applications key.
The error occurs in this code fragment:
<?php
require_once 'vendor/podio/PodioAPI.php';
require_once 'vendor/podio/utils/config-careers.php';
Podio::setup(CLIENT_ID, CLIENT_SECRET);
if (!Podio::is_authenticated()) {
Podio::authenticate('app', array('app_id' => APP_ID, 'app_token' => APP_TOKEN));
}
I already made a restart to the server.