Proxy server with Node.js on Heroku

后端 未结 2 1676
长发绾君心
长发绾君心 2020-12-31 23:23

I\'m trying to build a proxy server on with Node.js on Heroku using http-proxy. Everything works fine locally, but I\'m having some troubles on Heroku.

var          


        
2条回答
  •  余生分开走
    2020-12-31 23:55

    I use http-proxy successfully on Heroku. The first thing I noticed in your log err is the url it is GETting: GET lelylan-api.herokuapp.com/tdevices

    There is a typo... instead of '/devices' it shows '/tdevices'. Before continuing can you confirm this is the actual log message?

提交回复
热议问题