question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug on server/api side.

See original GitHub issue

Environment


  • Operating System: Darwin
  • Node Version: v16.11.1
  • Nuxt Version: 3.0.0-27257216.f5aea9f
  • Package Manager: npm
  • Bundler: Vite
  • User Config: vite, build
  • Runtime Modules: -
  • Build Modules: -

Describe the bug

bug only on dev mode. build woking fine.

i have next method.

axios.post(“/api/upload”, formData, { headers: { “Content-Type”: “multipart/form-data”, }, });

formData have binary data.

on server

    const uploadFolder = path.resolve('images')
    const form = formidable.IncomingForm();
    form.uploadDir = uploadFolder;

    form.parse(req, async (err, fields, files) => {
    console.log(fields);
    console.log(files);
    if (err) {
        console.log("Error parsing the files");
        }
    // Check if multiple files or a single file
       
    });

ERROR [proxy] write EPIPE 10:14:03

at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:98:16)

if server build and started will work fine.

Reproduction

not have

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
madebyfabiancommented, Dec 9, 2022

@manniL Thanks for getting back on this, I’ve just found a solution at another issue https://github.com/unjs/h3/issues/43#issuecomment-1069225214. Would have provided one otherwise 😃

0reactions
manniLcommented, Dec 9, 2022

Great to hear ☺️

Read more comments on GitHub >

github_iconTop Results From Across the Web

App Store Server API | Apple Developer Documentation
The App Store Server API is a REST API that you call from your server to request and provide information about your customers'...
Read more >
Server-side rendering: how to serve authenticated content
What is server-side rendering? Learn how it works when dealing with authenticated users to render the correct content.
Read more >
Box Elder Bugs Facts, Information, & Control
Habitat. In autumn, boxelder bugs become gregarious and congregate on the south side of rocks, trees and buildings where the sun hits. After...
Read more >
Community server REST API cache bug - Martin Hansen
I've been working with the community serverAPI lately and came across this ... I did this in fiddler), and neither the server side...
Read more >
Csgo client side lag - Seba Online
#1 craftdude01 , Jun 14, 2014 Feb 20, 2020 · Must be a coincidence because i believe it is client side. You need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found