You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Supabase CLI fails to deploy Edge Functions when the project path contains special characters (#). The error message suggests a directory issue, but the actual problem is the special characters in the path.
To Reproduce
Steps to reproduce the behavior:
Create a project directory containing special characters (e.g., /Users/username/Documents/#project/#app/)
Initialize a Supabase project in this directory
Create an Edge Function: supabase functions new my-function
Create a simple Edge Function in index.ts
Try to deploy using: supabase functions deploy my-function --project-ref [your-project-ref]
Observe the deployment error
Expected behavior
Either:
The deployment should work correctly with special characters in the path
Or the CLI should provide a clear error message indicating that special characters in the path are not supported
Screenshots
Error output:
Error output searchable:
supabase functions deploy [my-function] --no-verify-jwt --project-ref [my-project-ref]
Bundling Function: [my-function]
Error 'Is a directory (os error 21)' contains boxed error of unknown type:
Os { code: 21, kind: IsADirectory, message: "Is a directory" }
Error: failed to create the graph
Caused by:
Is a directory (os error 21)
error running container: exit 1
Try rerunning the command with --debug to troubleshoot the error.
System information
OS Version: macOS
CLI Version: 1.219.2
Docker Version: Latest
Additional context
Moving the project to a path without special characters resolves the issue
The error occurs in the Deno bundler when trying to access the function's index.ts file
This is a path handling issue that affects deployments on macOS when the project path contains '#' characters
The text was updated successfully, but these errors were encountered:
I can confirm I've been able to reproduce, but with only two specials chars so far: # and ?, but other specials characters such as $ or % work well. Which lead me to think there is something on with shell path escaping.
Describe the bug
The Supabase CLI fails to deploy Edge Functions when the project path contains special characters (#). The error message suggests a directory issue, but the actual problem is the special characters in the path.
To Reproduce
Steps to reproduce the behavior:
/Users/username/Documents/#project/#app/
)supabase functions new my-function
supabase functions deploy my-function --project-ref [your-project-ref]
Expected behavior
Either:
Screenshots
Error output:
Error output searchable:
System information
Additional context
The text was updated successfully, but these errors were encountered: