You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✮ Event {"url":"/home","title":"title of /home","name":"button-click","data":{"color":"red"}}
undefined:1
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e------------REDACTED--------DZ7fFPYaLhXYo1iVf7mC41Cbk74-wGzQ
SRGQzxfq4
^
SyntaxError: Unexpected token 'e', "eyJhbGciOi"... is not valid JSON
at JSON.parse (<anonymous>)
at parseJSONFromBytes (node:internal/deps/undici/undici:4306:19)
at successSteps (node:internal/deps/undici/undici:4288:27)
at fullyReadBody (node:internal/deps/undici/undici:2724:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async consumeBody (node:internal/deps/undici/undici:4297:7)
I suspect backend because I even tried to use a patched version of the client adding "Accept: application/json to the request but I got the same issue.
It's a kind of base64 of the (json + other data)...
Any hint appreciated.
regards
The text was updated successfully, but these errors were encountered:
Hi
Context:
using umami client targetting an umami cloud website instance :
https://gist.github.com/boly38/081318e620b6625467fef75bcb91b618#file-umaminodesample-js
I'm trying to retrieve node client response as json.
and here is what I get
I changed the end of the script to show response
1st example console result is
Second example console result is
I just redacted some part of the id.
Is this a client or backend (cloud) issue ?
I suspect backend because I even tried to use a patched version of the client adding
"Accept: application/json
to the request but I got the same issue.It's a kind of base64 of the (json + other data)...
Any hint appreciated.
regards
The text was updated successfully, but these errors were encountered: