cli: Cannot use `supabase functions download`
Canβt use supabase functions download <functionname>. Simply get Eszip extracted successfully inside path /home/deno Not sure why itβd download there, but it is not downloaded at all. Nothing is actually downloaded to the /home/deno folder, nor to the supabase/functions/ folder as I would expect. /home/deno doesnt exist and if i were to make it, I get the same error still. If I install deno, the error persists the exact same.
To Reproduce Steps to reproduce the behavior:
- install supabase cli and docker desktop.
- use
supabase loginto authenticate - Can but dont have to use
supabase link - Run
supabase functions download <functionname>
Expected behavior Downloaded source code to a folder somewhere like the documentation says it would.
System information
I ran supabase functions download functionname --create-ticket and it spit out the same error: Eszip extracted successfully inside path /home/deno. ?
- Tried on Windows WSL
- Tried on Mac OS
- Supabase CLI v1.136.3
- Docker Desktop 4.27.1
Debug flag Using debug flag:
Supabase CLI 1.136.3
Downloading <function_name>
2024/02/04 14:02:30 DNS Start: {Host:api.supabase.com}
2024/02/04 14:02:30 DNS Done: {Addrs:[{IP:172.67.172.49 Zone:} {IP:<IP> Zone:} {IP:<ipv6> Zone:} {IP:<IPv6>Zone:}] Err:<nil> Coalesced:false}
2024/02/04 14:02:30 Connect Start: tcp 172.67.172.49:443
2024/02/04 14:02:30 Connect Done: tcp 172.67.172.49:443
2024/02/04 14:02:30 TLS Start
2024/02/04 14:02:30 TLS Done: {Version:772 HandshakeComplete:true DidResume:false CipherSuite:4865 NegotiatedProtocol:h2 NegotiatedProtocolIsMutual:true ServerName:api.supabase.com PeerCertificates:[0xc00040b600 0xc00040bb80 0xc00040c100 0xc00040c680] VerifiedChains:[[0xc00040cc00 0xc00040d180 0xc00040d700]] SignedCertificateTimestamps:[] OCSPResponse:[48 130 1 85 10 1 0 160 130 1 78 48 130 1 74 6 9 43 6 1 5 5 7 48 1 1 4 130 1 59 48 130 1 55 48 129 190 161 52 48 50 49 11 48 9 6 3 85 4 6 19 2 85 83 49 22 48 20 6 3 85 4 10 19 13 76 101 116 39 115 32 69 110 99 114 121 112 116 49 11 48 9 6 3 85 4 3 19 2 69 49 24 15 50 48 50 52 48 50 48 49 48 51 51 50 48 48 90 48 117 48 115 48 75 48 9 6 5 43 14 3 2 26 5 0 4 20 239 144 1 112 221 88 143 42 101 30 33 81 31 220 208 187 111 81 43 171 4 20 90 243 237 43 252 54 194 55 121 185 82 48 234 84 111 207 85 203 46 172 2 18 4 52 217 5 193 95 6 36 206 83 231 214 129 48 136 97 98 51 128 0 24 15 50 48 50 52 48 50 48 49 48 51 51 50 48 48 90 160 17 24 15 50 48 50 52 48 50 48 56 48 51 51 49 53 56 90 48 10 6 8 42 134 72 206 61 4 3 3 3 104 0 48 101 2 48 3 182 245 56 57 83 245 91 170 152 206 0 18 246 13 203 209 97 83 81 81 185 83 158 65 91 182 184 94 111 221 236 196 179 191 171 66 222 147 78 96 156 203 216 55 204 195 59 2 49 0 242 61 27 71 142 176 254 175 94 215 179 207 126 200 0 41 239 104 225 222 120 225 133 115 56 8 25 209 89 57 131 116 26 140 153 80 102 207 182 114 223 106 133 139 234 146 82 246] TLSUnique:[] ekm:0x1257ba0}
2024/02/04 14:02:30 Sent Header: :authority [api.supabase.com]
2024/02/04 14:02:30 Sent Header: :method [GET]
2024/02/04 14:02:30 Sent Header: :path [/v1/projects/<project_ref>/functions/<function_name>/body]
2024/02/04 14:02:30 Sent Header: :scheme [https]
2024/02/04 14:02:30 Sent Header: authorization [Bearer <redacted>]
2024/02/04 14:02:30 Sent Header: user-agent [SupabaseCLI/1.136.3]
2024/02/04 14:02:30 Sent Header: accept-encoding [gzip]
2024/02/04 14:02:30 Send Done
2024/02/04 14:02:30 Recv First Byte
2024/02/04 14:02:30 Sent Header: Host [api.moby.localhost]
2024/02/04 14:02:30 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/02/04 14:02:30 Send Done
2024/02/04 14:02:35 Recv First Byte
2024/02/04 14:02:35 Sent Header: Host [api.moby.localhost]
2024/02/04 14:02:35 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/02/04 14:02:35 Sent Header: Content-Length [322]
2024/02/04 14:02:35 Sent Header: Content-Type [application/json]
2024/02/04 14:02:35 Send Done
2024/02/04 14:02:35 Recv First Byte
2024/02/04 14:02:35 Sent Header: Host [api.moby.localhost]
2024/02/04 14:02:35 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/02/04 14:02:35 Sent Header: Content-Length [147]
2024/02/04 14:02:35 Sent Header: Content-Type [application/json]
2024/02/04 14:02:35 Send Done
2024/02/04 14:02:35 Recv First Byte
2024/02/04 14:02:35 Sent Header: Host [api.moby.localhost]
2024/02/04 14:02:35 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/02/04 14:02:35 Sent Header: Content-Length [1998]
2024/02/04 14:02:35 Sent Header: Content-Type [application/json]
2024/02/04 14:02:35 Send Done
2024/02/04 14:02:35 Recv First Byte
2024/02/04 14:02:35 Sent Header: Host [api.moby.localhost]
2024/02/04 14:02:35 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/02/04 14:02:35 Sent Header: Content-Length [0]
2024/02/04 14:02:35 Sent Header: Content-Type [text/plain]
2024/02/04 14:02:35 Send Done
2024/02/04 14:02:35 Recv First Byte
2024/02/04 14:02:35 Sent Header: Host [api.moby.localhost]
2024/02/04 14:02:35 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/02/04 14:02:35 Send Done
2024/02/04 14:02:35 Recv First Byte
Eszip extracted successfully inside path /home/deno
2024/02/04 14:02:35 Sent Header: Host [api.moby.localhost]
2024/02/04 14:02:35 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/02/04 14:02:35 Send Done
2024/02/04 14:02:35 Recv First Byte
that is the full debug output. Seems like it ends abruptly.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (6 by maintainers)
This worked but can someone please specify where the downloaded file goes?
Having the same issues. Any idea of a fix?
Could you verify if
npx supabase@beta functions downloadfixes the problem?I will leave this issue open for a few days just in case.
Hope so too! pls update us if you do get it fixed π
I managed to reproduce this. Will post an update soon
Has there been a solution yet? Is this affecting everyone or just some?
Even a download button on the dashboard (edge functions) would be a great intermediate solution.
Could you try
supabase functions download <name> --legacy-bundle?We updated the download logic in v1.123.3 so functions deployed using earlier versions of cli would have to specify
--legacy-bundleflag when downloading from newer cli.Can confirm, it works! Thanks for the effort π
This worked for me too, thank you!
Any chance a feature request could be put in to specify where the download goes to?
Awesome, this works!
Hey @sweatybridge
Version of OS: Windows 11 Pro 23H2 Version of CLI: 1.153.1 Version of Docker: Docker Desktop 4.28.0
supabase services
I get the same output as most people here using --debug.
Let me know if there is anything else I can do!
@Nepomacs does it happen with newly deployed function? if not, do you remember if the problematic function was deployed from windows or mac?
I havenβt been able to reproduce this issue. Could you report the system information to see if we can spot any pattern?
System information
supabase servicescommand]Created a support ticket with Supabase support today. Really hoping this gets fixed!
same