getwud/wud

Error appearing when browsing to WUD

Closed this issue · 5 comments

When browsing to the WUD main page a pop up appears stating:

Error when trying to get app version (JSON.parse: unexpected character at line 1 column 1 of the JSON data)

Image Tag: ghcr.io/fmartinou/whats-up-docker:latest

Image ID: sha256:00ba23821eec26904be70ea29bbb9061fa9e2445aed9e4bd134131add635180b

error_screenshot

I have same issus

Hi,

I cannot reproduce the issue (tried with anonymous access and basic auth).

Can you share your config please? To understand what can cause a side-effect.

I'm behind a reverse proxy and saw this with the latest update. The json seems to be returning something like unauthorized. I believe in my case it's because wud is cached and cloudflare is intercepting and saying authorised. Similar to the issue I raised about white screen. Once my session is authorised by cloudflare, I don't see the issue. But in my case, this error is not consistent.

Not sure if this is what others are facing but maybe some other reason is creating a failure.

This API route is indeed protected by the authentication layer.

I don't understand why in certain circumstances, it's called from the UI whereas the login has not been made 🤔 .
As a fix, I open this particular route for anonymous access (it doesn't expose any sensitive data).

Available in 6.6.0