Skip to content

Website stats endpoint returns 500 error #2

@paulpopus

Description

@paulpopus

Making a call to this endpoint getWebsiteStats returns error code 500

const { data } = await client().getWebsiteStats(websiteId, {
    startAt: 1685566800000,
    endAt: 1686916052440,
  });

The same endpoint directly via the REST API works just fine though:

curl --request GET \
  --url https://api.umami.is/v1/websites/<website id>/stats \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --header 'x-umami-api-key: <api key>' \
  --data startAt=1685566800000 \
  --data endAt=1686916052440

I messaged on discord as well, so you can DM me there if you need my exact website ID for debugging!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions