Find Jobs
Hire Freelancers

Fix my little 'ParallelSaveError' bug in Node.js/Mongoose/Sharp.js

$10-30 USD

Fullført
Lagt ut over 3 år siden

$10-30 USD

Betalt ved levering
Hi, Please fix my bug I receive as follows: (node:25640) UnhandledPromiseRejectionWarning: ParallelSaveError: Can't save() the same doc multiple times in parallel. Document: 5f60e24e929e1e6428b9204b [0] at [login to view URL] [as constructor]... I use [login to view URL] to resize an image many times within a map-function due to criteria from array imgSourceSet and safe each after processing it. Array imgSourceSet comes from MongoDB imgSourceSet: [ { _id: 5f5fe01ddffd8425a0bf25c3, widthSrcSet: 600, widthResizeCriteria: 650 }, { _id: 5f5fe079dffd8425a0bf25c4, widthSrcSet: 250, widthResizeCriteria: 251 }, { _id: 5f5fe085dffd8425a0bf25c5, widthSrcSet: 400, widthResizeCriteria: 450 }, { _id: 5f5fe094dffd8425a0bf25c6, widthSrcSet: 550, widthResizeCriteria: 551 } ] Each object (criteria) will be applied for the image with sharp in the map function. See excerpt: [login to view URL](async (src) => { if ([login to view URL] > [login to view URL]) { sharp([login to view URL]) .resize({ width: [login to view URL], withoutEnlargement: true, }) .jpeg({ quality: 90, progressive: true, force: false }) .png({ compressionLevel: 9, progressive: true, force: false, }) .webp({ quality: 90, force: false }) .toFile( `${fileFolder}/${filenam2}-${[login to view URL]}.${ext}` ) .then(async (info) => { const image = true; const imageWidth = [login to view URL]; const imageHeight = [login to view URL]; const sizeByte = [login to view URL]; const slug = `${filenam2}-${[login to view URL]}.${ext}`; [login to view URL]({ image, imageWidth, imageHeight, sizeByte, slug, fileFolder, }); await [login to view URL](); ////////////////// Whilst uploading I receive the ParallelSaveError error. After uploading, I see that not all objects in array have been processed and saved. Please fix this bug for me. You can telle me the solution or fix it via anydesk. Only bid if you have the needed experience. No long lasting try and error for hours. After providing your solution I will try it and if it works I release the payment. If not, correct it, please. In case of questions, you can ask me and I can ask you. NO Scammers and NO bargaining and No Asking for tip after contract approval! In case of whatever reason, you help me via anydesk. Only efficient JS solution with the smallest possible performance needs. No JQuery. No further packages. Don't ask me to send my entire (project-)files.
Prosjekt-ID: 27379066

Om prosjektet

3 forslag
Eksternt prosjekt
Aktiv 4 år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
Tildelt til:
Brukeravatar
The issue is related to mongoose save object and has nothing to do with [login to view URL] I've faced the exact same issue before and can resolve this within 15 minutes. Please provide me your Anydesk ID whenever you want me to start. I can start anytime. Thanks
$15 USD om 1 dag
0,0 (0 omtaler)
0,0
0,0
3 frilansere byr i gjennomsnitt $30 USD for denne jobben
Brukeravatar
i read the full bug code it is a js code error i think i can fix it within the next 4 hours I am a top js coder Regards
$50 USD om 1 dag
5,0 (34 omtaler)
6,7
6,7
Brukeravatar
I am a professional server bug fixer i will fix your bug in 1 day for more information dm me have a nice day
$25 USD om 1 dag
0,0 (0 omtaler)
0,0
0,0

Om klienten

GERMANYs flagg
Berlin, Germany
4,8
20
Betalingsmetode bekreftet
Medlem siden jan. 18, 2017

Klientbekreftelse

Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.