Skip to content

Instantly share code, notes, and snippets.

@Chukslord1
Created April 5, 2021 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chukslord1/17add481d7511b1b24ae33f8ef87c99b to your computer and use it in GitHub Desktop.
Save Chukslord1/17add481d7511b1b24ae33f8ef87c99b to your computer and use it in GitHub Desktop.
create_api_key

For your python app to interact with fauna, you need to create an API key for the database. To do this, go to the security tab on the left side of your screen.

Click on New Key to generate a secret key. To create the key, you will need to provide a name for your key and save it. Your secret key will now be displayed to you, as seen in the image below. Copy and paste it somewhere you can easily retrieve it.

@Moka51
Copy link

Moka51 commented Nov 18, 2021

Hello!

Check this issue,

raise Unauthorized(request_result)
faunadb.errors.Unauthorized: ErrorData(code='unauthorized', description='Unauthorized', position=None, failures=None)

Its seen to be about the region server , always fail.

Thanks

@Chukslord1
Copy link
Author

Chukslord1 commented Nov 18, 2021

client = FaunaClient(secret="fnAETH3xELAAxp99WYA-8_xMLqFM1uMTfAwZYmZO", domain="db.eu.fauna.com",

#NOTE: Use the correct domain for your database's Region Group.
port=443,

scheme="https")

@Chukslord1
Copy link
Author

Hello!

Check this issue,

raise Unauthorized(request_result) faunadb.errors.Unauthorized: ErrorData(code='unauthorized', description='Unauthorized', position=None, failures=None)

Its seen to be about the region server , always fail.

Thanks

Check my recent comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment