mirror of
https://github.com/NdoleStudio/httpsms.git
synced 2026-04-27 03:45:52 +03:00
[GH-ISSUE #585] Cannot make events tasks work on GCP #62
Labels
No labels
In Review
documentation
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/httpsms#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fullbright on GitHub (Dec 4, 2024).
Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/585
Hello,
First of all, thanks for the amazing work with the HttpSMS app.
I have deployed the HttpSMS app on GCP.
Here is my environment variables values (I redacted some parts)
Attempt 1:
EVENTS_QUEUE_TYPE=emulator
EVENTS_QUEUE_NAME=events-local
EVENTS_QUEUE_ENDPOINT=http://localhost:8000/v1/events
Attempt 2:
EVENTS_QUEUE_TYPE=gcp_tasks
EVENTS_QUEUE_NAME=
EVENTS_QUEUE_ENDPOINT=projects/[PROJECT_ID]/locations/[LOCATION_ID]/queues/send-sms
Attempt 3:
EVENTS_QUEUE_TYPE=gcp_tasks
EVENTS_QUEUE_NAME=
EVENTS_QUEUE_ENDPOINT=https://cloudtasks.googleapis.com/v2/projects//locations/europe-west1/queues/
When I try to send a message, I get this error message:
What I tried:
how can I setup the queue?
let me know if you need more input.
@AchoArnold commented on GitHub (Dec 5, 2024):
Use this environment settings.
The URL
https://example.com/v1/eventscannot belocalhostsince it has to be accessible from the internet.You can remove the
EVENTS_QUEUE_TYPE=gcp_tasksenv variable.You also have to ensure that the service account in
FIREBASE_CREDENTIALShas permissions to create cloud tasks You can ask chatGPT on how to do this.See
github.com/NdoleStudio/httpsms@be58689d8f/api/pkg/di/container.go (L425C1-L434C1)Btw, You DO NOT have to use GCP by default the application works with the emulator and it doesn't require GCP.