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

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

Open
raulgzm opened this issue Dec 5, 2023 · 4 comments

Comments

@raulgzm
Copy link

raulgzm commented Dec 5, 2023

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!

@Tupeco
Copy link

Tupeco commented Jan 19, 2024

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.

@jc15100
Copy link

jc15100 commented Feb 8, 2024

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

@jc15100
Copy link

jc15100 commented Feb 8, 2024

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
Copy link

jc15100 commented Feb 8, 2024

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

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