dart_edge icon indicating copy to clipboard operation
dart_edge copied to clipboard

Not working as per superbase Docs

Open venkata-reddy-dev opened this issue 2 years ago • 6 comments

I have fallowed the docs of superbase to run dart edge in superbase platform. but even hello world function also not working

doc: https://supabase.com/docs/guides/functions/dart-edge

Screenshot 2023-11-07 at 7 35 07 PM

venkata-reddy-dev avatar Nov 09 '23 07:11 venkata-reddy-dev

The function is being served on: http://127.0.0.1:54321/functions/v1

but your url is missing the /v1.

yoohoomedia avatar Nov 28 '23 01:11 yoohoomedia

https://github.com/invertase/dart_edge/issues/52#issuecomment-1834515475 helped me as a temporary fix

venkata-reddy-dev avatar Dec 19 '23 06:12 venkata-reddy-dev

Finally worked after defining edge.yml configuration as below.

supabase:
  functions:
    task1: 'lib/task1.dart'
    task2: 'lib/task2.dart'
  projectPath: "supabase"

venkata-reddy-dev avatar Dec 20 '23 04:12 venkata-reddy-dev

I feel need documentation for better clarity. otherwise new users of this library will get confuse.

venkata-reddy-dev avatar Dec 20 '23 04:12 venkata-reddy-dev

I was getting confused already to see that I´m following every doc-tutorial step and getting Function not found. Impostor syndrome, they call it sometimes. At least until I encountered several issues discussing the same subject.

alaincruz06 avatar Dec 21 '23 03:12 alaincruz06

I was getting confused already to see that I´m following every doc-tutorial step and getting Function not found. Impostor syndrome, they call it sometimes. At least until I encountered several issues discussing the same subject.

Maybe this is a duplicate of #52

henry2man avatar May 13 '24 15:05 henry2man