title: How to fix ' \"INVALID\" is not a valid start token" ' in Prometheus
body: <p>I have spring-boot project with dependencies for web and actuator which is running on port 7071</p>
  
  <p>I am able to see prometheus and metric for my service triggers
  <a href="http://localhost:7071/prometheus" rel="nofollow noreferrer">http://localhost:7071/prometheus</a>
  <a href="http://localhost:7071/metrics" rel="nofollow noreferrer">http://localhost:7071/metrics</a></p>
  
  <p>but somehow <a href="http://localhost:9090/targets" rel="nofollow noreferrer">http://localhost:9090/targets</a> appearing DOWN with error "INVALID" is not a valid start token</p>
  
  <p>I have tried to checked similar issue but did not help - <a href="https://stackoverflow.com/questions/52519541/invalid-is-not-a-valid-start-token">INVALID is not a valid start token</a></p>
  
  <p>prometheus.yml</p>
  
  <pre><code>scrape_configs:
    # The job name is added as a label `job=&lt;job_name&gt;` to any timeseries scraped from this config.
    - job_name: 'prometheus'
  
      # metrics_path defaults to '/metrics'
      # scheme defaults to 'http'.
  
      static_configs:
      - targets: ['localhost:9090','localhost:7071']
  
  </code></pre>
  
  <p>can you please help what is wrong with yaml configurations ?</p>