BRUNOFALIS

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Primeiramente bom dia, estou tentando enviar o seguinte JSON para o ML: { "category_id": "MLB253292", "currency_id": "BRL", "available_quantity": "1", "listing_type_id": "silver", "seller_contact": { "area_code": "16", "contact": "Borsari Im?veis", "phone": "3301-1020" }, "title": "Venda de Casas / Padr?o na cidade de Araraquara 9236", "price": 230000, "condition": "used", "location": { "address_line": "Rua Antonio Margonari, 105", "zip_code": "14806158", "city": { "id": "TVhYQXJhcmFxdWFyYVRVeENVRk5CVDA4NU4yR" }, "latitude": -48.0, "longitude": 0.0 }, "description": { "plain_text": "2 dormit?rios, sendo 1 su?te, 2 banheiros, 1 cozinha, 3 garagens, sendo 2 cobertas, 1 lavanderia, 1 sala, 1 escrit?rio" }, "attributes": [ { "value_name": "220 m?", "id": "TOTAL_AREA" }, { "value_name": "135 m?", "id": "COVERED_AREA" }, { "value_name": "3", "id": "PARKING_LOTS" }, { "value_name": "1", "id": "ROOMS" }, { "value_name": "2", "id": "BEDROOMS" }, { "value_id": "242085", "id": "HAS_KITCHEN" }, { "value_name": "2", "id": "FULL_BATHROOMS" } ], "pictures": [ { "source": "https://s3.amazonaws.com/msys-imob-borsariimoveis/imovel/fotos/9236/48bc5e9f6b98146360fe86bcbbfb037d.jpg" }, { "source": "https://s3.amazonaws.com/msys-imob-borsariimoveis/imovel/fotos/9236/66ad3c54932853046ec2487f5636cb10.jpg" }, { "source": "https://s3.amazonaws.com/msys-imob-borsariimoveis/imovel/fotos/9236/469991b70ee80ec25e948fc03c366e73.jpg" }, { "source": "https://s3.amazonaws.com/msys-imob-borsariimoveis/imovel/fotos/9236/410604cb7cfede6ce3cb838e24774d01.jpg" }, { "source": "https://s3.amazonaws.com/msys-imob-borsariimoveis/imovel/fotos/9236/5f763dc869a1702161371511f60a075b.jpg" }, { "source": "https://s3.amazonaws.com/msys-imob-borsariimoveis/imovel/fotos/9236/b3514e8dd76a548b2f2b2923655de6d8.jpg" } ] } Porém recebo o seguinte erro: { "message": "Validation error", "error": "validation_error", "status": 400, "cause": [ { "department": "items", "cause_id": 344, "type": "error", "code": "item.attributes.normalizable.invalid", "references": [ "item.attributes" ], "message": "Attribute TOTAL_AREA with value 220 m? is required and was omitted. You can use a number followed by one of these valid units: [m?]." }, { "department": "items", "cause_id": 344, "type": "error", "code": "item.attributes.normalizable.invalid", "references": [ "item.attributes" ], "message": "Attribute COVERED_AREA with value 135 m? is required and was omitted. You can use a number followed by one of these valid units: [m?]." } ] } "Ah mas é esse m?", não é, eu faço o envio parseando o objeto JSON com UTF-8, esse "m?" é equivalente à m², é que esse JSON é um LOG do servidor, por isso saiu com "m?", mas durante o debug eu consegui ver como estava enviando e mandou normal "m²", esse é um caso de exemplo, mas cerca 1500 -2000 registros do meu JOB tiveram o mesmo erro.