-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble getting /report calls going to the correct end point #4539
Comments
I have also tried running this behind an nginx reverse proxy with end points http://scout and http://scout/chanjo2. Nginx runs the two fine, but does not resolve the issue here. |
I see why this happens. At the moment Scout collects the contents of the reports from chanjo2 and returns them in a page that is within the scout context. We'd probably need to just link out to the chanjo2 app instead. I did it this way because our clinicians want to print coverage stats inside the case report, so a function that just grabbed the contents from chanjo2 made sense. but of course reports need to be modified on the fly. I'll fix! |
OK I see! Thanks! |
I'm moving this issue to Scout! |
Hello @Jakob37. I've created a fix to this issue both in Scout(fix #4553) and chanjo2 (Clinical-Genomics/chanjo2#273). When you have time could you try the fix by using these 2 branches in combo? |
That sounds great @northwestwitch ! I'll have time to look at it early this week. |
Regarding the SSL error, yes, I think it's something that should be fixed in your server settings (we don't see it in out setup at least..). I'm a bit lost on the following errors, as I don't understand where that submitAsJson comes from. The last changes I made in scout and chanjo2 would submit the form data as application/x-www-form-urlencoded data and not as json. Even so, json should be an accepted format when you create report data. I need to investigate further 🤔 |
OK I see. Yes, I think the SSL errors are due to us running http and the requests being upgraded due to the
Hmm, did you figure it out? |
Not yet, but I'll continue tomorrow! |
Are you using the latest versions of #4553 and the chanjo2 branch? On our stage server, when I click on a report link from scout: ![]() I should fix the 2 errors but they don't seem to have an impact on the report creation for me. If I for instance modify the threshold cutoff and remove some genes from the query by using the customize panel, the statistics change and I get once again the illegal invocation error, but not the POST request error you described in your comment above 🤔 ![]() |
Tried with a json file on our server
After deploying chanjo2 branch 273
It returns the HTML code of the report page |
I'll double check! |
Looks like I hadn't pulled the latest version of the Chanjo2 branch, sorry about that. Will re-try right away. |
No worries :) |
Great job 💪 |
Nice!! 🥳
I noticed as well. I've opened an issue in chanjo2 earlier today --> Clinical-Genomics/chanjo2#280 |
Hi again!
Following up on an issue previously encountered during testing of the PR: #4529
It initially looked like a CORS error, but at least a part of it seems to be a more straight forward issue. It might simply be a configuration issue on my side.
I have Scout and Chanjo2 running on two URLs. Let's call them http://scout and http://chanjo2
Navigating to each of these individually I successfully enter Scout and Chanjo2 start pages.
Now, let's say I am in a Scout case, preparing to view its Chanjo2 report. The case URL:
http://scout/cust000/643594
I can successfully access Chanjo2 for the case, and I do then end up on an URL in the following format:
http://scout/cust000/643594/chanjo2_report/report?panel_name=Test+panel+(1.0)
The issue is that when doing further requests to update coverage settings within Chanjo2, calls are made to "/report" which leads me back to:
http://scout/report
The correct location would (I guess) be http://chanjo2/report
I also had an issue with these fetch requests being upgraded to https (through
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
I think). I removed that for now for testing, but might be multiple steps to take to solve this.Thankful for any input! I'll meanwhile continue testing.
The text was updated successfully, but these errors were encountered: