Skip to content

Tasking Manager stats failing to load #876

Closed

Description

@danrademacher

The stats section is not displaying, but the request actually returns data.

Screenshot 2024-08-26 at 8 47 48 AM

We have a working API endpoint with stats here:
https://tm-api.staging.openhistoricalmap.org/api/v4/system/statistics/

Activity

  1. added 6 commits that reference this issue on Sep 1, 2024
  2. erictheise commented on Sep 1, 2024

    @erictheise
    Contributor

    I've rearranged the Tasking Manager homepage to reflect the data we pull from our api instance, @jeffreyameyer, @1ec5, @danrademacher, please take a look at https://tasks-staging.openhistoricalmap.org/.

    The stats come from our staging api so don't be alarmed by the magnitude. I welcome your feedback on the order of these stats, or their labels, before we push to production.

    image

  3. Rub21 commented on Sep 2, 2024

    @Rub21
    Member

    Nice, the stats are already working, so the TM is ready for review. I will open a ticket for Karito to ensure everything is functioning correctly

  4. danrademacher commented on Dec 21, 2024

    @danrademacher
    Author

    These stats seem to no longer be present on staging or production:
    Image

    Maybe we lost them in some later upstream catchup

  5. moved this from On Staging to Todo - Known Path in OpenHistoricalMap Dev Planningon Dec 21, 2024
  6. added theissue type on Mar 16, 2025
  7. moved this from Todo - Known Path to Tested On Staging in OpenHistoricalMap Dev Planningon Mar 26, 2025
  8. moved this from Tested On Staging to In Production in OpenHistoricalMap Dev Planningon Mar 29, 2025
  9. Rub21 commented on Apr 22, 2025

    @Rub21
    Member
  10. erictheise commented on Apr 22, 2025

    @erictheise
    Contributor

    I am seeing CORS policy errors. I don't remember testing when this was pushed to production but it was definitely tested on staging.

    Access to XMLHttpRequest at 'https://tm-api.staging.openhistoricalmap.org/api/v4/system/statistics/' from origin 'https://tasks.openhistoricalmap.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    
  11. Rub21 commented on Apr 24, 2025

    @Rub21
    Member

    This is weird , the stats works in staging but not in production.
    https://tasks-staging.openhistoricalmap.org/

    The error in production is related to redirect, for some reason it redirect to http:

    tasks.openhistoricalmap.org/:1 Mixed Content: The page at 'https://tasks.openhistoricalmap.org/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://tm-api.openhistoricalmap.org/api/v4/system/statistics/'. This request has been blocked; the content must be served over HTTPS.
  12. Rub21 commented on May 6, 2025

    @Rub21
    Member

    It has been fixed, Done!

  13. moved this from In Production to Ready for Staging in OpenHistoricalMap Dev Planningon May 6, 2025
  14. moved this from Ready for Staging to In Production in OpenHistoricalMap Dev Planningon May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions