Skip to content

php package Automattic/Woocommrece keeps timeout #357

@astomo-p

Description

@astomo-p

My current composer.json

"php":"^8.2",
"laravel/framework":"^12.0",
"automattic/woocommerce":"^3.1.0"

I am recently developing laravel project for reading woocommerce customers data. I am using the following code in my controller

`use Automattic\WooCommerce\Client as WooClient;

$woocommerce = new WooClient(
'https://my-domain',
'ck_client_key',
'cs_client_secret',
[
'timeout' => '29',
'wp_api' => true,
'version' => 'wc/v3'
]
);
$woo_response = $woocommerce->get('customers');`

This code runs good on wednesday 06/04/2025 then timeout on thursday 06/05/2025 and keeps timeout afterward. Was there any wrong step or something else issue happen in this package? For additional information, I still can get my customer's list through direct postman request againts my domain. Any help very appreciated. Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions