SocialChangeLab / media-impact-monitor

The Media Impact Monitor will be a novel tool for protest groups and NGOs to measure and visualize their impact on public discourse.
https://mediaimpactmonitor.app
Other
36 stars 0 forks source link

[Bug] small impact window 500 #217

Open davidpomerenke opened 2 weeks ago

davidpomerenke commented 2 weeks ago

Hey! Ich habe gerade gemerkt, dass wenn man eine sehr kleine time frame auswählt, dass die API mit 500er fehlschlägt, statt eine Limitation zurück zu liefern. Payload:

{
    "method": "time_series_regression",
    "impacted_trend": {
        "trend_type": "keywords",
        "sentiment_target": null,
        "organizers": [
            "Last Generation"
        ],
        "media_source": "news_online",
        "topic": "climate_change",
        "start_date": "2024-08-02",
        "end_date": "2024-08-28"
    },
    "media_source": "news_online",
    "topic": "climate_change",
    "start_date": "2024-08-02",
    "end_date": "2024-08-28",
    "organizer": "Last Generation"
}

Response:

{
    "message": "Internal server error",
    "details": "zero-size array to reduction operation maximum which has no identity"
}
linear[bot] commented 2 weeks ago

MIM-120 [Bug] small impact window 500