react-ssr-setup: Error: net::ERR_CONNECTION_REFUSED on yarn build

When running yarn build, I’m getting this error: UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_REFUSED at http://localhost:8505

any idea what would cause this?

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 24 (10 by maintainers)

Most upvoted comments

My assumption is that the puppeteer process tries to access the server before the server has properly started.

Definitely agree

subscribe to events to start puppeteer

That sounds like a much, MUCH better idea than waiting and hoping! Though I guess if there’s no convenient hook, it might not be crazy to try to access the server, then if that fails, wait and retry, then wait longer and rety etc??

So many thanks again.