Hi community. Does soemone knows why I am getting ...
# general
b
Hi community. Does soemone knows why I am getting this error when doing
pulumi login
against a specific organization?
Copy code
pulumi login -c <https://app.pulumi.com/myorg>
Logging in using access token from PULUMI_ACCESS_TOKEN
error: problem logging in: getting user info from <https://app.pulumi.com/myorg>: unmarshalling response object: invalid character '<' looking for beginning of value
I have configured as environment variable in my shell the
PULUMI_ACCESS_TOKEN
variable, but it seems that the response i got has to do with this comment in this issue https://github.com/pulumi/pulumi/issues/3194#issuecomment-892976293
g
Try removing the
/myorg
from the login url.
b
Hi @gentle-diamond-70147 i put
myorg
because I want to login to an organization I was invited. However if I remove it, I got a similar output
Copy code
> pulumi login -c <https://app.pulumi.com/>
Logging in using access token from PULUMI_ACCESS_TOKEN
error: problem logging in: getting user info from <https://app.pulumi.com>: unmarshalling response object: invalid character '<' looking for beginning of value
If I just use
pulumi login
i just will be redirected to be authorized in my cli to my default organization. In this way:
> pulumi login
Logging in using access token from PULUMI_ACCESS_TOKEN
Logged in to <http://pulumi.com|pulumi.com> as bgarcial (<https://app.pulumi.com/bgarcial>)
I was invited to my company organization and that is why I am using
-c
flag, to pass the URL of my organization, but I got that error.
g
pulumi login
does not support logging directly into your company org, because pulumi user accounts can have multiple IdPs associated with them, and users can belong to multiple organizations.
Also (and yes, this is confusing), you must login to the API endpoint, not the Console endpoint. Sorry, I should have noticed this on your first message. So you need to do
pulumi login <https://api.pulumi.com>
.