mirror of
https://github.com/NdoleStudio/httpsms.git
synced 2026-04-26 19:35:50 +03:00
[GH-ISSUE #249] CloudTasks Authenticated Problems #29
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#29
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 @drexhacker on GitHub (Jul 21, 2023).
Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/249
Client
Cloud Tasks Client (with service account)
Environment
ubuntu 22.04 linux on GCE
Go Environment
$ go version
go version go1.20.6 linux/amd64$ go env
Code
Environment Variables
Credentials Code
Client Code
Expected behavior
Expected the Client to use the
PROJECT_IDsupplied by the service account.Actual behavior
But instead it uses an unkown project id
25699032575Additional context
Facing the Same Error on GCE, CloudRun, and Non-Google VMs.
Note: I even created a service account with
Cloud Tasks AdminRole but it still fails.I even queried the Metadata from GCE VM I was using and it returned the the real project-id.
@AchoArnold Please Help
@AchoArnold commented on GitHub (Jul 23, 2023):
Hello @drexhacker
It seems you're re-creating this issue #240
I'm not sure how your setup looks like it seems there's a mistake somewhere. I can't find the ID 25699032575 anywhere in this codebase, Did you use that ID somewhere in your
.envfile?Also the error says
Did you enable the cloud task API?
Alternatively, you can try sending the SMS with the emulator queue
Can you test if everything is okay with the cloud task queue? Try to push something to the queue using the go SDK for google cloud task and see if it works properly.
@bpcsys commented on GitHub (Jul 24, 2023):
@AchoArnold Thanks for the response. First of all that project ID is no where in my setup not even in my gcp account. Also I enabled the API. But let me try the emulator setup.
Thanks Alot Really.
@AchoArnold commented on GitHub (Jul 25, 2023):
Hello @bpcsys
Dit everything work out fine?
@drexhacker commented on GitHub (Jul 26, 2023):
Yeah except messages aren't sent they have mismatched credentials
@AchoArnold commented on GitHub (Jul 26, 2023):
@drexhacker what do you mean by "mismatched credentials"? Which part of the code is throwing the error? Unfortunately I can't debug it without more information