Skip to content

Sharing link to sandbox does not have any code updated #8689

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

Open
3 tasks done
Nantris opened this issue Jan 15, 2025 · 19 comments
Open
3 tasks done

Sharing link to sandbox does not have any code updated #8689

Nantris opened this issue Jan 15, 2025 · 19 comments

Comments

@Nantris
Copy link

Nantris commented Jan 15, 2025

🐛 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.

Description of the problem

Sharing link to sandbox does not have any code updated.

How has this issue affected you? What are you trying to accomplish?

This is frequently happening and then I think, "Okay I guess I have to fork it?" and it tells me I already own it... All the files are saved.

To Reproduce

Use CodeSandbox, ever, in any capacity, in my experience.

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox
Browser Chrome
Operating System Linux
@Nantris
Copy link
Author

Nantris commented Jan 15, 2025

The fork is also not updated. So basically all the work gets lost unless you manually copy/paste it to a new fork.

@Nantris
Copy link
Author

Nantris commented Jan 15, 2025

Ha, and then after forking I get {"error":"Missing required parameter preview_url"}

Lovely.

You guys easily have the best environment, BUT IT DOESN'T SAVE PROPERLY!

@Nantris
Copy link
Author

Nantris commented Jan 18, 2025

Every damn time I use this site...

@Nantris
Copy link
Author

Nantris commented Jan 18, 2025

Moved to StackBlitz

@aaegorof
Copy link

Same here...

@CompuIves
Copy link
Member

Hmm, so if I understand correctly, if you share a link to a sandbox with someone else, and they start editing it, they get an error back and the code is not saved? I'm looking to repro & fix this.

@karlhorky
Copy link

karlhorky commented Jan 26, 2025

I'm also seeing this in some Next.js devboxes lately... 🤔

Example devbox: https://codesandbox.io/p/devbox/fast-tree-x7zpn2?workspaceId=ws_GfAuHrswXyA1DoeSwsjjjz

Image

@karlhorky
Copy link

karlhorky commented Jan 26, 2025

Oh, this devbox was private - I made it public now.

And... now the preview works again 🤔 Wonder if this has to do with private devboxes?

Image

@Nantris
Copy link
Author

Nantris commented Jan 26, 2025

Making it public did not resolve my issue - but the fact that the share button doesn't imply making it public is crazy in itself.

@CompuIves
Copy link
Member

Interesting... I will take a look at the preview_url error, I've seen this before, it relates to our private preview authentication. I think it might be a race condition, and a refresh (or opening the page itself) might fix it. Could you try if that works? That would help me debug the root cause.

but the fact that the share button doesn't imply making it public is crazy in itself.

We don't automatically make it public/unlisted because you can still share it with members in your workspace. This is the same behavior/UX as Google Docs/Drive, Figma and Notion so it's not that uncommon.

@karlhorky
Copy link

karlhorky commented Jan 27, 2025

@CompuIves here's some reproduction steps:

  1. Open https://codesandbox.io/p/devbox/github/karlhorky/next-mdx-dynamic-import-demo
  2. Hit Fork
  3. Observe the following on the resulting forked devbox (eg. https://codesandbox.io/p/devbox/serverless-breeze-c9hk86?workspaceId=ws_GfAuHrswXyA1DoeSwsjjjz - again, a private devbox)

Image

Note: This only applies for my case - maybe there are multiple cases, since making the devbox public did not help with what @Nantris was experiencing.

@CompuIves
Copy link
Member

I think this must be a race condition, I've been trying to repro it but couldn't yet. I've also asked the team to see if they could repro it.

@joshwooding
Copy link

I get this too but only when I'm using Chrome Beta. If I use the standard version of Chrome I have no issues.

@CompuIves
Copy link
Member

Oh! That's a very good indication. Perhaps there is a new Chrome security change that's only enabled for x% of browsers. I have seen this before (with partial cookies) where some Chrome instances had it enabled and others didn't, to do a gradual rollout.

@karlhorky
Copy link

In our case, I've seen this intermittently since months, on regular stable Chrome versions. (didn't try other browsers)

@Nantris
Copy link
Author

Nantris commented Feb 7, 2025

@CompuIves I have seen this issue for many months before finally filing an issue.

@karlhorky
Copy link

karlhorky commented Feb 14, 2025

Another example sandbox which shows the {"error":"Missing required parameter preview_url"} message:

Image

If there's anything that I can do to debug or make these reports more usable or actionable, then let me know - happy to help!

@rbalet
Copy link

rbalet commented Mar 22, 2025

Maybe helpful note, but I do always get this error on safari

@jame-earnin
Copy link

I do confirm that the error {"error":"Missing required parameter preview_url"} occur with the latest chrome update (Version 135.0.7049.41 (Official Build) (arm64).
I use old edge. It works fine. (Version 135.0.3179.54 (Official build) (arm64))

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

7 participants