• 0
Diogo

Erro HTTP 500

Question

Boa noite, tudo bem?

Estou obtendo erro 500 - Internal Server Error - ao tentar enviar um anexo para o Mercado Livre, mais alguém está tendo esse problema ou consegue me ajudar?

Código em Kotlin:

fun sendAttachment(attachment: MultipartFile, mercadoLibre: MercadoLibre): String {

    val (_, _, result) = "$baseApiUrl/messages/attachments"
            .httpPost(listOf("access_token" to accessToken))
            .header("content-type" to "multipart/form-data")
            .body(attachment.bytes)
            .responseString()

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

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