Closed
Description
Contact Details
What happened?
First attempt at running .\caw.exe -h
(as per docs) and received error message.
Prior actions:
- Cloned repo
- Ran
dotnet publish ./src/CarbonAware.CLI/src/CarbonAware.CLI.csproj -c Release -o [outputPath]
- Ran
.\ caw.exe -h
fromoutputPath
- Error!
Full error log:
CarbonAwareSdk .\caw.exe -h
Unhandled exception. CarbonAware.Exceptions.ConfigurationException: No data sources are configured
at CarbonAware.DataSources.Configuration.ServiceCollectionExtensions.AddDataSourceService(IServiceCollection services, IConfiguration configuration) in D:\OneDriveFolders\OneDrive\Documents\Coding\carbon-aware-sdk\src\CarbonAware.DataSources\CarbonAware.DataSources.Registration\Configuration\ServiceCollectionExtensions.cs:line 80
at GSF.CarbonAware.Configuration.ServiceCollectionExtensions.AddEmissionsServices(IServiceCollection services, IConfiguration configuration) in D:\OneDriveFolders\OneDrive\Documents\Coding\carbon-aware-sdk\src\GSF.CarbonAware\src\Configuration\ServiceCollectionExtensions.cs:line 24
at Program.<Main>$(String[] args) in D:\OneDriveFolders\OneDrive\Documents\Coding\carbon-aware-sdk\src\CarbonAware.CLI\src\Program.cs:line 31
at Program.<Main>(String[] args)
client
CLI
Relevant log output
CarbonAwareSdk .\caw.exe -h
Unhandled exception. CarbonAware.Exceptions.ConfigurationException: No data sources are configured
at CarbonAware.DataSources.Configuration.ServiceCollectionExtensions.AddDataSourceService(IServiceCollection services, IConfiguration configuration) in D:\OneDriveFolders\OneDrive\Documents\Coding\carbon-aware-sdk\src\CarbonAware.DataSources\CarbonAware.DataSources.Registration\Configuration\ServiceCollectionExtensions.cs:line 80
at GSF.CarbonAware.Configuration.ServiceCollectionExtensions.AddEmissionsServices(IServiceCollection services, IConfiguration configuration) in D:\OneDriveFolders\OneDrive\Documents\Coding\carbon-aware-sdk\src\GSF.CarbonAware\src\Configuration\ServiceCollectionExtensions.cs:line 24
at Program.<Main>$(String[] args) in D:\OneDriveFolders\OneDrive\Documents\Coding\carbon-aware-sdk\src\CarbonAware.CLI\src\Program.cs:line 31
at Program.<Main>(String[] args)
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done