instagram-private-api icon indicating copy to clipboard operation
instagram-private-api copied to clipboard

Please HELP! Error Publishing video

Open 123zasasdw opened this issue 1 year ago • 1 comments

Hello. Please help me, I have this code: const publish Reel = async () => { try { const video Path = 'IMG_1025.MP4'; // Replace with your video path const path to the cover = 'photo_2023-11-10_16-05-42.jpg '; // Replace with your path to the cover image

const [video buffer, coverBuffer] = Promise.all waiting([ ReadFile(videoPath), ReadFile(coverPath), ]);

permanent video reviews = { video: videoBuffer, Cover image: coverBuffer, caption: 'Hihihi', // Add your signature here clips_share_preview_to_feed: '1', // Specify other parameters here according to your needs };

const video = waiting for ig.publish.video(videoOptions); console.log('The video was successfully published:', video.id); } catch (error) { console.error('Video publishing error:', error); } };

When performing this action, I get the following error: Error publishing video: IgUploadVideoError: POST /api/v1/media/upload_finish/?video=1 - 400 Bad Request; server processing error: VideoSourceVideoStreamCheckException

123zasasdw avatar Nov 13 '23 14:11 123zasasdw

@123zasasdw Download any reel from instagram and try to upload that , and for cover image use can use https://ezgif.com/video-to-jpg to get a frame from video

programmingera avatar Nov 26 '23 03:11 programmingera