couchbaselabs / try-cb-java

Java-Based Couchbase 7.0 travel-sample application
https://docs.couchbase.com/java-sdk/current/hello-world/sample-application.html
Other
56 stars 38 forks source link

cannot access backend on remote client, only work on localhost #23

Open wisenet opened 1 year ago

wisenet commented 1 year ago

Hi,

I need some help. I am new to container. I have follow the guide and installed Try-CB-Java. However the searching and filtering only works on localhost the demo and container installed. I have edited the "main.js" from localhost:8080 to domain-name:8080, the client on the same network can reach the frontend BUT cannot perform search and filter with error "NO RESPONSE (backend unresponsive?) from /hotels/*/France/"

Please help and advise, how can I make the demo work and accessible to public? Many thanks

osfameron commented 1 year ago

Hey @wisenet. As this is a demo project, we've only really run and tested it to run in a development environment (so locally, or via docker).

We've tested having the Couchbase server at an external URL (and intend to update all these demos to work with our DBaaS service Capella in short term), but we've not tested running the Web App running on a hosted domain recently, as this wasn't a priority for us.

The thing to check will probably be the routing between the web app and the database server. If you suggest that other functionality works as you've deployed it, but ONLY the search/filtering of hotels fails, then this suggests that:

The details of how you do that will depend on how you've configured your deployment.