Gentlemen,
Ive been scratching my head about this issue for a few days now and i have no idea how to fix this:
The UUD or Grafana in general really doesnt want to use the unraid api docker. The docker works, the docker shows me my box on the webui, i could theoretically manage what i want on it. When i query it through the browser, i get the expected response with a json file containing everything its supposed to.
However, when Grafana queries the API, I get this error (taken from the logs of the unraid-api docker):
ERROR Unexpected token B in JSON at position 0
at JSON.parse (<anonymous>)
at default (api/getServers.js:30:43)
at call (node_modules/connect/index.js:239:7)
at next (node_modules/connect/index.js:183:5)
at next (node_modules/connect/index.js:161:14)
at next (node_modules/connect/index.js:161:14)
at SendStream.error (node_modules/serve-static/index.js:121:7)
at SendStream.emit (node:events:520:28)
at SendStream.emit (node:domain:475:12)
at SendStream.error (node_modules/send/index.js:270:17)
lowkey no idea how to fix that. Anyone got any ideas? At this point im willing to sacrafice a lesser animal.
EDIT: i also put the JSON i manually queried through a validator and it returned that the JSON is valid