What were you trying to achieve?
I was trying to use the Chat feature by selecting a model and to generate/view the Attestation Report for the current domain via the UI.
What are the expected results?
The Chat page should display the selected model name instead of Model: Unknown.
The Attestation Report modal should successfully fetch and display the latest attestation report (or allow it to be downloaded) without errors.
What are the received results?
On the Chat page, the model label shows Model: Unknown even though a model selector is present.
When opening Attestation → Attestation Report, the modal displays the following error:
Unexpected token 'B', "Bad Gateway" is not valid JSON
The report is not shown and cannot be downloaded.
Steps To Reproduce
Log in as an admin user.
Open a domain (e.g. MataMiha).
Navigate to Chat from the sidebar.
Observe that the Chat header shows Model: Unknown.
Click Attestation in the top-right corner.
In the Attestation Report modal, attempt to generate/view the report.
Observe the JSON parsing error (Bad Gateway).
In what environment did you encounter the issue?
https://dev.cube.ultraviolet.rs/
Additional information you deem important
The error suggests the backend is returning an HTML or plain-text 502 Bad Gateway response while the frontend expects JSON.
This likely needs:
better error handling on the frontend (non-JSON responses)
or a fix on the attestation backend endpoint to always return valid JSON.

What were you trying to achieve?
I was trying to use the Chat feature by selecting a model and to generate/view the Attestation Report for the current domain via the UI.
What are the expected results?
The Chat page should display the selected model name instead of Model: Unknown.
The Attestation Report modal should successfully fetch and display the latest attestation report (or allow it to be downloaded) without errors.
What are the received results?
On the Chat page, the model label shows Model: Unknown even though a model selector is present.
When opening Attestation → Attestation Report, the modal displays the following error:
Unexpected token 'B', "Bad Gateway" is not valid JSON
The report is not shown and cannot be downloaded.
Steps To Reproduce
Log in as an admin user.
Open a domain (e.g. MataMiha).
Navigate to Chat from the sidebar.
Observe that the Chat header shows Model: Unknown.
Click Attestation in the top-right corner.
In the Attestation Report modal, attempt to generate/view the report.
Observe the JSON parsing error (Bad Gateway).
In what environment did you encounter the issue?
https://dev.cube.ultraviolet.rs/
Additional information you deem important
The error suggests the backend is returning an HTML or plain-text 502 Bad Gateway response while the frontend expects JSON.
This likely needs:
better error handling on the frontend (non-JSON responses)
or a fix on the attestation backend endpoint to always return valid JSON.