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

gorgeous-match-99659

04/26/2021, 2:16 PM
Hi all, Anyone seen this error since going to Pulumi 3.1.0 Windows10 new project
error: could not get cloud url: could not load current project: project is missing a 'name' attribute
p

proud-pizza-80589

04/26/2021, 2:19 PM
my guess, check the package.json file that it has a name field
b

broad-dog-22463

04/26/2021, 2:22 PM
Hi @gorgeous-match-99659 You are just running
pulumi new
right?
g

gorgeous-match-99659

04/26/2021, 2:23 PM
yep example
pulumi new azure-csharp -s org-name/appservice/dev --force
b

broad-dog-22463

04/26/2021, 2:24 PM
why the
--force
?
g

gorgeous-match-99659

04/26/2021, 2:24 PM
the directory was not empty
b

broad-dog-22463

04/26/2021, 2:24 PM
got it
ok, let me spin up a windows machine and see what we can find here
g

gorgeous-match-99659

04/26/2021, 2:25 PM
install came from chocolatey fyi.
b

broad-dog-22463

04/26/2021, 2:25 PM
👌
vwery useful to know!
g

gorgeous-match-99659

04/26/2021, 2:31 PM
my current workaround is create a Pulumi.Yaml file with the name of the project
and run command and it works
b

broad-dog-22463

04/26/2021, 2:32 PM
can you try with any other name? I have a feeling you may have a name (project / stack) collision and the CLI will default to ""
g

gorgeous-match-99659

04/26/2021, 2:39 PM
so created new project via pulumi app, created new folder webapppulumi, cd in working directory, Ran the following
pulumi new azure-csharp -s org-name/webapppulumi/dv
got the same error
b

broad-dog-22463

04/26/2021, 3:37 PM
@gorgeous-match-99659 have you changed anything regarding PULUMI_HOME or where it stores credentials etc?
I can't replicate this but I can see in our code it happens when Pulumi isn't able to understand what backend it needs to talk to
I would suggest
pulumi logout
then
pulumi login
again to ensure that the details are set correctly
g

gorgeous-match-99659

04/26/2021, 3:45 PM
ok 🙂
Ok logout and login does not fix it, but i am still able to work. I have no environment variables set
so no PULUMI_HOME
b

broad-dog-22463

04/26/2021, 3:50 PM
ok, that's weird that this is acting like ths
if you try a new probject in a new folder without
--force
can you tell me if you get the same issue?
g

gorgeous-match-99659

04/27/2021, 3:04 PM
i will look into this
i get the same issue without --force