title: The right way to update after making changes to AWS Amplify Express Server?
body: <p>When we make changes to a function in the express server, what is the right way to update using the AWS Amplify CLI?</p>
  
  <p>For example I have a function like this:</p>
  
  <pre><code>app.get('/customers', function(req, res) {...}
  
  </code></pre>
  
  <p>And initially after the first push it works.</p>
  
  <p>Then after editing and running push again I get this error:</p>
  
  <pre><code>core.js:6210 ERROR Error: Uncaught (in promise): Error: Network Error
  Error: Network Error
      at createError (createError.js:16)
      at XMLHttpRequest.handleError [as __zone_symbol__ON_PROPERTYerror] (xhr.js:83)
      at XMLHttpRequest.wrapFn (zone-evergreen.js:1218)
      at ZoneDelegate.invokeTask (zone-evergreen.js:399)
      at Object.onInvokeTask (core.js:41709)
      at ZoneDelegate.invokeTask (zone-evergreen.js:398)
      at Zone.runTask (zone-evergreen.js:167)
      at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:480)
      at invokeTask (zone-evergreen.js:1621)
      at XMLHttpRequest.globalZoneAwareCallback (zone-evergreen.js:1647)
      at resolvePromise (zone-evergreen.js:798)
      at zone-evergreen.js:705
      at rejected (tslib.es6.js:72)
      at ZoneDelegate.invoke (zone-evergreen.js:364)
      at Object.onInvoke (core.js:41731)
      at ZoneDelegate.invoke (zone-evergreen.js:363)
      at Zone.run (zone-evergreen.js:123)
      at zone-evergreen.js:857
      at ZoneDelegate.invokeTask (zone-evergreen.js:399)
      at Object.onInvokeTask (core.js:41709)
  </code></pre>
  
  <p>Upon getting that I tried running <code>amplify update api</code> and the <code>amplify push</code>, but I still get that error.  </p>
  
  <p>If I delete the API with <code>amplify remove api</code> and then <code>amplify push</code> and then recreate the API, it works.</p>
  
  <p>Thoughts?</p>
  
  <p>Also is there a way to troubleshoot the network error?</p>