title: Not able to reach Flask webserver
body: <p>This is my test code running on Visual studio 2017, file name is test:</p>
  
  <pre><code>from flask import Flask, request      #import main Flask class and request object
  from test import app
  
  app = Flask(__name__) #create the Flask app
  
  @app.route('/query-example')
  def query_example():
      return 'Todo...'
  
  @app.route('/form-example')
  def formexample():
      return 'Todo...'
  
  @app.route('/json-example')
  def jsonexample():
      return 'Todo...'
  
  if __name__ == '__main__':
      app.run(debug=True, port=5000) #run app in debug mode on port 5000
  </code></pre>
  
  <p>But when I run it in Visual studio 2017 and I enter this route "<a href="http://127.0.0.1:5000/json-example" rel="nofollow noreferrer">http://127.0.0.1:5000/json-example</a>" in Chrome Browser I always get this error message.</p>
  
  <blockquote>
    <p>"404 Not Found"
    The requested URL was not found on the server. If you entered the URL
    manually please check your spelling and try again.</p>
  </blockquote>
  
  <p>I am a learner, tried following this article:
  <a href="https://scotch.io/bar-talk/processing-incoming-request-data-in-flask" rel="nofollow noreferrer">https://scotch.io/bar-talk/processing-incoming-request-data-in-flask</a></p>
  
  <ul>
  <li>Python: 3.6 </li>
  <li>Flask: 0.12.4</li>
  <li>pip: 18.1</li>
  </ul>
  
  <p>Earlier I used to get the return message with the same code but after updating the flask to 0.12.4, its not working, I think something has changed. I am not able to debug the exact issue.</p>
  
  <p>--Update--</p>
  
  <p>Ok, after updating the flask version to 1.0.2, but still not able to reach the webserver from the url: <a href="http://127.0.0.1:5000/json-example" rel="nofollow noreferrer">http://127.0.0.1:5000/json-example</a>. Please check out the screenshot below.</p>
  
  <p><a href="https://i.stack.imgur.com/J39IK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J39IK.jpg" alt="enter image description here"></a></p>
  
  <p>I get 404 error not found:</p>
  
  <blockquote>
    <p>Not Found</p>
    
    <p>The requested URL was not found on the server. If you entered the URL
    manually please check your spelling and try again.</p>
  </blockquote>