AI Picture Upscaler

부분 유료
분류별 Firdavs Shodiyev | 업데이트됨 2 months ago | Artificial Intelligence/Machine Learning
인기

9.4 / 10

지연 시간

9,519ms

서비스 수준

92%

Health Check

100%

모든 토론으로 돌아가기

Node.js error

Rapid account: Macarthurval
Macarthurval
10 months ago

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 months ago

Facing same error. Is there any fix for it?

Rapid account: Firdavscoder 1
firdavscoder1 Commented 10 months ago

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.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입