AI Picture Upscaler

FREEMIUM
Popularidade

9.4 / 10

Latência

9,443ms

Nível de serviço

92%

Health Check

100%

Voltar para todas as discussões

Node.js error

Rapid account: Macarthurval
Macarthurval
hace 10 meses

In Node.js, no matter the library I use, I always get the error:

“No initial boundary string (or you have a truncated message).”

Example:

let data = new FormData();
data.append(‘image’, fs.createReadStream(’/Users/macarthurval/Downloads/348474752_942942806816470_8266448106391457053_n.jpg’));
data.append(‘sizeFactor’, ‘2’);
data.append(‘imageStyle’, ‘default’);
data.append(‘noiseCancellationFactor’, ‘0’);

let config = {
method: ‘post’,
maxBodyLength: Infinity,
url: ‘https://ai-picture-upscaler.p.rapidapi.com/supersize-image’,
headers: {
‘x-rapidapi-host’: ‘ai-picture-upscaler.p.rapidapi.com’,
‘x-rapidapi-key’: ‘-----’,
…data.getHeaders()
},
data : data
};

axios.request(config)

Rapid account: Sanjaysinghg 2 U
sanjaysinghg2u Commented hace 5 meses

Facing same error. Is there any fix for it?

Rapid account: Firdavscoder 1
firdavscoder1 Commented hace 10 meses

Actually, I don’t know NodeJS, if it works on RapidAPI, then it has to work by using any language. However, eventually, it depends on to the code of using it.

Junte-se à discussão - adicione o comentário abaixo:

Efetue login / inscreva-se para postar novos comentários