compdemocracy / polis

:milky_way: Open Source AI for large scale open ended feedback
https://pol.is
GNU Affero General Public License v3.0
719 stars 169 forks source link

report page shows Error: Loading [object Object] #1686

Closed nishio closed 1 year ago

nishio commented 1 year ago

Expected behavior: The report is shown.

Actual behavior: It shows Error Loading [object Object]

Additional context:

I saw the page requests to https://<MY_DOMAIN>/report/undefined/api/v3/reports?report_id=<ID> and the response was 404.

I read urls.js in client-report and it uses document.origin. However document.origin is undefined in Chrome DevTool. origin is global scope variable: https://developer.mozilla.org/en-US/docs/Web/API/origin

I also noticed .env has SERVICE_URL and the urls.js read it. Am I expected to set this?

To Reproduce:

All other feature (create account, create conversation, vote, 2D visualization) works well.

Device information: Chrome on MacOSX.