• 0
renato

Images got stuck in "processing_image" state

Question

Hi,

 

Some  items I have listed don't show any image. Looks like it got stuck in the "processing image" state. 

 

 

It has been processing for about 4 days now. I checked the source_url and it is accessible by the browser an the image type (jpeg) matches the the imagem extension (jpg). Others similar items listed at the same time had no problem.

 

What should I do in this case? Close the item and list it again? Is there anyway I can find out what the problem is?

Share this post


Link to post
Share on other sites

13 answers to this question

Recommended Posts

  • 0

Hello, you don't need to close the item, you can replace the current images by making a PUT to the Item including the item_id, the picture_id, and your access_token like this:

curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -d
'{
"pictures":[
{"source":"http://www.apertura.com/export/sites/revistaap/img/Tecnologia/Logo_ML_NUEVO.jpg_33442984.jpg"},
{"source":"http://appsuser.net/www/wp-content/uploads/2012/10/logo-mercadolibre.jpg"}
]
}' https://api.mercadolibre.com/items/{item_id}?access_token=$ACCESS_TOKEN

We're trying to figure out why it's your image still processing, I'll let you know as soon as I can.

 

For more information, check our Working with pictures tutorial.

Share this post


Link to post
Share on other sites
  • 0

Hi, 

Are there any news on this?

 

On the original publication, the API returned the processing images urls. Now, after 3 days, I'm trying to do a put on the publication pictures but still getting the processing images.

 

Here is the curl I'm performing now:
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -d '{
"pictures":[
{"source":"d26lpennugtm8s.cloudfront.net/stores/071/165/products/marmita-1-copia-7110f102d072a5b8598d1cf0e295f414-1024-1024.jpg"},
 
Thanks

Share this post


Link to post
Share on other sites
  • 0

I have a same problem with my module:

 

Do you have some example with php?

I debug the post and get this result allow:

Array
(
    [pictures] => Array
        (
            [0] => Array
                (
                    [source] => www.sigilosexshop.com.br/loja/1/0/2/102.jpg
                )

            [1] => Array
                (
                    [source] => www.sigilosexshop.com.br/loja/1/0/2/102.jpg
                )

            [2] => Array
                (
                    [source] => www.sigilosexshop.com.br/loja/1/0/2/102.jpg
                )

            [3] => Array
                (
                    [source] => www.sigilosexshop.com.br/loja/1/0/2/102.jpg
                )

            [4] => Array
                (
                    [source] => www.sigilosexshop.com.br/loja/1/0/2/102.jpg
                )

            [5] => Array
                (
                    [source] => www.sigilosexshop.com.br/loja/1/0/2/102.jpg
                )

            [6] => Array
                (
                    [source] => www.sigilosexshop.com.br/loja/1/0/2/102.jpg
                )

            [7] => Array
                (
                    [source] => www.sigilosexshop.com.br/loja/1/0/2/102.jpg
                )

        )

)
Meli Object
(
    [client_id:protected] => xxxxxxxxxxxxxxxxxx
    [client_secret:protected] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    [redirect_uri:protected] => https://www.sigilosexshop.com.br/loja/modules/mercadolivreps/controllers/admin/example_login.php
    [access_token:protected] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    [refresh_token:protected] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
)
Array
(
    [body] => stdClass Object
        (
            [id] => MLB760658966
            [site_id] => MLB
            [title] => Bala Chup Chup
            [subtitle] => 
            [seller_id] => 646555
            [category_id] => MLB48701
            [official_store_id] => 
            [price] => 100
            [base_price] => 100
            [original_price] => 
            [currency_id] => BRL
            [initial_quantity] => 10
            [available_quantity] => 10
            [sold_quantity] => 0
            [buying_mode] => buy_it_now
            [listing_type_id] => gold_special
            [start_time] => 2016-04-29T13:33:07.000Z
            [stop_time] => 2036-04-24T13:33:07.000Z
            [end_time] => 2036-04-24T13:33:07.000Z
            [condition] => new
            [permalink] => http://produto.mercadolivre.com.br/MLB-760658966-bala-chup-chup-_JM
            [thumbnail] => http://www.mercadolibre.com/jm/img?s=STC&v=I&f=proccesing_image_pt.jpg
            [secure_thumbnail] => https://www.mercadolibre.com/jm/img?s=STC&v=I&f=proccesing_image_pt.jpg
            [pictures] => Array
                (
                    [0] => stdClass Object
                        (
                            [id] => 631021-MLB20692667324_042016
                            [url] => http://www.mercadolibre.com/jm/img?s=STC&v=O&f=proccesing_image_pt.jpg
                            [secure_url] => https://www.mercadolibre.com/jm/img?s=STC&v=O&f=proccesing_image_pt.jpg
                            [size] => 500x500
                            [max_size] => 500x500
                            [quality] => 
                        )

                )

            [video_id] => 
            [descriptions] => Array
                (
                    [0] => stdClass Object
                        (
                            [id] => MLB760658966-1087863720
                        )

                )

            [accepts_mercadopago] => 1
            [non_mercado_pago_payment_methods] => Array
                (
                )

            [shipping] => stdClass Object
                (
                    [mode] => not_specified
                    [local_pick_up] => 
                    [free_shipping] => 
                    [methods] => Array
                        (
                        )

                    [dimensions] => 
                    [tags] => Array
                        (
                        )

                )

            [international_delivery_mode] => none
            [seller_address] => stdClass Object
                (
                    [id] => 91477553
                    [comment] => 
                    [address_line] => rua senador pompeu 23
                    [zip_code] => 
                    [city] => stdClass Object
                        (
                            [id] => BR-RJ-01
                            [name] => Rio de Janeiro
                        )

                    [state] => stdClass Object
                        (
                            [id] => BR-RJ
                            [name] => Rio de Janeiro
                        )

                    [country] => stdClass Object
                        (
                            [id] => BR
                            [name] => Brasil
                        )

                    [latitude] => 
                    [longitude] => 
                    [search_location] => stdClass Object
                        (
                            [neighborhood] => stdClass Object
                                (
                                    [id] => 
                                    [name] => 
                                )

                            [city] => stdClass Object
                                (
                                    [id] => 
                                    [name] => 
                                )

                            [state] => stdClass Object
                                (
                                    [id] => TUxCUFJJT08xODM5Zg
                                    [name] => Rio de Janeiro
                                )

                        )

                )

            [seller_contact] => 
            [location] => stdClass Object
                (
                )

            [geolocation] => stdClass Object
                (
                    [latitude] => 
                    [longitude] => 
                )

            [coverage_areas] => Array
                (
                )

            [attributes] => Array
                (
                )

            [warnings] => Array
                (
                )

            [listing_source] => 
            [variations] => Array
                (
                )

            [status] => active
            [sub_status] => Array
                (
                )

            [tags] => Array
                (
                    [0] => immediate_payment
                )

            [warranty] => 
            [catalog_product_id] => 
            [seller_custom_field] => 
            [parent_item_id] => 
            [differential_pricing] => 
            [deal_ids] => Array
                (
                )

            [automatic_relist] => 
            [date_created] => 2016-04-29T13:33:07.000Z
            [last_updated] => 2016-04-29T13:52:22.430Z
        )

    [httpCode] => 200
)

Share this post


Link to post
Share on other sites
  • 0

guys can you convert this to JSON format to check if is ok?  with images are many things that can be failing on your and mercadolibre ends, to check what's the problem I need JSON 

Hi Leandro,

 

I use your file base https://github.com/mercadolibre/php-sdk/blob/master/examples/example_list_item.phpto send the announce, and i get this error.

Share this post


Link to post
Share on other sites
  • 0

Hello, you don't need to close the item, you can replace the current images by making a PUT to the Item including the item_id, the picture_id, and your access_token like this:

curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -d
'{
"pictures":[
{"source":"http://www.apertura.com/export/sites/revistaap/img/Tecnologia/Logo_ML_NUEVO.jpg_33442984.jpg"},
{"source":"http://appsuser.net/www/wp-content/uploads/2012/10/logo-mercadolibre.jpg"}
]
}' https://api.mercadolibre.com/items/{item_id}?access_token=$ACCESS_TOKEN

We're trying to figure out why it's your image still processing, I'll let you know as soon as I can.

 

For more information, check our Working with pictures tutorial.

But we using the class MELI given for your team in github, do you have a example in php?

 

Sorry, but your team don't help so much.

Share this post


Link to post
Share on other sites
  • 0

AlexCyrus e admelojr,

qual o tempo de resposta do servidor de vocês?

O ML faz um GET na imagem, se o servidor não estiver respondendo rapidamente isto entra numa fila, e pode ficar em loop se o servidor não responder.
Vejam no LOG do servidor se há o GET na imagem

Share this post


Link to post
Share on other sites
  • 0

EDIT: resolví el problema

En mi caso era que las url tenian espacios en blanco, es decir cosas como "blabha (2).jpg"

Esto a chrome no le ocasiona ningun problema y porahi por eso es dificil resolverlo.

 

Lo que hice para arreglarlo fue hacer un replace de todos los  espacios por %20 que es el espacio codificado para urls!

 

Espero que a alguien le sirva! 

Saludos!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now