django-cloud-tasks
django-cloud-tasks copied to clipboard
Question: RecursionError: maximum recursion depth exceeded while decoding a JSON array from a unicode string
When I try to execute a task synchronously I receive this message. Surely I've not configured properly the package. Can you help me to understand better the documentation to run this package on my project?
Currently I have created a queue in GCP with the following name and it setting up in Django:
DJANGO_GOOGLE_CLOUD_TASKS_APP_NAME = "api-backend-default-tasks-queue"
Also, I've added the urls to my project's urls file.
When I try to execute this tasks:
SendWelcomeEmailTask.asap(user_email="xxxxxx@xxxx", activation_key="xxxx")
I've received that error. Can you help me to understand how to get started with the package? Thank yo so much!
I ran into this too.
I had to add GCP_LOCATION into my env.
e.g. GCP_LOCATION=europe-west1
After that I also had to add GCP_SERVICE_ACCOUNT=serviceaccountemail
but that's another issue.
Hello there! I have specified GCP_LOCATION = "us-east1" in my settings.py and still having this issue. Any thoughts?
Hello there! I have specified GCP_LOCATION = "us-east1" in my settings.py and still having this issue. Any thoughts?
Ok, figured it out. It has to be an environment variable. Duh. Thank you!
And we also need to add the IAM Service Account Credentials API