502: This sandbox is not listening on the requested port Code: SANDBOX_NOT_LISTENING
That usually means the preview sandbox started, but the app inside it is not serving on the port v0 expects, or the dev server failed before it could bind to the port.
A few things I would check:
Open the terminal/logs and look for the first error before the 502 message.
Check package.json and make sure the dev script is normal for the framework, for example next dev.
If this is a Next.js app, make sure the app is not hardcoding a different port.
Avoid changing the dev server host/port unless v0 specifically requires it.
If dependencies changed recently, delete/regenerate the lockfile or ask v0 to reinstall dependencies.
Try a fresh duplicate only after confirming the original project’s dev command and dependency install are valid.
Running pnpm install may not fix this if the actual issue is that the dev server crashes or listens on the wrong port. The most useful detail to share would be the terminal output immediately before SANDBOX_NOT_LISTENING.