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

Invalid EmissionsForecast #18

Open
nedavismsft opened this issue Oct 27, 2023 · 4 comments
Open

Invalid EmissionsForecast #18

nedavismsft opened this issue Oct 27, 2023 · 4 comments

Comments

@nedavismsft
Copy link

Hello,

I'm running the GetForecastAsync() method and getting the following error

"Invalid EmissionsForecast"

I use the following data as inputs
{ "region": "WestUS", "processDurationInMinutes": 5, "processTimeFrameInHours": 8 }

var optimalTime = await _greenHopperService.GetForecastDataAsync(region, DateTimeOffset.UtcNow.AddDays(1), processTimeFrameInHours, processDurationInMinutes);

Wanted to check if this is expected.

@georgekosmidis
Copy link
Owner

georgekosmidis commented Nov 3, 2023

Hello!

No you shouldn't get that!
Have you tried the sample to see if that is working for you?

Can you check the Data part of the exception? You should see more details there!

@nedavismsft
Copy link
Author

Hi George,

I haven't run the sample, but I did test the method IsOptimalWindowNowAsync with the same inputs and I get a response. I used the same appsettings as in the sample, and I did not create an environment variable for the region (I set it as an input from the payload).

The Data part of the exception from WestUS has the following message:

"dataEndAt must be within time range of the forecasted data, '11/3/2023 4:20:00 PM +00:00' through '11/4/2023 4:20:00 PM +00:00'"

I've also noticed that if I put another Azure region, such as NorthCentralUS or UAENorth, I get a 403 or 404 error.

@nedavismsft
Copy link
Author

Hi George,

Any update on this ticket?

@nedavismsft
Copy link
Author

Hi George. Any update here?

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

2 participants