Support » Plugin: WooCommerce » error external image via rest api

  • Resolved tobyhage

    (@tobyhage)


    Hello,

    I get following error when i create product via rest api.

    
    Automattic\WooCommerce\HttpClient\HttpClientException  : Error: Fout tijdens het verkrijgen van externe afbeelding https://images.wehkamp.nl/i/wehkamp/16201949_pb_01.jpg?w=500&h=500. Fout: Forbidden [woocommerce_product_image_upload_error]
    

    I already tried to remove: ?w=500&h=500 with no luck.
    I also tried via http url instead of https, also with no luck.

    I can add other products with images with no problems.

    i use: https://packagist.org/packages/automattic/woocommerce version 3.0.0.
    Woocommerce: 3.7.0
    Wordpress: 5.2.2

    
            $woocommerce = new Client(
                'https://XXX.com',
                'ck_XXX',
                'cs_XXX',
                [
                    'wp_api' => true,
                    'version' => 'wc/v3',
                    'query_string_auth' => true
                    'timeout' => 120,
                    'verify_ssl' => false
                ]
            );
    

    What can be the problem?

    kind regards.

Viewing 1 replies (of 1 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    This typically means there is something on the server that the image is on that is preventing it from being accessible when your site tries to grab the image. It’s essentially an authentication error with the external server. Since you can grab other images, this supports that idea, that it’s a specific error on the other server with that image.

    Hopefully that helps! Have a great one!

Viewing 1 replies (of 1 total)
  • The topic ‘error external image via rest api’ is closed to new replies.