( ! ) 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.0773536504{main}()...\api_get_timeoff.php:0
20.0864573712get_employees()...\api_get_timeoff.php:53
30.0884812344GuzzleHttp\Client->request()...\api_get_timeoff.php:45
40.1442918544GuzzleHttp\Promise\Promise->wait()...\Client.php:189
50.1442918544GuzzleHttp\Promise\Promise->waitIfPending()...\Promise.php:69
60.1442918544GuzzleHttp\Promise\Promise->invokeWaitList()...\Promise.php:229
70.1442918544GuzzleHttp\Promise\Promise->waitIfPending()...\Promise.php:272
80.1442918544GuzzleHttp\Promise\Promise->invokeWaitFn()...\Promise.php:227
90.1442918544GuzzleHttp\Promise\TaskQueue->run()...\Promise.php:251
100.1443917032GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure:C:\wamp64\www\talenta\vendor\guzzlehttp\promises\src\Promise.php:156-160}()...\TaskQueue.php:52
110.1443917160GuzzleHttp\Promise\Promise::callHandler()...\Promise.php:158
120.1443917160GuzzleHttp\Middleware::GuzzleHttp\{closure:C:\wamp64\www\talenta\vendor\guzzlehttp\guzzle\src\Middleware.php:67-73}()...\Promise.php:209