AI Picture Upscaler

FREEMIUM
Populariteit

9.4 / 10

Latency

9,404ms

Serviceniveau

92%

Health Check

100%

Terug naar alle discussies

Node.js error

Rapid account: Macarthurval
Macarthurval
10달 전

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 5달 전

Facing same error. Is there any fix for it?

Rapid account: Firdavscoder 1
firdavscoder1 Commented 10달 전

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.

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen