Error checking upload status for id: The dynamic API key has expired. Please don't use dynamic API keys for more than duration of the execution.
But it generates a new one each time?
For more context see here: https://discord.com/channels/564160730845151244/564160731327758347/1340278934528331808
I make it get the dynamic api key from the request header
- i see self-hosted, what version?
- how are you accessing the key?
- the key has an expiry of function's timeout too. make sure its not very less.
maybe also share some sample snippet that can reproduce this behaviour.
- latest (1.6.0)
- just fetching the request headers
- the timeout i haven't touched
one sec lemme get the code
def initialize_services(env, context):
context.log("Setting up Appwrite services")
client = Client()
client.set_endpoint(env['API_ENDPOINT'])
client.set_project(env['PROJECT_ID'])
client.set_key(context.req.headers.get('x-appwrite-key'))
storage = Storage(client)
databases = Databases(client)
try:
context.log("Verifying database and storage access")
databases.list_documents(env['DATABASE_ID'], env['OUTFIT_COLLECTION_ID'], [Query.limit(1)])
storage.list_files(env['UPLOAD_BUCKET_ID'], [Query.limit(1)])
context.log("Service initialization successful")
except AppwriteException as e:
err_msg = f"Service initialization failed: {str(e)}"
context.error(err_msg)
context.log(err_msg)
return context.res.json({"error": err_msg})
return storage, databases```
I'm running Python 3.9
The funciton is triggered on a file creation event in a bucket
code looks ok. how consistent is this issue?
First time it happens in this function
it's happened in another one before where it hung
but that might just be a code problem
Recommended threads
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...