This message was deleted.
# atlantis-community
s
This message was deleted.
s
I'm able to make a cURL request from my local. And it absolutely works.
p
401 is not authorized most of the time
how did you pass the config to atlantis?
s
Hey @PePe Amengual, 1. I'm using this module files available online to deploy on AWS Fargate. 2. Have created Bitbucket->Repository settings->Access Token. (Link) 3. Added the token under ATLANTIS_BITBUCKET_TOKEN in my main.tf
p
enable debug in atlantis and check the logs again
see if you find a new error
s
> enable debug in atlantis and check the logs again Okay @PePe Amengual, Now Log level is set to
debug
. & deployed. Can't see any new errors. Getting the same
401 error.
There is a new debug msg line & here it is.
Copy code
{
  "level": "debug",
  "ts": "2023-11-30T05:22:09.435Z",
  "caller": "metrics/debug.go:52",
  "msg": "timer",
  "json": {
    "name": "atlantis.cmd.autoplan.execution_time",
    "value": 0.486877634,
    "tags": {},
    "type": "timer"
  }
}
p
can you run the same command you tested the token in the Atlantis instance , manually ?
s
Hey @PePe Amengual Thanks for the quick support. Really appreciate. I found the issue. 🎉 It was suppose to be App passwords inside my bitbucket account needs to be created & mapping it to
ATLANTIS_BITBUCKET_TOKEN
. But i was doing the other way wrong by mapping my user token.
p
I'm glad to hear