This message was deleted.
# general
s
This message was deleted.
w
It looks like you are using the PULUMI_ACCESS_TOKEN environment variable instead of
pulumi login
to authenticate to pulumi. If you
echo $PULUMI_ACCESS_TOKEN
does it contain a valid Pulumi access token?
b
Yes sr, when I ran
echo $PULUMI_ACCESS_TOKEN
got
pul-4c78f0241
and the rest of the token
When I ran
I got
In this case I deleted the
PULUMI_ACCESS_TOKEN
from my environment variables 😞
w
Are you able to login to the web console directly?
To me it looks like app.pulumi.acmecorp.com is not pointed at a pulumi (I’m assuming you have a self-hosted pulumi installation or redirected in some way - as opposed to going directly to app.pulumi.com)
b
Yes I can login to the website and created again the token 🙂
I tried running
pulumi login <https://app.pulumi.com>
and got this
I had the latest version but a downgrade the version to check if the issue was that but I have the same problem 😞
w
what happens if you do not pass the URL to
pulumi login
- so just enter
pulumi login
BTW, I was able to recreate the problem by passing the URL in the pulumi login. Ahhh - but if I do
pulumi login <https://api.pulumi.com>
it works - Note the api instead of app .pulumi.com
b
Awesome!! I can login by the terminal, thanks Mitch
w
sorry - I didn’t notice the app vs api thing earlier. 🙂
b
but when I ran the
pulumi stack init
it asked me the token and I have the same issue
Copy code
pulumi stack init
Logging in using access token from PULUMI_ACCESS_TOKEN
error: getting user info from <https://app.pulumi.com/sadmanrock>: unmarshalling response object: invalid character '<' looking for beginning of value
w
and you did
pulumi login
100 Views