https://pulumi.com logo
#general
Title
# general
b

bright-architect-36509

09/10/2019, 5:19 PM
Hi guys, after doing
pulumi login --local
I'm not able to login to the pulumi backend anymore. I tried
pulumi login
,
pulumi login <http://app.pulumi.com|app.pulumi.com>
. I'm getting this error
Copy code
error: problem logging in: getting user info from <http://app.pulumi.com>: unmarshalling response object: invalid character '<' looking for beginning of value
b

broad-dog-22463

09/10/2019, 5:37 PM
Can you run ‘Pulumi whoami -v’
And confirm you are logged into local backend
If so, then you should be able to “Pulumi logout” from that backend
b

bright-architect-36509

09/10/2019, 5:43 PM
yes it worked! thanks🙌
c

clever-sunset-76585

09/10/2019, 6:44 PM
If you are trying to login to the Pulumi Managed Backend, you need to use the api URL and not the console URL. So it should be
pulumi login <https://api.pulumi.com>
. Notice that it is
api
and not
app
. There is an issue open to make the error message more helpful: https://github.com/pulumi/pulumi/issues/3194
👍 1
b

bright-architect-36509

09/10/2019, 9:36 PM
well the issue was I had not logged out of
local
so I wasn't able to login to pulumi backend... Moreover, the [login page](https://www.pulumi.com/docs/reference/cli/pulumi_login) says it should be
<http://app.pulumi.com|app.pulumi.com>
(
app
instead of
api
) so this create MORE confusion 😛
c

clever-sunset-76585

09/10/2019, 10:08 PM
Moreover, the [login page](https://www.pulumi.com/docs/reference/cli/pulumi_login) says it should be
<http://app.pulumi.com|app.pulumi.com>
Do you mean this line?
By default, this will log into <http://app.pulumi.com|app.pulumi.com> ...
If so, the page is correct, but a bit unclear. By specifying the api.pulumi.com URL as the backend for the CLI, you will be logged-into your account that you have on app.pulumi.com. But I can see how that is confusing. I’ll add an issue to clarify that.
💯 1
12 Views