electerious / Ackee

Self-hosted, Node.js based analytics tool for those who care about privacy.
https://ackee.electerious.com
MIT License
4.27k stars 359 forks source link

Failed to construct 'URL': Invalid URL #312

Open dennisheiden opened 2 years ago

dennisheiden commented 2 years ago

Ackee Version: >3.1.0 (working till 3.0.6)

Error Frontend:

Failed to construct 'URL': Invalid URL
TypeError: Failed to construct 'URL': Invalid URL
    at https://ackee.xxx.com/index.js:13:35060
    at Array.map (<anonymous>)
    at Qv (https://ackee.xxx.com/index.js:13:35046)
    at https://ackee.xxx.com/index.js:1:158599
    at Array.map (<anonymous>)
    at https://ackee.xxx.com/index.js:1:158531

Error Console:

Error: {"errors":[{"message":"Field \"averageViews\" of type \"AverageViews!\" must have a selection of subfields. Did you mean \"averageViews { ... }\"?","locations":[{"line":6,"column":4}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}},{"message":"Field \"averageDuration\" of type \"AverageDuration!\" must have a selection of subfields. Did you mean \"averageDuration { ... }\"?","locations":[{"line":7,"column":4}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}]}

    at Md (index.js:1:152785)
    at async index.js:1:158437

ENVs: image

electerious commented 2 years ago

Have you updated to the latest version? Maybe the JS of the last version is still cached in the browser causing wrong requests to the API.