Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.50.4 unusable due to edge functions timeout while caching deps #1012

Closed
evelant opened this issue Apr 13, 2023 · 6 comments
Closed

v1.50.4 unusable due to edge functions timeout while caching deps #1012

evelant opened this issue Apr 13, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@evelant
Copy link

evelant commented Apr 13, 2023

Bug report

  • [ X] I confirm this is a bug with Supabase, not with my own application.
  • [ X] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

edge-functions are unusable on latest versions of the CLI. They time out while caching deps then become totally unavailable until restarted at which point they will time out again.

See issue at edge-runtime for more detail supabase/edge-runtime#44 Also filing it here because I'm not sure if the bug is in cli or the runtime.

To Reproduce

  1. supabase start
  2. call any edge function with more than a handful of deps
  3. observe timeout error while caching deps
  4. observe that all further requests fail instantly

Expected behavior

  1. There should not be a timeout error while caching deps or there should be a mechanism to pre-cache them
  2. If an error/timeout occurs the edge functions should not refuse all further requests

System information

  • OS: macos
  • Browser (if applies) N/A
  • Version of supabase 1.50.4
  • Version of Node.js: 16.19.0

Additional context

@evelant evelant added the bug Something isn't working label Apr 13, 2023
@evelant evelant changed the title v1.50.4 unusable due to functions timeout while caching deps v1.50.4 unusable due to edge functions timeout while caching deps Apr 13, 2023
@evelant
Copy link
Author

evelant commented Apr 18, 2023

@sweatybridge @soedirgo Have you been able to reproduce this? It's blocking me (and others, see the linked issue supabase/edge-runtime#44) from using versions of the supabase cli above 1.49.4. Specifically I was hoping to try out vault but it's not included in the images referenced by the older cli.

@evelant
Copy link
Author

evelant commented Apr 20, 2023

@sweatybridge @soedirgo the supabase cli is still unusable in v1.50.10 due to these bugs. As I detailed above, it appears that if an edge function times out or fails for any reason then the edge functions container becomes completely broken and instantly returns


hyper::Error(User(Service), operation was canceled: connection was not ready
Caused by:
  connection was not ready)

@sweatybridge
Copy link
Contributor

Apologies for the inconvenience caused. I've pinged the functions team to take a look at this once they have some bandwidth.

@laktek laktek self-assigned this May 1, 2023
@laktek
Copy link
Contributor

laktek commented May 19, 2023

@evelant Do you still experience this with the latest CLI release? (1.61.X)

@evelant
Copy link
Author

evelant commented May 19, 2023 via email

@laktek
Copy link
Contributor

laktek commented May 19, 2023

Cool! closing this issue.

@laktek laktek closed this as completed May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants