supabase / edge-runtime

A server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services.
MIT License
640 stars 55 forks source link

Strange Error regarding import_map.json in the new v1.53.4 #363

Closed danielxpander closed 1 month ago

danielxpander commented 3 months ago

Here's some deployment message I get when it's failing: Status: Downloaded newer image for ghcr.io/supabase/edge-runtime:v1.53.4 Stopping containers... failed to create volume: Error response from daemon: create supabase/functions/import_map.json: "supabase/functions/importmap.json" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9.-]" are allowed. If you intended to pass a host directory, use absolute path

I didn't change the import map json Thank you

laktek commented 3 months ago

@danielxpander I guess you're running Edge Runtime via Supabase CLI? What's the CLI version?

danielxpander commented 3 months ago

Yes, supabase/setup-cli@v1 with: version: latest and it's being run from github actions

laktek commented 3 months ago

@danielxpander This issue is fixed in CLI https://github.com/supabase/cli/pull/2420. A stable release would be made in the next 24-48 hours.

sweatybridge commented 3 months ago

Stable release is out. Feel free to close it if the fix is working for you.

jad-eljerdy commented 3 months ago

Hey,

Getting a similar error

failed to create volume: Error response from daemon: create supabase_edge_runtime_<no value>: "supabase_edge_runtime_<no value>" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path

I'm using CLI version 1.176.10

Might be a docker issue ? Couldn't find a reference to the issue anywhere. Let me know if I should create a separate issue for this.

sweatybridge commented 3 months ago

@jad-eljerdy is the error from functions serve or supabase start?

Could you also show me the value of project_id field in supabase/config.toml?

danielxpander commented 3 months ago

@jad-eljerdy is the error from functions serve or supabase start?

Could you also show me the value of project_id field in supabase/config.toml?

Supabase start

sweatybridge commented 3 months ago

@danielxpander are you still running into this on latest cli? Your original problem is different from that reported by @jad-eljerdy and should be already resolved in latest release.

nyannyacha commented 1 month ago

We are closing this issue for housekeeping.

This issue does not appear to be reproducible in the current version. Please feel free to reopen this issue if you have the same problem again.