Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"config.json file is missing" #22

Closed
nickshepherd1983 opened this issue Dec 15, 2023 · 4 comments
Closed

"config.json file is missing" #22

nickshepherd1983 opened this issue Dec 15, 2023 · 4 comments

Comments

@nickshepherd1983
Copy link

Hello,

Firstly, thank you for all the work you have done building out the Templates and the CLI; they make the life of me and my development team much better.

I gave your instructions a try today, but I ran into a small snag, and I'm hoping you'll be able to help out.

When I run "dotnet new auth0blazorserver -o MyBlazorServerApp" from powershell I recive the folllowing exeption

>dotnet registration/cli-wrapper.dll
Auth0 CLI is installed.
ERROR: ************

=== error

Γû╕ config.json file is missing

*******************
ERROR: ************
The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.

Registration output: -------

*******************
Auth0 domain:
Client ID:
Audience:
Unhandled exception. System.Exception:
=== error

Γû╕ config.json file is missing

at CliWrapper.RunCommand(String command, String args) in /Users/andreachiarelli/Documents/Git/auth0-dotnet-templates/cli-wrapper/CliWrapper.cs:line 181
at CliWrapper.GetCurrentDomain() in /Users/andreachiarelli/Documents/Git/auth0-dotnet-templates/cli-wrapper/CliWrapper.cs:line 240
at CliWrapper.GetCurrentDomain(RegistrationData registrationData) in /Users/andreachiarelli/Documents/Git/auth0-dotnet-templates/cli-wrapper/CliWrapper.cs:line 229
at CliWrapper.UpdateConfigFiles(RegistrationData registrationData) in /Users/andreachiarelli/Documents/Git/auth0-dotnet-templates/cli-wrapper/CliWrapper.cs:line 101
at Program.<main>$(String[] args) in /Users/andreachiarelli/Documents/Git/auth0-dotnet-templates/cli-wrapper/Program.cs:line 13
at Program.<main>(String[] args)
Command failed.

Post action failed.
Manual instructions: Run './register-with-auth0.cmd'
Actual command: register-with-auth0.cmd


For details on the exit code, refer to https://aka.ms/templating-exit-codes#105

I have the latest CLI installed and I am able to use it if I login my session.

Any ideas?

@Kerpackie
Copy link

Can confirm I am encountering the same issue.

Using Latest CLI Version installed via scoop, and it is happening with all template types.

@andychiare
Copy link
Contributor

Hey @Kerpackie,
I think this is an issue with the Auth0 CLI installation.
You should check if the PATH environment variable includes the folder containing your Auth0 CLI executable, and if the HOME environment variable exists and its value is the path to the path to your Auth0 CLI executable as well.

Check out this thread for more details.

@andychiare
Copy link
Contributor

A PR on the Auth0 CLI documentation is open.

@andychiare
Copy link
Contributor

Manual installation instructions updated in the Auth0 CLI docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants