Skip to content

[API] Sums by organization returns error #693

@inimaz

Description

@inimaz

How to reproduce

Get the sums of an org that has no emissions yet /organizations/{ORG_ID}/sums?start_date=2024-09-25T08:12:41.043Z&end_date=2024-10-25T08:12:41.043Z

Received response

{"detail":"Generic error"}

Ideal response

{
   ....
    "emissions": 0,
    "energy_consumed": 0,
    "duration": 0,
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIConcern only the codecarbon APIbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions