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

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

Open
1 task done
jacksorjacksor opened this issue Dec 4, 2023 · 6 comments
Labels
bug Something isn't working
Milestone

Comments

@jacksorjacksor
Copy link
Contributor

jacksorjacksor commented Dec 4, 2023

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
@jacksorjacksor jacksorjacksor added the bug Something isn't working label Dec 4, 2023
@danuw
Copy link
Collaborator

danuw commented Jan 23, 2024

@YaSuenag can you help double check this (in relation to your PR ? #450 ) please?

@danuw danuw moved this to Todo in Carbon Aware SDK Jan 23, 2024
@danuw danuw added this to the Release 2.0 milestone Jan 23, 2024
@YaSuenag
Copy link
Member

YaSuenag commented Feb 4, 2024

@YaSuenag can you help double check this (in relation to your PR ? #450 ) please?

I think it is nature after because the user should configure data source / locations. So I've proposed #450 to enforce these configurations to the SDK users. If #450 is accepted, this issue can be closed as not a bug.

Copy link
Contributor

github-actions bot commented Jun 4, 2024

This issue has not had any activity in 120 days. Please review this issue and ensure it is still relevant. If no more activity is detected on this issue for the next 20 days, it will be closed automatically.

@github-actions github-actions bot added the stale label Jun 4, 2024
@YaSuenag
Copy link
Member

YaSuenag commented Jun 4, 2024

Please keep this issue while #450 is opened. See comments from me in above.

Copy link
Contributor

github-actions bot commented Oct 3, 2024

This issue has not had any activity in 120 days. Please review this issue and ensure it is still relevant. If no more activity is detected on this issue for the next 20 days, it will be closed automatically.

@github-actions github-actions bot added the stale label Oct 3, 2024
@YaSuenag
Copy link
Member

YaSuenag commented Oct 3, 2024

Wait! As I said before, I will start to work for this issue after #450 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants