fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
1.1k stars 35 forks source link

Error appearing when browsing to WUD #438

Closed Retract1822 closed 1 week ago

Retract1822 commented 2 weeks ago

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

norfair00 commented 2 weeks ago

I have same issus

fmartinou commented 2 weeks ago

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.

jtitley commented 1 week ago

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.

fmartinou commented 1 week ago

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).

fmartinou commented 1 week ago

Available in 6.6.0