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

Emissions-forecasts with ElectricityMaps will return server error 500 #365

Merged
merged 1 commit into from
Aug 21, 2023

Commits on Jun 14, 2023

  1. Update ElectricityMapsDataSource.cs

    Issue : 
    
    I have tested a ElectricityMaps forecast scenario CLI: 
    "emissions-forecasts -l westeurope -v"
    will return server error 500.
    
    Analysis:
    
    public async Task<EmissionsForecast> GetCurrentCarbonIntensityForecastAsync(Location location) is causing the EM server to return 500. Reason is that the "." in geolocation.Latitude will be passed as "," 
    
    Fix:
    
    The following changes are fixing this bug.
    
    Signed-off-by: Christian Binder <[email protected]>
    xcbinder authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    0c2fa28 View commit details
    Browse the repository at this point in the history