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

Unwanted exception - SupabaseException: supabase_url is required #502

Closed
adityaraute opened this issue Jul 23, 2023 · 2 comments
Closed

Comments

@adityaraute
Copy link

Describe the bug
I copied the 'Initializing' code snippet from Supabase Python docs.
Inserted my URL and API Key as requested.
But I'm still facing an exception.

When trying out snippets from the docs, we should not face any unwanted exceptions.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://supabase.com/docs/reference/python/initializing'
  2. Click on 'copy' button in the code snippet and paste in your Python notebook
  3. Fill in your URL and API Key in the snippet
  4. See error
image

Expected behavior
No exceptions should appear when using code from the docs as it is. If any, then notes should be made in the docs itself.

Screenshots
Pasted above

Desktop (please complete the following information):
Colab notebook
pip install Supabase was run

@devilsaint99
Copy link

Hi @adityaraute, you should create a project by going to https://supabase.com/ you will be redirected to a page where you will get project url and key of your project which you have to use in your code.
Alternatively if you have already created project you can go to settings of project and under API find both url and keys
FYR.
image

@J0
Copy link
Collaborator

J0 commented Sep 8, 2023

Hey @adityaraute,

Thanks for the query! As @devilsaint99 mentioned you'll need to copy over the appropriate supabase URL key from settings > API

I've also tested it locally and there should be no exceptions thrown on the latest version. Do let me know if this is not the case for you though.

Thanks devilsaint99 for jumping in. Appreciate your detailed response!

Going to close but feel free to re-open if the issue persists

Thanks!

@J0 J0 closed this as completed Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants