motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.77k stars 319 forks source link

when upstream application is UI application , it gives HTTP 502 #261

Open focode opened 6 years ago

focode commented 6 years ago

[Short description of problem here]

Reproduction Steps:

  1. download and build golang gin ui application https://github.com/demo-apps/go-gin-app
  2. create a json file with with target url
  3. register it in janos, if the listning path was ui, then localhost:8080/ui gives http 502
  4. I am not using database

Expected behavior: The expected behavior should be to display ui page of upstream application

Observed behavior:

[Describe observed behavior here] HTTP 502 Janus version: [I am using the latest version] OS and version: [Windows 10]

focode commented 6 years ago

Has someone tested this , any plans ?

abdul commented 4 years ago

I think, Janus is API Gateway. I don't think, it would work the way you expect -- it's not a general reverse proxy.