clinical-biomarkers / biomarker-issue-repo

Issues repo for the biomarker team.
0 stars 0 forks source link

Portal Blank Page #40

Closed seankim658 closed 2 hours ago

seankim658 commented 15 hours ago

When I visit https://biomarkerkb.org the portal seems to load fine and then it disappears and I get a blank white page.

In the console I see a TypeError. Not sure if this is related?

image

Unrelated but the home page also seems to hit the logging API with these query string params:

{"id":"","user":"Undecided","type":"error","page":"home","message":"Network error. home_init api call. Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"}

But the home_init call works properly and gets a 200 return code?

sujeetvkulkarni commented 14 hours ago

@seankim658 Did you made some changes in home_init api response, if so can you revert those changes.

seankim658 commented 12 hours ago

Before the home_init call from the frontend was failing due to the endpoint route (it was at /pages/detail/home_init). All I did was correct the route so that the home_init endpoint was correctly at /pages/home_init so the home_init call is successful. I just reverted that change so the call now fails again when loading the portal and I don't get the white screen issue anymore.

The home_init endpoint returns some stats on our data that Raja eventually wants on the home page.

sujeetvkulkarni commented 3 hours ago

@seankim658 Do not directly modify prod apis, otherwise there is a chance that it might break the portal - as all existing apis expect a response in particular way. Use dev/test environment to test your changes and once working then push to prod.