Skip to content

[Bug]: Unhandled exception. CarbonAware.Exceptions.ConfigurationException: No data sources are configured #426

Closed
@jacksorjacksor

Description

@jacksorjacksor

Contact Details

[email protected]

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 from outputPath
  • 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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions