Preview Connection Errors

Common Error Types
CONNECTION_TIMEOUT
Symptom: Studio shows “Your preview isn’t ready yet” or “Studio can’t open this Oxygen preview”. The side panels show Preview not connected. The preview did not answer Studio in time. Studio cannot tell why: a timeout does not prove the site is offline, requires sign-in, or is private. For a hosted preview:- Check the selected URL in Manage previews. Open that exact URL in a separate, regular tab in the same browser profile.
- If the storefront asks for a customer or B2B account, follow Sign-In and Cookies. If Oxygen asks you to sign in as a staff member of the Shopify store, see Private Oxygen Environment.
- If the site doesn’t load in the tab, check the URL, deployment status and any VPN or firewall requirements with your developer. When the URL is ready, return to Studio and choose Check again.
- Run
npm run devin your theme project and keep it running. - Check the URL and port in the terminal. Pilot uses
http://localhost:3456by default. Select that URL in Manage previews. - If Chrome asks to let Studio access other apps and services on this device, choose Allow, then click Check again.
- Safari blocks HTTP previews inside Studio. Use Chrome or Firefox, or an HTTPS preview URL. For an HTTP preview on a local network address, try
localhostif the server runs on this computer, or use an HTTPS URL.
Sign-In and Cookies
- Open the exact preview URL selected in Studio in a separate, regular tab in the same browser profile. Sign in to the storefront as you normally would. Signing in to a different domain, even for the same store, may not sign you in to the preview.
- Return to Studio. A storefront that recognizes you in its own tab might not recognize you inside Studio. If needed, use only the site-specific cookie or storage permission described below for your browser.
- Choose Check again (or Retry) in Studio. Remove any exception if it doesn’t help or you no longer need it.
- Chrome: Open Settings → Privacy and security → Third-party cookies. Under Sites allowed to use third-party cookies, choose Add and enter
https://studio.weaverse.io, the top-level site where the preview runs. This exception applies to embeds on Studio, not just this preview. Don’t use a wildcard or change the default for all sites. Chrome cookie settings - Edge: While you’re on Studio, Edge may ask whether another site can use its cookies and site data. Allow it only if the requesting site is your trusted preview. The permission is temporary and applies while you’re on the site where the prompt appeared. Microsoft’s guide to temporary permissions
- Firefox: Total Cookie Protection gives an embedded site separate storage for each top-level site. If the trusted preview requests access to its cookies inside Studio, you can grant that site-specific request. Leave Enhanced Tracking Protection on. Mozilla on partitioned cookies and storage access
- Safari on Mac: Safari’s Privacy settings don’t have a general per-site exception for cross-site cookies. Leave Prevent cross-site tracking on. If the trusted preview supports storage access and asks for it inside Studio, you can allow that request. If no prompt appears, try another approved browser or ask your storefront developer for help. Safari Privacy settings · WebKit on storage access
- Brave: With Studio open, select the Shields lion in the address bar and expand Advanced controls (or Advanced options). Change only the cookie setting to allow cookies for this site. Keep Shields on and leave the trackers and ads setting unchanged. Brave’s cookie control · Site-specific Shields settings
- Other or managed browsers: Use a documented site-specific permission if one is available. Otherwise, try a supported browser approved by your organization or ask your administrator.
SameSite setting may keep it from being sent inside Studio, or the preview may never request storage access. Studio cannot inspect a sign-in redirect inside a cross-origin preview. If it still doesn’t connect, ask the storefront developer or support to check whether this preview supports embedded sign-in. Keep storefront authentication and global privacy protections in place.
Private Oxygen Environment
Use this section only if the preview shows Oxygen’s Shopify staff sign-in or the environment owner has confirmed that its URL privacy is Private. A.myshopify.dev hostname identifies an Oxygen URL, not the cause of a timeout. A customer or B2B login page is not the staff gate; use Sign-In and Cookies for that case.
Oxygen’s staff sign-in page cannot open in Studio’s preview frame. A browser cookie exception doesn’t change the environment’s URL privacy.
Option A: Use a public Oxygen URL
Only an authorized store operator should make the environment public. This removes the staff gate for anyone with the URL. Keep the storefront’s own customer authentication in place. If removing the staff gate isn’t acceptable, keep the environment private.
- In Shopify admin, open your Hydrogen storefront.
- Open Storefront settings → Environments and variables.
- Click the environment used by your preview URL.
- Under URL privacy, select Public, then click Save.
- Select the approved URL in Manage previews and choose Check again.
For the full deployment steps, see Publish Your Storefront & Update Weaverse Preview URL.
Option B: Use an approved public URL on another host
If a public preview is appropriate but the store has no public Oxygen environment available, the developer can evaluate another host, such as Cloudflare Workers. This requires a migration and validation. It is not a fix for a customer sign-in cookie.
Open Manage previews in Studio, add and select the new public URL, then click Check again.
NO_WEAVERSE_CONTENT
Symptom: The preview loads, but Studio shows “No Weaverse content on this page yet” with setup guidance — not a connection error. The URL responded; it just has no Weaverse sections for Studio to edit.This is a normal, recoverable state — not a broken preview. Studio stays connected on any page it can reach (including 404s and routes without Weaverse content) so it can tell you why there’s nothing to edit, instead of falsely reporting “Connection lost”. Requires
@weaverse/hydrogen 5.16.3+ in your theme.- No page or template has been created/assigned for this route yet
- The underlying Shopify resource (collection, product, article) doesn’t exist, or isn’t published to your Headless / Hydrogen sales channel — the storefront route then returns a 404 with no content to edit
- The route doesn’t render
<WeaverseHydrogenRoot /> - Missing or outdated
@weaverse/hydrogenpackage
-
Create or assign a page for this route
- Open the page selector in the Studio top bar and create/assign a page for the current URL
- Add at least one section, then Save
-
For a Shopify resource page, confirm the resource exists and is published
- In Shopify admin, verify the collection/product/article in the URL exists
- Publish it to your Headless (Hydrogen) sales channel — an unpublished resource returns a 404, so the storefront renders its not-found page with no Weaverse content
- Open the URL directly in your browser: a 404 there confirms the Shopify resource, not Weaverse, is missing
-
Verify the route renders Weaverse content
- The route loader should call
weaverse.loadPage()and the route should render<WeaverseHydrogenRoot /> - Ensure components are registered in
app/weaverse/components.ts(imported as~/weaverse/componentsin Pilot) - Restart the dev server after adding new components
- The route loader should call
-
Confirm the page type is supported
- Supported types:
PRODUCT,COLLECTION,PAGE,BLOG,ARTICLE,INDEX,CUSTOM - Some routes (search, cart, account) use native Shopify components and aren’t Weaverse pages
- Supported types:
-
Update Weaverse if needed
@weaverse/hydrogen@latestinstalls v6, which requires Hydrogen 2026.10. To move a classic theme to v6, follow the v6 migration guide.
If you just created a page, make sure it uses the Weaverse page template and has sections configured. See the Rendering Weaverse Pages guide for complete implementation details.
INVALID_URL
Symptom: Preview shows “Invalid preview URL” immediately. Common Causes:- Malformed URL in project settings
- Missing protocol (http/https)
- Invalid characters in URL
- Localhost URL when expecting production
-
Check project preview URL settings
- Go to Project Settings in Weaverse Studio
- Verify preview URL format:
http://localhost:3456(development) - Ensure no trailing slash or extra characters
-
Validate URL format
- Must include protocol:
http://orhttps:// - Use
localhostnot127.0.0.1for local development - Check for typos in domain name
- Must include protocol:
-
Reset preview URL
- Delete current preview URL
- Enter fresh URL:
http://localhost:3456 - Save and refresh Studio
AUTH_REQUIRED
If opening the exact preview URL prompts for access, check who is asking:- Storefront customer or B2B account: Follow Sign-In and Cookies. Keep the store’s sign-in requirement.
- Shopify staff access to an Oxygen environment: See Private Oxygen Environment.
- Development server, proxy or corporate network: Ask the preview owner or network administrator to confirm your access. Use the normal sign-in method for that service.
CORS_ERROR
Symptom: Browser console shows CORS policy errors. Common Causes:- Missing CORS headers in development server
- Incorrect origin configuration
- Browser security restrictions
- Proxy/middleware blocking requests
-
Check the CSP for Studio’s sources
Studio embeds your storefront in an iframe and loads its bridge script from the Studio origin. Merge
getWeaverseStudioCspDirectives(request)(@weaverse/hydrogen6.3.0+) into the directives you pass to Hydrogen’screateContentSecurityPolicy. On Studio requests it adds the Studio origin toframe-ancestors,script-src,connect-src,style-src,font-srcandimg-src, plus'unsafe-eval'in design mode; for normal visitors it returns{}:The helper trusts onlyhttps://hosts onweaverse.ioorweaverse.dev. A self-hosted Studio on another domain gets{}, so add its origin to your own directives. -
Append Studio’s sources, don’t replace yours
Overwriting a directive with Studio’s array drops your own sources, such as
'unsafe-inline'inscript-src, which React Router’s hydration scripts need when the policy has no nonce. Look forviolates the following Content Security Policy directivein the console and add the blocked origin to the directive it names. See the Content Security Policy guide for the setup and a rollout checklist. -
Enable CORS for local development
-
Restart development server
- Stop server (Ctrl+C)
- Clear cache:
rm -rf .cache - Restart:
npm run dev
Advanced Troubleshooting
Check Browser Console
- Open browser DevTools (F12 or Cmd+Option+I)
- Go to Console tab
- Look for red error messages
- Copy error messages for support
Network Inspector
- Open DevTools → Network tab
- Refresh preview
- Look for failed requests (red status)
- Check request/response headers
- Note status codes (404, 500, etc.)
Verify RPC Communication
The preview uses PostMessage/RPC for Studio communication:Check the storefront runtimes in
window.__weaverses, not the Studio bridge. The bridge object is an internal implementation detail and does not expose a stable version field.Clear Studio Cache
- In Weaverse Studio, press Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)
- This forces a hard refresh and clears cached preview state
Test with Different Browser
For a signed-in preview, start with Sign-In and Cookies. If you try another approved browser, sign in on the exact preview URL in that browser’s normal profile before checking Studio again.Getting Help
If you’ve tried all troubleshooting steps and still experiencing issues:-
Check System Status
- Visit status.weaverse.io for known issues
-
Community Support
- Join Weaverse Discord
- Search GitHub Discussions
-
Contact Support
- Email: support@weaverse.io
- Include:
- Error type from preview overlay
- Browser and OS version
- Node.js version (
node --version) - Package versions from
package.json - Relevant error messages, without cookies, authentication headers or sign-in URLs
Prevention Tips
Development Best Practices
-
Always run dev server before opening Studio
-
Keep packages updated
-
Use recommended Node.js version
- Node.js 22.18+ or 24.11+ for the current Pilot template
- Check with
node --version
-
Monitor terminal output
- Watch for server errors
- Note the actual port being used
- Check for build warnings
Common Configuration
Recommendedvite.config.ts for preview:
- Preview URL:
http://localhost:3456 - Auto-reload: Enabled
- HTTPS: Disabled for local development
Related Resources
- Development Setup Guide
- Weaverse Configuration Reference
- Theme Development Guide
- Component Registration
Still having issues? Open Show details in the preview error overlay for troubleshooting steps. The help link below the recovery buttons opens this guide.