--- title: FAQs authors: ['Necoline', 'James', 'Filipe'] --- import { Tabs, WrapContent } from '../../../shared-components/Tabs' import { Callout } from 'nextra-theme-docs' # FAQ ## Which languages and frameworks are supported? [VM Sandboxes](/learn/vm-sandboxes/overview) and [Repositories](/learn/repositories/overview) work with anything that can run in Docker. They provide the best experience for JavaScript (including TypeScript), front-end and full-stack. We provide official templates (with built-in LSP/IntelliSense) for Rust, Go, Python, PHP, Ruby on Rails, Elixir, Node, Deno, and many more (more templates coming soon). [Sandboxes](/learn/browser-sandboxes/overview) are more limited. They support JavaScript/TypeScript projects. [Create a Sandbox from a template](https://codesandbox.io/new/), or read more about the [difference between Browser & VM Sandboxes](/learn/vm-sandboxes/overview#difference-between-vm-sandboxes--sandboxes). ## What operating systems and devices are supported? CodeSandbox is designed for Desktop/Laptop operating systems, browsers and display resolutions. Our editor may work on other operating systems and mobile devices. While we will take onboard feedback from users on these platforms, we do not officially support them or recommend them for the optimum CodeSandbox experience. ## How can I make a Sandbox private? There are several ways to set a Sandbox as private. One universal way (that works both for VM & Browser Sandboxes) is to right-click a Sandbox from the dashboard and select _Make Sandbox private_. You can also change the privacy settings from the editor. Click the _Share_ button on the top right and change the privacy drop-down at the top. ## When should I mark my Sandbox as "protected"? Nobody outside your workspace can edit your Sandboxes; they can only fork it. However, in cases where you want to ensure that even workspace members cannot edit the Sandbox (which could be the case for finished projects), you can mark it as "protected" so it is not accidentally edited. ## I'm getting a 502 error "It looks like the dev server has not started yet", why? VM Sandbox [previews](/learn/vm-sandboxes/preview) are handled by a task that runs a dev server inside a CodeSandbox VM. Error `502` occurs when that task stops for some reason (some possible reasons being: task was stopped manually; application ran out of memory; the VM is not running). We automatically [hibernate VMs](/learn/environment/vm#memory-snapshotting) (including the preview) after 5 minutes of inactivity for Free users and 30 minutes of inactivity for Pro users, but when someone attempts to access either the code or the preview, we quickly resume the dev server (usually in under 2 seconds) — so "inactivity" is not a cause for the `502` error. To troubleshoot this error, follow these steps: - Open the VM Sandbox on the CodeSandbox editor (if you only have access to the preview, forward these instructions to the VM Sandbox author). - Confirm that the [dev server task](/learn/vm-sandboxes/devtools#previews) is running; start/restart it as needed. - Confirm that the preview tab on the right side of the editor doesn't show error `137` (which indicates that the VM Sandbox ran out of memory). If the problem persists after going through the checks above, please [submit a bug report](https://codesandbox.io/support#form)). ## My VM Sandbox is running out of memory; what can I do? You can increase the specs of the VM running your Sandbox to get more memory. Follow these steps: 1. Click the CodeSandbox icon at the top left of the editor. 2. Click "Virtual Machine". 3. Under the "VM Specs" dropdown, pick a VM tier and then click "Apply" (if this option doesn't display, please ask a workspace admin to make this change). Legacy CodeSandbox Pro plans cannot change VM specs; first, they must be [converted](https://codesandbox.io/upgrade) to our new "usage-based billing" Pro plan. ## I'm getting a CORS error when triggering a request to a VM Sandbox URL, why? The most common cause of this is your VM Sandbox's privacy settings. Even when your VM Sandbox is private, we still need a preview token to access the preview URLs. Currently, we do not support private VM Sandboxes with public previews. Changing the VM Sandbox privacy to 'Unlisted' often fixes this issue. ## Why are my start scripts not having an effect? For performance reasons, we ignore any specified scripts in Browser Sandboxes and use a default script instead. If you need to control the scripts, then we recommend using a [VM Sandbox](/learn/vm-sandboxes/overview). ## I'm getting a 422 error when importing from GitHub, why? There are a few possible reasons a repo might throw that error on import. The most common are: the lack of a `package.json` file, or the project using more than 500 modules (files). If you think it's something else, or you're unable to solve this yourself, then [get in touch using our support form](https://codesandbox.io/support#form) and provide a link to the repo you're importing and we can look into this for you. ## Can I change the Node version used in a VM Sandbox? Yes, we have instructions on the [VM configuration](https://codesandbox.io/docs/learn/environment/vm#configuring-nodejs-version) page that explain how to change the Node version. All recent server Sandboxes run in a VM Sandbox. ## How can I change the editor's theme? To change the theme, click on the CodeSandbox icon at the top left of the editor, then go to Editor > Color Theme, and select a theme from the Themes dropdown. You can also do it from the [command palette](https://codesandbox.io/docs/learn/repositories/commandpalette) by picking the option "Preferences: Color Theme". ## Do Sandboxes have any limitations? We currently provide [Browser Sandboxes](/learn/browser-sandboxes/overview) and [VM Sandboxes](/learn/vm-sandboxes/overview). Sandboxes have the following limitations: - Can only run front-end JavaScript or TypeScript projects (servers not supported). - Imported Sandboxes must contain a `package.json` file. - Lower file upload sizes, which are handled per account (as explained on the [File Upload page](/learn/vm-sandboxes/upload#upload-limits)). - Cannot use more than 500 modules (files). Note that `node_modules` and dependencies do not count toward this limit. VM Sandboxes are part of our evolved CodeSandbox experience, so we highly advise you to use them to avoid encountering these limitations. ## I'm getting a 'Request Entity too Large' error, what should I do? If you encounter this error when importing or committing, check your Sandbox or repo for large binary files and remove them. ## Which CodeSandbox domains should I whitelist on my firewall to ensure CodeSandbox loads correctly? If you suspect that your VM/Browser Sandboxes aren't starting due to your firewall rules, try whitelisting the following domains: - `codesandbox.io` - `*.csb.app` - `worker.codesandbox.io` ## Can I use a database on CodeSandbox? Yes, you can use any database that has a Docker image available with a VM Sandbox. Some popular databases with Docker images include MySQL, PostgreSQL, MongoDB, and Redis. {/* For ready-to-use examples, check our [VM Sandbox](https://codesandbox.io/dashboard/recent?create=true) templates. */} ### Do I need to install Docker on my local machine to use it in CodeSandbox? No, you don't need to install Docker on your local machine. CodeSandbox has [built-in support for Docker](https://codesandbox.io/blog/introducing-docker-support-in-codesandbox), so you can use it directly in the online development environment. ### How can I access the database once it's running in a Docker container? You can access the database using the appropriate driver for your language or framework. Typically, you'll need to provide the hostname, port number, username, and password to connect to the database. If you want to connect locally to the database, you can use our VS Code integration to open the VM Sandbox inside VS Code, and then forward the port of the database to localhost. ### Can I use multiple databases in the same CodeSandbox project? Yes, you can use multiple databases in the same project by running multiple Docker containers with different port numbers. ### Can I use Docker Compose in CodeSandbox? Yes, you can use Docker Compose in CodeSandbox to orchestrate multiple containers and define the relationships between them. However, you'll need to create a Docker Compose file and run the `docker-compose` command in the terminal to start the containers. We share more about this [in our Docker tutorial](https://codesandbox.io/docs/tutorial/getting-started-with-docker#4-create-docker-compose-file). ### Is it safe to use a database in CodeSandbox with Docker support? Yes, it's safe to use a database in CodeSandbox with Docker support, as long as you follow best practices for security and keep your database credentials private. Docker provides a secure and isolated environment for running containers, so your database is protected from external threats. We also prevent any connections to your VM Sandbox without sign in if it is private. ### How can I troubleshoot issues with my database in CodeSandbox with Docker support? If you're having issues with your database, you can check the container logs to see if there are any error messages. You can also run commands like `docker ps` and `docker logs` in the terminal to get more information about the container. Additionally, you can ask for help on the CodeSandbox community forums or consult the documentation of the specific database you're using. ## Can I push/pull from a GitLab, Azure DevOps, or BitBucket repository? Yes. While our Repositories only have built-in push and sync capabilities for GitHub, you can connect to a remote repository from any other git provider. To do that, use our terminal to `git remote add` the remote repository and then add your credentials for it. You can also add the authentication details to the CodeSandbox microVM using [environment variables](https://codesandbox.io/docs/learn/environment/secrets). ## What to do about that recurring trust modal? ![Trust Modal](./learn/images/vscode-trust.jpg) This modal shows up every time you launch a project folder in a new container. Since every branch will be opened with a unique SSH URL, VS Code will ask you to verify that you trust the connection. This is an important security notice to ensure that the user understands the connection being established before opening the code. You can read more about the modal on the [VS Code blog](https://code.visualstudio.com/blogs/2021/07/06/workspace-trust). ## Do I have to be connected to a live session on CodeSandbox to work on a branch? It is possible to work in an “un-synced” state. For CodeSandbox features to work, the branch needs to be established on a remote connection **and** connected to Pitcher (learn [how it works](/learn/getting-started/setting-up-vscode#how-it-works)). ## Who can access my code? Only people on your CodeSandbox team with permissions to the repository may join as collaborators. Repository permissions are carried over from GitHub. To add someone new to the team, provide access on GitHub and add them to your CodeSandbox team. From there, they can access the code in the browser or follow the steps above to use VS Code. ## Is it possible to use GitHub Copilot together with CodeSandbox? Yes. Follow the steps below: 1. Use our [VS Code extension](https://marketplace.visualstudio.com/items?itemName=CodeSandbox-io.codesandbox-projects) to connect to one of our VM Sandboxes or Repositories. 2. Install the Copilot VS Code extension (if not already installed). 3. Configure the extension to run in CodeSandbox remote connections (following the instructions for [Default User Extensions](/learn/repositories/editors#default-user-extensions)). ## More Questions? If you have additional questions or need support, please post them in our [community platform](https://www.codesandbox.community/c/ask-community/). ### What is the current state of CodeSandbox for iOS? CodeSandbox for iOS is no longer available. CodeSandbox is currently unable to maintain the app experience and has removed it from the App Store. This does not remove the app from your device or prevent you from opening it if you already have it installed. ## Sandboxes ### Why am I getting a git error resolving a dependency? CodeSandbox for iOS is only compatible with dependencies hosted and accessible via HTTP or HTTPS. This happens because the app doesn't provide local shell environments where you can run arbitrary commands, like git. Use the [CodeSandbox web editor](/learn/editors/overview) instead. You may find some of the following answers helpful if you have gone through the sections in this documentation but still haven’t solved your questions: ### I'm getting an error trying to run my Sandbox in CodeSandbox for iOS. What could be the cause? The root cause of the problem could be either a coding mistake on your side or a dependency trying to do something forbidden by iOS. For instance, dependencies relying on WebAssembly won't work, as WebAssembly requires JIT compilation to function, and this isn't allowed by the App Store guidelines. Another cause can be that your project or one of its dependencies rely on a native dependency or Node extension, which aren’t supported. ### One of the scripts in my Sandbox cannot be run. What could be the cause? Only the scripts that start with `node` or the name of a dependency located inside the `node_modules/.bin` directory are compatible. This happens because CodeSandbox for iOS doesn’t provide a shell environment, so scripts containing an arbitrary bash command won't work. ### I can't see the preview of my Sandbox in the web browser. What could be the cause? The runtime provides a `WEB_PORT` environment variable matching the port used by default by the in-app web browser. If your Sandbox doesn't use the port in that environment variable, then you will need to fix the URL in the web browser to load the page on the right port. ### Why does my Sandbox stop running when I move the app to the background? This happens because iOS suspends the process while the application is in the background, which also suspends all its activity. ### My Sandbox requires Node.js 14 but the app uses Node.js 12. How can I change the Node.js version? The application uses a Node.js port that hasn’t been upgraded to Node.js 14 as we have been focused on integrating the new CodeSandbox experience instead. Stay tuned, as we will be making some updates. ## Repositories ### Why can't I make any changes to my project? You likely have a protected branch selected (i.e. `main`). Forking a branch will create a new one where you can make changes. ## I can't log in to my account - what should I do? If you're having trouble logging in, fill out our [Support form](https://codesandbox.io/support#form) by picking "Account Management" and "Login Issues". This will ensure we prioritize your request. ## How can I update my account's name and username? You can edit your name or username from your [Dashboard](https://codesandbox.io/dashboard/): 1. Click your avatar at the top right. 2. Click "User settings". 3. Click "Edit" under "Account details". 4. Make the necessary changes and click "Save". ## How can I add team members to my workspace? To add a new member to your workspace: 1. Click the "[Invite members](https://codesandbox.io/t/overview)" link shown at the left sidebar of your [Dashboard](https://codesandbox.io/dashboard/). 2. Input the username or email you wish to add in the input box. 3. Select the user role. 4. Click "Add member". The user will receive an email invitation and in-app notification asking them to confirm. ## How can I leave or delete a workspace? You can leave or delete a workspace from the "Overview" tab of your [Workspace Settings](https://codesandbox.io/t/overview), by clicking on "Leave workspace", or "Delete workspace", respectively. There are some cases where leaving a workspace is not permitted. 1. You are the only workspace member with admin rights: Every workspace requires at least one admin member. Before you can leave the workspace, you must assign a new admin. 2. You are trying to leave the only workspace connected to your account: Every account must be associated with at least one workspace. If you want to leave the only workspace connected to your account, you may create a new workspace and then leave the workspace you want to be disassociated with. Alternatively, deleting your account will remove you from any workspaces that you are a member of. ## How can I change my account's email address? Updating an account's email address requires us first to validate account ownership. To validate your identity and request the email update, follow these steps: 1. Log in to your existing CodeSandbox account. From the Dashboard, click your avatar at the top right, then "User settings", and note the username and email you see right next to your avatar in that new modal. 2. Fill out our [Support form](https://codesandbox.io/support#form) by picking "Account Management" and "Change Email Address". In the text field, share the account's username and current email address. 3. Send another email to support@codesandbox.io from your new email address while referencing your intention to update the account's email address (feel free to include your current account's email address in CC). These will be enough to verify your identity and allow us to update the email address. ## How can I unsubscribe from your mailing lists? Every email we send includes an "Unsubscribe" link on its footer that allows you to unsubscribe from our communications. However, you can also globally unsubscribe from your [Dashboard](https://codesandbox.io/dashboard/): 1. Click your avatar at the top right. 2. Click "User settings". 3. Click "Notifications" 4. Turn off "Send me occasional news and product updates via email". ## What happens if I delete my account? When you delete your CodeSandbox account, all your workspaces and any Sandboxes or repositories of which you are the author will be removed. ## How can I delete my account? If you have an active Pro subscription, make sure you [cancel it](/faq?tab=pro-subscription) before you delete your CodeSandbox account. You can delete your account from your [Dashboard](https://codesandbox.io/dashboard/): 1. Click your avatar at the top right. 2. Click "User settings". 3. Click "Request account deletion". ## How can I exercise my right to be forgotten? Fill out our [Support form](https://codesandbox.io/support#form) by picking "Account Management" and "Data Deletion Request". In the text field, share the account's username and current email address, so we have proof of your ownership. ## How can I convert my legacy Pro subscription to usage-based billing? The easiest way to convert a legacy Pro subscription to usage-based billing is to open our [Upgrade page](https://codesandbox.io/upgrade) and follow the steps to upgrade the relevant workspace. ## How can I edit my billing information? You can edit your billing information from the "Overview" tab of your [Workspace Settings](https://codesandbox.io/t/overview) by clicking on "Edit billing information", under "CodeSandbox Pro". ## How can I add or update a billing contact? Workspace admins can assign a "Billing Manager" role to a workspace member. This role is cumulative with any other permission levels. Billing Managers will receive communications about billing and be able to manage the subscription. An admin can assign a Billing Manager from the "Overview" tab of your [Workspace Settings](https://codesandbox.io/t/overview): 1. In the "Workspace members" list, click the `...` shown at the right of the corresponding username. 2. Click "Manage membership". 3. Tick the "Billing Manager" checkbox and save. ## I'm having problems with my payment - how should I proceed? First, check if the payment method associated with your subscription has expired or is facing any issues. You can check or edit your payment methods from the "Overview" tab of your [Workspace Settings](https://codesandbox.io/t/overview) by clicking on "Edit billing information", under "CodeSandbox Pro". If everything seems to be in order but you're still having issues with the payment, fill out our [Support form](https://codesandbox.io/support#form) by picking "Pro Subscriptions" and "Payment Problems". This will ensure we prioritize your request. ## Can I change my subscription? Yes, you can upgrade or downgrade your plan at any time from the settings page. ## Can I keep my legacy per-user Pro plan? Absolutely! You can choose to keep your legacy Pro plan until further notice. In case we require any change to your subscription in the future, rest assured that we will give you two months’ notice so you can accommodate the changes. If you wish to upgrade, follow the steps shown in our [upgrade flow](https://codesandbox.io/upgrade). ## How can I view my invoices? All your invoices will be automatically sent to the email address associated with your subscription. If, for some reason, you do not have access to those emails, you can request these invoices manually: 1. Fill out our [Support form](https://codesandbox.io/support#form) by picking "Pro Subscriptions" and "More Information". 2. In the text field, provide details about the subscription and additional information that serves as proof of your association to it (transaction ID, last four digits of credit card, date and amount of the last charge). 3. Submit the request. Our Support team will analyze the request and get back to you. ## What happens if I cancel my Pro subscription? When you cancel your CodeSandbox Pro subscription, it will be marked for cancellation at the end of your current billing period. This means you can keep using your Pro benefits until that date, after which the Pro subscription will not be renewed. ## How can I cancel my Pro subscription? You can cancel your Pro subscription from the "Overview" tab of your [Workspace Settings](https://codesandbox.io/t/overview), by clicking on "Cancel Subscription", under "CodeSandbox Pro". ## How can I get a refund? As specified in our [Terms of Service](https://codesandbox.io/legal/terms), we typically do not offer refunds. However, users in the EU or Turkey can [request](https://codesandbox.io/support#form) a refund within 14 days of their initial purchase. Please note that the refund option is no longer available if you've used up to 50 credits after your Pro subscription or add-on.