Closed nishio closed 1 year ago
Expected behavior: The report is shown.
Actual behavior: It shows Error Loading [object Object]
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.
https://<MY_DOMAIN>/report/undefined/api/v3/reports?report_id=<ID>
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
urls.js
client-report
document.origin
undefined
origin
I also noticed .env has SERVICE_URL and the urls.js read it. Am I expected to set this?
.env
SERVICE_URL
To Reproduce:
make start
All other feature (create account, create conversation, vote, 2D visualization) works well.
Device information: Chrome on MacOSX.
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
inclient-report
and it usesdocument.origin
. Howeverdocument.origin
isundefined
in Chrome DevTool.origin
is global scope variable: https://developer.mozilla.org/en-US/docs/Web/API/originI also noticed
.env
hasSERVICE_URL
and theurls.js
read it. Am I expected to set this?To Reproduce:
make start
on AWS EC2 and access it. (I mean, it is not localhost)All other feature (create account, create conversation, vote, 2D visualization) works well.
Device information: Chrome on MacOSX.