========================================== Time Window Configuration ========================================== Fetching orders from: ------------------------------------------ Created After: 2025-05-20T00:00:00 Created Before: 2025-05-21T23:59:59 ------------------------------------------ Current time: 2025-12-11 12:52:41 UTC ========================================== Attempting to fetch orders from Amazon API... Amazon API error: Client error: `POST https://api.amazon.com/auth/o2/token` resulted in a `401 Unauthorized` response: {"error_description":"Client authentication failed","error":"invalid_client"} Full error details: GuzzleHttp\Exception\ClientException Object ( [message:protected] => Client error: `POST https://api.amazon.com/auth/o2/token` resulted in a `401 Unauthorized` response: {"error_description":"Client authentication failed","error":"invalid_client"} [string:Exception:private] => [code:protected] => 401 [file:protected] => /var/www/html/vendorv5/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php [line:protected] => 113 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/guzzle/src/Middleware.php [line] => 72 [function] => create [class] => GuzzleHttp\Exception\RequestException [type] => :: ) [1] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/promises/src/Promise.php [line] => 209 [function] => GuzzleHttp\{closure} [class] => GuzzleHttp\Middleware [type] => :: ) [2] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/promises/src/Promise.php [line] => 158 [function] => callHandler [class] => GuzzleHttp\Promise\Promise [type] => :: ) [3] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/promises/src/TaskQueue.php [line] => 52 [function] => GuzzleHttp\Promise\{closure} [class] => GuzzleHttp\Promise\Promise [type] => :: ) [4] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/promises/src/Promise.php [line] => 251 [function] => run [class] => GuzzleHttp\Promise\TaskQueue [type] => -> ) [5] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/promises/src/Promise.php [line] => 227 [function] => invokeWaitFn [class] => GuzzleHttp\Promise\Promise [type] => -> ) [6] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/promises/src/Promise.php [line] => 272 [function] => waitIfPending [class] => GuzzleHttp\Promise\Promise [type] => -> ) [7] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/promises/src/Promise.php [line] => 229 [function] => invokeWaitList [class] => GuzzleHttp\Promise\Promise [type] => -> ) [8] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/promises/src/Promise.php [line] => 69 [function] => waitIfPending [class] => GuzzleHttp\Promise\Promise [type] => -> ) [9] => Array ( [file] => /var/www/html/vendorv5/vendor/guzzlehttp/guzzle/src/Client.php [line] => 124 [function] => wait [class] => GuzzleHttp\Promise\Promise [type] => -> ) [10] => Array ( [file] => /var/www/html/vendorv5/vendor/jlevers/selling-partner-api/lib/Authentication.php [line] => 120 [function] => send [class] => GuzzleHttp\Client [type] => -> ) [11] => Array ( [file] => /var/www/html/vendorv5/vendor/jlevers/selling-partner-api/lib/Authentication.php [line] => 500 [function] => requestLWAToken [class] => SellingPartnerApi\Authentication [type] => -> ) [12] => Array ( [file] => /var/www/html/vendorv5/vendor/jlevers/selling-partner-api/lib/Authentication.php [line] => 242 [function] => newToken [class] => SellingPartnerApi\Authentication [type] => -> ) [13] => Array ( [file] => /var/www/html/vendorv5/vendor/jlevers/selling-partner-api/lib/Authentication.php [line] => 181 [function] => getAwsCredentials [class] => SellingPartnerApi\Authentication [type] => -> ) [14] => Array ( [file] => /var/www/html/vendorv5/vendor/jlevers/selling-partner-api/lib/Configuration.php [line] => 414 [function] => signRequest [class] => SellingPartnerApi\Authentication [type] => -> ) [15] => Array ( [file] => /var/www/html/vendorv5/vendor/jlevers/selling-partner-api/lib/Api/OrdersV0Api.php [line] => 2720 [function] => signRequest [class] => SellingPartnerApi\Configuration [type] => -> ) [16] => Array ( [file] => /var/www/html/vendorv5/vendor/jlevers/selling-partner-api/lib/Api/OrdersV0Api.php [line] => 2654 [function] => getOrdersWithHttpInfo [class] => SellingPartnerApi\Api\OrdersV0Api [type] => -> ) [17] => Array ( [file] => /var/www/html/crons/orders-test.php [line] => 174 [function] => getOrders [class] => SellingPartnerApi\Api\OrdersV0Api [type] => -> ) ) [previous:Exception:private] => [request:GuzzleHttp\Exception\RequestException:private] => GuzzleHttp\Psr7\Request Object ( [method:GuzzleHttp\Psr7\Request:private] => POST [requestTarget:GuzzleHttp\Psr7\Request:private] => [uri:GuzzleHttp\Psr7\Request:private] => GuzzleHttp\Psr7\Uri Object ( [scheme:GuzzleHttp\Psr7\Uri:private] => https [userInfo:GuzzleHttp\Psr7\Uri:private] => [host:GuzzleHttp\Psr7\Uri:private] => api.amazon.com [port:GuzzleHttp\Psr7\Uri:private] => [path:GuzzleHttp\Psr7\Uri:private] => /auth/o2/token [query:GuzzleHttp\Psr7\Uri:private] => [fragment:GuzzleHttp\Psr7\Uri:private] => [composedComponents:GuzzleHttp\Psr7\Uri:private] => https://api.amazon.com/auth/o2/token ) [headers:GuzzleHttp\Psr7\Request:private] => Array ( [User-Agent] => Array ( [0] => GuzzleHttp/7 ) [Host] => Array ( [0] => api.amazon.com ) [Content-Type] => Array ( [0] => application/json ) ) [headerNames:GuzzleHttp\Psr7\Request:private] => Array ( [user-agent] => User-Agent [host] => Host [content-type] => Content-Type ) [protocol:GuzzleHttp\Psr7\Request:private] => 1.1 [stream:GuzzleHttp\Psr7\Request:private] => GuzzleHttp\Psr7\Stream Object ( [stream:GuzzleHttp\Psr7\Stream:private] => Resource id #5 [size:GuzzleHttp\Psr7\Stream:private] => 577 [seekable:GuzzleHttp\Psr7\Stream:private] => 1 [readable:GuzzleHttp\Psr7\Stream:private] => 1 [writable:GuzzleHttp\Psr7\Stream:private] => 1 [uri:GuzzleHttp\Psr7\Stream:private] => php://temp [customMetadata:GuzzleHttp\Psr7\Stream:private] => Array ( ) ) ) [response:GuzzleHttp\Exception\RequestException:private] => GuzzleHttp\Psr7\Response Object ( [reasonPhrase:GuzzleHttp\Psr7\Response:private] => Unauthorized [statusCode:GuzzleHttp\Psr7\Response:private] => 401 [headers:GuzzleHttp\Psr7\Response:private] => Array ( [Server] => Array ( [0] => Server ) [Date] => Array ( [0] => Thu, 11 Dec 2025 12:52:41 GMT ) [Content-Type] => Array ( [0] => application/json;charset=UTF-8 ) [Content-Length] => Array ( [0] => 77 ) [Connection] => Array ( [0] => keep-alive ) [x-amz-rid] => Array ( [0] => 69SK3MEWQBZEP5ZGEDW6 ) [x-amzn-RequestId] => Array ( [0] => 126ba9c6-ed9e-4ce4-9e39-c5c900853f54 ) [X-Amz-Date] => Array ( [0] => Thu, 11 Dec 2025 12:52:41 GMT ) [x-amzn-ErrorType] => Array ( [0] => OA2InvalidClientException:http://internal.amazon.com/coral/com.amazon.panda/ ) [Cache-Control] => Array ( [0] => no-cache, no-store, must-revalidate ) [Pragma] => Array ( [0] => no-cache ) [Vary] => Array ( [0] => Content-Type,Accept-Encoding,User-Agent ) [Strict-Transport-Security] => Array ( [0] => max-age=47474747; includeSubDomains; preload ) ) [headerNames:GuzzleHttp\Psr7\Response:private] => Array ( [server] => Server [date] => Date [content-type] => Content-Type [content-length] => Content-Length [connection] => Connection [x-amz-rid] => x-amz-rid [x-amzn-requestid] => x-amzn-RequestId [x-amz-date] => X-Amz-Date [x-amzn-errortype] => x-amzn-ErrorType [cache-control] => Cache-Control [pragma] => Pragma [vary] => Vary [strict-transport-security] => Strict-Transport-Security ) [protocol:GuzzleHttp\Psr7\Response:private] => 1.1 [stream:GuzzleHttp\Psr7\Response:private] => GuzzleHttp\Psr7\Stream Object ( [stream:GuzzleHttp\Psr7\Stream:private] => Resource id #7 [size:GuzzleHttp\Psr7\Stream:private] => 77 [seekable:GuzzleHttp\Psr7\Stream:private] => 1 [readable:GuzzleHttp\Psr7\Stream:private] => 1 [writable:GuzzleHttp\Psr7\Stream:private] => 1 [uri:GuzzleHttp\Psr7\Stream:private] => php://temp [customMetadata:GuzzleHttp\Psr7\Stream:private] => Array ( ) ) ) [handlerContext:GuzzleHttp\Exception\RequestException:private] => Array ( ) ) [2025-12-11 12:52:41] [orders-test] Lock released successfully.