Created
June 26, 2017 17:06
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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