title: Running k6 script for load tests returns an error
body: <p>I'm first time user of k6 and I've already manage to get an error when running the script:</p>
  
  <blockquote>
    <p>"Request Failed [33merror[0m="Get https:///: stopped
    after 0 redirects"</p>
  </blockquote>
  
  <p>Script k6.js:</p>
  
  <pre><code>import http from "k6/http";
  import { sleep } from "k6";
  
  export let options = {
   stages: [
      { duration: "30s", target: 20 },
      { duration: "1m30s", target: 10  },
      { duration: "20s", target: 0 },
    ]
  };
  
  export default function() {
    let res = http.get("https://&lt;our_page_URL&gt;/");
    check(res, {
      "status code MUST be 200": (res) =&gt; res.status == 200,
    }) || fail("status code was *not* 200");
    sleep(1);
  }
  </code></pre>
  
  <p>Why do I get this error and what is the solution?</p>