Erro no post de imagens

Olá,

Estou tentando fazer o upload de imagem de skus para a integração de um ERP.

O header da minha requisição é o seguinte:

{ 'Authorization': 'Basic dnRleGF...', 'X-VTEX-API-AppToken': ETAXU...', 'X-VTEX-API-AppKey': 'vtexappkey-...', 'SOAPAction': 'http://tempuri.org/IService/ImageServiceInsertUpdate', 'Accept': 'application/json', 'Content-Type': 'text/xml' }

O body da requesição possui o seguiunte conteúdo:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:ImageServiceInsertUpdate> <tem:urlImage>url da image</tem:urlImage> <tem:imageName>Produto Teste</tem:imageName> <tem:stockKeepingUnitId>id do sku</tem:stockKeepingUnitId> </tem:ImageServiceInsertUpdate> </soapenv:Body> </soapenv:Envelope>

Quando tempo fazer a requisição através do postman, tudo funciona normalmente, mas quando tento fazê-la através do meu servidor, obtenho erro com a seguinte descrição:

"An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated."

Alguma ideia do que pode estar errado? Os outros posts de produtos e skus estão feitos da mesma maneira e consigo excutá-los através do servidor tranquilamente.

Obrigado

Onde está o exemplo real do envio para a VTEX?

Oi @Nathan Prestes​ , o que vc quer dizer com exemplo real?

A requisição que você está realizando, posta um exemplo real do que está enviando.

O header da requisição é o seguinte:

{ 'Content-Length': '458', 'X-VTEX-API-AppKey': 'vtexappkey...', 'User-Agent': 'python-requests/2.21.0', 'Connection': 'keep-alive', 'Authorization': 'Basic dnRl...', 'Content-Type': 'text/xml', 'Accept': 'application/json', 'X-VTEX-API-AppToken': MASWKPK...', 'Accept-Encoding': 'gzip, deflate', 'SOAPAction': 'http://tempuri.org/IService/ImageServiceInsertUpdate' }

Método usado: POST

O corpo da requisição é o xml da pergunta.

Queria ver o content, não o header

O Body da requisição? É o seguinte:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"><soapenv:Header/><soapenv:Body><tem:ImageServiceInsertUpdate> <tem:urlImage>url da imagem</tem:urlImage><tem:imageName>Produto Teste</tem:imageName><tem:stockKeepingUnitId>1270</tem:stockKeepingUnitId></tem:ImageServiceInsertUpdate></soapenv:Body></soapenv:Envelope>

Algo que notei foi que a VTex não chega a se comunicar com a url da imagem informada

Arthur, o campo tem:urlImage você deve enviar a URL da imagem, enviar um texto "url da imagem" realmente não vai funcionar. Precisa ser algo como:

accountname.vteximg.com.br/arquivos/suaimagem.jpg

ou:

www.teste.com.br/imagem123.png