( ! ) Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `GET https://api.mekari.com/v2/talenta/v2/time-off/employee/2544210/history?date=12-2024&limit=10&page=1` resulted in a `401 Unauthorized` response: {"code":"MAG-008: Current scope is not allowed for accessing end point.","message":"mag: unauthorized"} in C:\wamp64\www\talenta\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113
( ! ) GuzzleHttp\Exception\ClientException: Client error: `GET https://api.mekari.com/v2/talenta/v2/time-off/employee/2544210/history?date=12-2024&limit=10&page=1` resulted in a `401 Unauthorized` response: {"code":"MAG-008: Current scope is not allowed for accessing end point.","message":"mag: unauthorized"} in C:\wamp64\www\talenta\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113
Call Stack
#TimeMemoryFunctionLocation
10.0004446440{main}()...\api_get_timeoff.php:0
20.0152569824get_employees()...\api_get_timeoff.php:53
30.0205808456GuzzleHttp\Client->request()...\api_get_timeoff.php:45
40.1029914656GuzzleHttp\Promise\Promise->wait()...\Client.php:189
50.1029914656GuzzleHttp\Promise\Promise->waitIfPending()...\Promise.php:69
60.1029914656GuzzleHttp\Promise\Promise->invokeWaitList()...\Promise.php:229
70.1029914656GuzzleHttp\Promise\Promise->waitIfPending()...\Promise.php:272
80.1029914656GuzzleHttp\Promise\Promise->invokeWaitFn()...\Promise.php:227
90.1029914656GuzzleHttp\Promise\TaskQueue->run()...\Promise.php:251
100.1030913144GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure:C:\wamp64\www\talenta\vendor\guzzlehttp\promises\src\Promise.php:156-160}()...\TaskQueue.php:52
110.1030913272GuzzleHttp\Promise\Promise::callHandler()...\Promise.php:158
120.1030913272GuzzleHttp\Middleware::GuzzleHttp\{closure:C:\wamp64\www\talenta\vendor\guzzlehttp\guzzle\src\Middleware.php:67-73}()...\Promise.php:209