Skip to content

Instantly share code, notes, and snippets.

@WillieYang
Created June 26, 2017 17:06
Show Gist options
  • Select an option

  • Save WillieYang/d95409e26998497c609b2d6b468ce854 to your computer and use it in GitHub Desktop.

Select an option

Save WillieYang/d95409e26998497c609b2d6b468ce854 to your computer and use it in GitHub Desktop.
When using Heroku local, if I use a port which is not port:3000, it would be failed
// error message:
5:55:25 PM web.1 | /home/sheng/Work/smr_pjt_loct_dr/app_server/controllers/locations.js:52
5:55:25 PM web.1 | if (response.statusCode === 200 && data.length) {
5:55:25 PM web.1 | ^
5:55:25 PM web.1 | TypeError: Cannot read property 'statusCode' of undefined
5:55:25 PM web.1 | at Request._callback (/home/sheng/Work/smr_pjt_loct_dr/app_server/controllers/locations.js:52:15)
5:55:25 PM web.1 | at self.callback (/home/sheng/Work/smr_pjt_loct_dr/node_modules/request/request.js:188:22)
// and it is actually weird, trying to figure out...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment