django-cloud-tasks icon indicating copy to clipboard operation
django-cloud-tasks copied to clipboard

Question: RecursionError: maximum recursion depth exceeded while decoding a JSON array from a unicode string

Open raulgzm opened this issue 1 year ago • 4 comments

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!

raulgzm avatar Dec 05 '23 13:12 raulgzm

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.

Tupeco avatar Jan 19 '24 22:01 Tupeco

Hello there! I have specified GCP_LOCATION = "us-east1" in my settings.py and still having this issue. Any thoughts?

jc15100 avatar Feb 08 '24 16:02 jc15100

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!

jc15100 avatar Feb 08 '24 16:02 jc15100

And we also need to add the IAM Service Account Credentials API

jc15100 avatar Feb 08 '24 16:02 jc15100