shed
Run Shed / Troubleshooting
Run Shed

Troubleshooting

The problems people actually hit with Shed, and the fix for each one.

View Markdown

Signing in

The sign-in email didn't arrive

Check spam, and search for "Sign in to Shed". Links last 15 minutes, so request a new one if it's been longer. You can ask for at most five emails per address in ten minutes.

If you run the server and no email arrives for anyone, check RESEND_API_KEY and that SHED_EMAIL_FROM's domain is verified in Resend. Without an email key, links are printed in the server's log.

"This server is invite-only"

The Shed you're signing in to only lets listed people publish, and nobody has shared an app with your address yet. Ask a colleague to share an app with you, or ask whoever runs Shed to add you.

The terminal is still "Waiting…"

Open the link from the email, check the code matches, and choose Approve terminal. Opening the link isn't enough. If you stopped the terminal (or your agent's command timed out), that's fine: approve the email, then run any shed command and it finishes the sign-in. Links last 15 minutes; after that, run shed login again.

I signed in with the wrong email

People you share with must sign in with the exact address you shared with. Choose Sign out in the top bar, sign in with the right address, and open the app link again.

Deploying

"is taken"

Someone else has an app with that name, and you can't open it. Pick another name:

Terminal
$ npx shedcloud deploy my-app --name my-app-2

"Only owners can deploy"

You can open the app, but only owners can ship new versions. Ask the owner to run the command in the error, or deploy your own copy with --name.

My change doesn't show up

Shed serves the new version as soon as the deploy finishes and tells browsers not to cache it. Reload the page. If it still looks old, check you deployed the folder you edited. For apps with a build step, run the build first and deploy its output (dist, build), not the source folder.

A page or file is missing

Paths are case-sensitive, and files whose names start with a . are skipped. Run shed info <app> to check how many files the version has.

In the app

"Sign in to use this app" in the console

The page's session ended, or it's a public app and the visitor isn't signed in. Call shed.login(), or reload the page to sign in again.

Writes fail with 403

The person is a viewer. Check await shed.can('edit') before showing forms, and make them an editor if they should be able to write:

Terminal
$ npx shedcloud share my-app --add sam@example.com:editor

Live updates stop

subscribe uses one connection per tab and reconnects on its own after a network drop. If your page re-renders from subscribe, it catches up when the connection returns. If updates never arrive, check that a proxy in front of a self-hosted Shed doesn't buffer responses: /_shed/events is a server-sent event stream.

shed is not defined

The page didn't load /_shed/sdk.js, or your code ran before it. Put <script src="/_shed/sdk.js"></script> before your own script, and use paths starting with / so it works from any page in the app.

It works on my computer but not on Shed

Opening index.html from your disk has no SDK, sign-in or data. Deploy and test on Shed, or run a local Shed:

Terminal
$ npx shedcloud serve --dev

Still stuck?

Open an issue with the command you ran and the message you got. Remove any tokens first.

↑↓ to move, Enter to open