codesandbox / codesandbox/codesandbox-client

local api proxy error

Open
#6,769 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.
Your Environment
Software Name/Version
Сodesandbox master branch
Browser Chrome 102.0.5005.115
Operating System Mac OS Big sur

After following the CONTRIBUTION,i run local server [yarn start]. preview iframe not show, and console got error:

Got an error { Error: socket hang up
at createHangUpError (_http_client.js:332:15)
at Socket.socketCloseListener (_http_client.js:373:25)
at Socket.emit (events.js:203:15)
at TCP._handle.close (net.js:607:12) code: 'ECONNRESET' }
[HPM] Error occurred while proxying request localhost:3000/api/v1/sandboxes/5d6d3q?teamId=xxxx to https://codesandbox.io/ [ECONNRESET] (https://nodejs.org/api/errors.html#errors_common_system_errors)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by following the CONTRIBUTING guide and running yarn start to reproduce the local-server failure. Inspect the local API proxy path associated with the /api/v1/sandboxes/... request and the preview iframe; done means the request no longer ends with ECONNRESET and the preview loads locally.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.