Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Can't detect sandbox ID from the current URL #1

Open
SourceCodeOpen opened this issue Oct 26, 2023 · 3 comments
Open

Error: Can't detect sandbox ID from the current URL #1

SourceCodeOpen opened this issue Oct 26, 2023 · 3 comments
Assignees

Comments

@SourceCodeOpen
Copy link

As i use caddy run this prebuild assets from github, and use the following command to carry out .
caddy_windows_amd64.exe file-server --root C:\Users\12509\Desktop\www\codesandbox --listen local.netease.com:8443
Aflter that i open my browser to visit "https://local.netease.com:8443/" ,And open my Devtools find that
`
url-generator.js:239 Uncaught (in promise) Error: Can't detect sandbox ID from the current URL
at t.getSandboxId (url-generator.js:239:15)
at index.ts:95:16

`
What can i do?

@ccloli
Copy link
Collaborator

ccloli commented Oct 26, 2023

It's intended, because the sandbox is mainly used to be integrated with Tango, the data needs to be run in sandbox (including the sandbox id) will be passed from the Tango Designer. So if you open the sandbox directly, it'll throw such error and shows nothing.

BTW please use the Caddyfile in the codesandbox repo, because a HTTP response header is required since Chrome 115. For details, please follow the quick start guide.

@SourceCodeOpen
Copy link
Author

thanks,i have done it.but it still has some runtime exception,wait for a new version.

@ccloli
Copy link
Collaborator

ccloli commented Oct 27, 2023

Yep, there're still things need to be done for the opensource version. If you're interested, feel free to follow and ask in the main repository https://github.com/NetEase/tango , since this repo is mainly for hosting the demo site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants