openanalytics / shinyproxy-config-examples

Configuration examples for ShinyProxy
https://www.shinyproxy.io
149 stars 109 forks source link

No response from Ajax call in 07-api-embedded-app #21

Closed tobiasblasberg closed 6 months ago

tobiasblasberg commented 4 years ago

Hi,

unfortunately I couldn't manage to install example 07-api-embedded-app.

Setup: Webserver: Nginx that runs locally on a Docker container with provided index.html. Shinyproxy runs on AWS EC2 instance (based on tutorial 1 without authentication).

What works:


In contrast to the (I guess) correct output when using postman: 

2020-07-01 20:14:56.132 INFO 1510 --- [ XNIO-2 task-9] c.s.docker.client.DefaultDockerClient : Starting container with Id: 3ff2d441946057bd13c77b99a923810a7bdac95e1cd692c45b9a5dfdb2149346 2020-07-01 20:14:59.059 WARN 1510 --- [ XNIO-2 task-9] e.o.shinyproxy.ShinyProxyTestStrategy : Container unresponsive, trying again (2/30): http://localhost:20000 2020-07-01 20:15:01.062 WARN 1510 --- [ XNIO-2 task-9] e.o.shinyproxy.ShinyProxyTestStrategy : Container unresponsive, trying again (3/30): http://localhost:20000 2020-07-01 20:15:03.444 INFO 1510 --- [ XNIO-2 task-9] e.o.containerproxy.service.ProxyService : Proxy activated [user: KAIs5bL3BcBRFYLuEZhP_zDmb5zQBDZ2pNWLLtLG] [spec: SOMESPEC] [id: 477a6719-1e13-4ddd-9082-ddb9c5545082]

jaysnm commented 3 years ago

I have same issue. Inspecting browser, I get Cross-Origin-Request Blocked. That means proxy-launch request doesn't reach shinyproxy.

Did you find a way of dealing with this?

LEDfan commented 6 months ago

Hi

The example mentioned in this issue was removed, because there are now better ways to embed a ShinyProxy app, see: https://github.com/openanalytics/shinyproxy-config-examples/tree/master/08-embedded-app

Feel free to open a new issue if you experience any problem with this new demo.