Ngrok is erring out on app restart with nodem

alex kharbush March 10, 2019

Hello All,

I would love if I could speed up my dev flow, but I find my self having to restart my node server when I make changes to my js code. When I restart the server, I then have to update my atlassian-connect.json files baseurl prop. Once that is done, I have to go the my dev jira app and re-install the app.

 

Is there a better way to do this?

I tried using nodemon, but when the server restarts I get the following issue:

 

/jiraTest/jira-getting-started/node_modules/ngrok/index.js:175

api.post(

    ^

 

TypeError: Cannot read property 'post' of null

    at Timeout.retry [as _onTimeout] (/Users/alex/Desktop/jiraTest/jira-getting-started/node_modules/ngrok/index.js:175:7)

    at ontimeout (timers.js:436:11)

    at tryOnTimeout (timers.js:300:5)

    at listOnTimeout (timers.js:263:5)

    at Timer.processTimers (timers.js:223:10)

[nodemon] app crashed - waiting for file changes before starting...

 

I got the first set of guidance from here - >

https://bitbucket.org/atlassian/atlassian-connect-express?_ga

 

Thanks!

1 answer

0 votes
Jerome Hurley May 28, 2019

Terminate nodemon with Ctrl+c

then run nodemon again.

ngrok npm module doesn't like nodemon's auto restart for some reason.

Suggest an answer

Log in or Sign up to answer