Skip to content

Errror 500 after dispatch a job in laravel 7 #26

Closed
@titosobabas

Description

@titosobabas

I'm recieving the next error 500:

The principal (user or service account) lacks IAM permission \"cloudtasks.tasks.create\" for the resource \"projects\/myproject\/locations\/us-central1\/queues\/cuentas\" (or the resource may not exist).", "code": 7, "status": "PERMISSION_DENIED

I have created a service account

image

Also, i have generated a json file

image

Then, i have added ENV variable

GOOGLE_APPLICATION_CREDENTIALS=/var/www/html/credentials/cloudtasksaularun.json

My full .env is:

QUEUE_CONNECTION=cloudtasks
STACKKIT_CLOUD_TASKS_PROJECT=xxxxxxxxxxxxxxxxx
STACKKIT_CLOUD_TASKS_LOCATION=us-east1
STACKKIT_CLOUD_TASKS_HANDLER=https://xxxxxxxxxxxxxxxxxx/handle-task
STACKKIT_CLOUD_TASKS_QUEUE=cuentas
STACKKIT_CLOUD_TASKS_SERVICE_EMAIL=cloudtasksaularun@xxxxxxxxxxxxxxxx.iam.gserviceaccount.com
GOOGLE_APPLICATION_CREDENTIALS=/var/www/html/credentials/cloudtasksaularun.json

And i have created cuentas queue inside my Google SDK into my project

image

Finally, i have created a new folder where i'd save the json service account at this level:

image

Can you help me to know what i did wrong in order to fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions