Insights dont show on public - E401

I’m a newbie. First of all, thank you for OR being here.

I want to make “Insights” visible without logging in.

I’m running the latest version of OR on a VPS with Ubuntu 20.

I have a single asset that measures temperature and humidity. The asset has the “Public read” option enabled, and both the humidity and temperature attributes are also set to public.

I created an “Insight” with two widgets (temperature + humidity). In the insight settings, I selected Permissions > View > Public.

When I’m logged in, the Insights link works as expected:
https://iot.xoxofoto.cz/insights/?realm=master#/view/[ID of insights]/true

However, when I open the link in an incognito window, I see an E401 error in the console, and the screen is completely blank.

The console shows the following error request:

GET request to https://iot.xoxofoto.cz/auth/realms/master/account  
Response: {"error": "HTTP 401 Unauthorized"}

What I doing wrong?

Hi!

I think this is a bug that is accidentally introduced, being unaware of ‘public’ apps like Insights.
As I can reproduce it on our demo (OpenRemote Insights), I’ll raise a GitHub issue on this.
Thanks for reporting!

I seem to be having the same issue.

Has this been resolved? Does anyone know of a workaround?

Hi, welcome to the forum!

The GitHub issue I’ve created (linked above) hasn’t been picked up nor resolved yet.
I’ll try to pick it up when I find the time, although I’m quite busy at the moment :sweat_smile:

Unfortunately I’m not aware of a simple workaround, other than making users login.

This bug got introduced due to a change on November 15th, 2024.
Only manually building the Docker images will allow you to deploy OpenRemote without this bug.

Unfortunately I am not familiar with manually building Docker images to circumvent this bug. :smiling_face_with_tear: Is there documentation on how to go about doing this?

Please understand… this is a show-stopper for us!

Hi!

The bug has just been resolved by our team.
It will be included in the next release.

GitHub pull request can be found here;

1 Like

Although this bug has been resolved, we are still waiting for the next release…

When is the next release expected?