title: Resource not accessible by integration
body: <p>I have this weird error when Cypress GitHub Action can't successfully complete whilst CLI command is doing just fine.</p>
  <p>Here is how I tried to do it originally with GitHub Action:</p>
  <pre><code>      - name: Run acceptance tests with Cypress 
          uses: cypress-io/github-action@v2
          with:
            working-directory: e2e
            browser: chrome
            record: true
            parallel: true
            start: npm run start-server
            wait-on: 'http://localhost:1080'
            wait-on-timeout: 360
          env:
            CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
            MIX_ENV: acceptance_tests
            DEBUG: '@cypress/github-action'
  </code></pre>
  <p>Here is my <code>cypress.json</code> config - you can see that <code>wait-on</code> and <code>baseUrl</code> are pointing to the same URL:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;testFiles&quot;: &quot;**/*.feature&quot;,
    &quot;projectId&quot;: &quot;...&quot;,
    &quot;baseUrl&quot;: &quot;http://localhost:1080&quot;
  }
  
  </code></pre>
  <p>And the fun fact is that app under test responds to at least one request!</p>
  <pre><code>arning: 2022-05-18T21:04:34.089Z @cypress/github-action Separated 1 start commands npm run app_server
  start server &quot;npm run app_server command &quot;npm run app_server&quot;
  current working directory &quot;/__w/mimisbrunnr/mimisbrunnr/e2e&quot;
  2022-05-18T21:04:34.090Z @cypress/github-action parsed command: npm run app_server
  waiting on &quot;http://localhost:1080&quot; with timeout of 60 seconds
  Warning: 2022-05-18T21:04:34.091Z @cypress/github-action Waiting for urls http://localhost:1080
  2022-05-18T21:04:34.092Z @cypress/github-action Waiting for url http://localhost:1080
  Warning: 2022-05-18T21:04:34.092Z @cypress/github-action total ping timeout 90000
  2022-05-18T21:04:34.092Z @cypress/github-action individual ping timeout 30000ms
  Warning: 2022-05-18T21:04:34.092Z @cypress/github-action retries limit 3
  2022-05-18T21:04:34.107Z @cypress/github-action got error {&quot;name&quot;:&quot;RequestError&quot;,&quot;code&quot;:&quot;ECONNREFUSED&quot;,&quot;timings&quot;:{&quot;start&quot;:1652907874098,&quot;socket&quot;:1652907874099,&quot;lookup&quot;:1652907874100,&quot;error&quot;:1652907874101,&quot;phases&quot;:{&quot;wait&quot;:1,&quot;dns&quot;:1,&quot;total&quot;:3}}}
  Warning: 2022-05-18T21:04:34.107Z @cypress/github-action 15ms undefined undefined ECONNREFUSED attempt 1
  2022-05-18T21:04:34.108Z @cypress/github-action found command &quot;/usr/local/bin/npm&quot;
  Warning: 2022-05-18T21:04:34.108Z @cypress/github-action with arguments run app_server
  2022-05-18T21:04:34.108Z @cypress/github-action running &quot;/usr/local/bin/npm&quot; run app_server in /__w/mimisbrunnr/mimisbrunnr/e2e
  Warning: 2022-05-18T21:04:34.108Z @cypress/github-action waiting for the command to finish? false
  /usr/local/bin/npm run app_server
  
  &gt; gjallarhorn@1.0.0 app_server
  &gt; cd ../main &amp;&amp; mix phx.server
  </code></pre>
  <p>here it comes -&gt;</p>
  <pre><code>warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running &quot;locale&quot; in your shell)
  2022-05-18T21:04:35.109Z @cypress/github-action got error {&quot;name&quot;:&quot;RequestError&quot;,&quot;code&quot;:&quot;ECONNREFUSED&quot;,&quot;timings&quot;:{&quot;start&quot;:1652907875108,&quot;socket&quot;:1652907875108,&quot;lookup&quot;:1652907875108,&quot;error&quot;:1652907875109,&quot;phases&quot;:{&quot;wait&quot;:0,&quot;dns&quot;:0,&quot;total&quot;:1}}}
  Warning: 2022-05-18T21:04:35.109Z @cypress/github-action 1017ms undefined undefined ECONNREFUSED attempt 2
  21:04:35.419 [info] Running MimisbrunnrWeb.Endpoint with cowboy 2.9.0 at 127.0.0.1:1080 (http)
  21:04:35.428 [info] Access MimisbrunnrWeb.Endpoint at http://localhost:1080
  [+] Starting static assets build with esbuild. Build mode development...
  [+] Starting static assets build with esbuild. Build mode development...
  21:04:36.251 request_id=FvBO9LpFQLx0rPYAAAFx [info] GET /
  21:04:36.339 request_id=FvBO9LpFQLx0rPYAAAFx [info] Sent 200 in 87ms
  2022-05-18T21:04:36.348Z @cypress/github-action pinging http://localhost:1080 has finished ok after 2256ms
  </code></pre>
  <p>but even though cypress successfully pinged the main app the party is still over</p>
  <pre><code>Warning: 2022-05-18T21:04:36.349Z @cypress/github-action Running Cypress tests using NPM module API
  2022-05-18T21:04:36.349Z @cypress/github-action requiring cypress dependency, cwd is /__w/mimisbrunnr/mimisbrunnr
  Warning: 2022-05-18T21:04:36.349Z @cypress/github-action working directory /__w/mimisbrunnr/mimisbrunnr/e2e
  2022-05-18T21:04:36.351Z @cypress/github-action resolved cypress /__w/mimisbrunnr/mimisbrunnr/e2e/node_modules/cypress/index.js
  Warning: 2022-05-18T21:04:36.721Z @cypress/github-action Cypress config &quot;pageLoadTimeout=100000,baseUrl=http://localhost:1080&quot;
  2022-05-18T21:04:36.722Z @cypress/github-action Determining build id by asking GitHub about run 2348169225
  Warning: 2022-05-18T21:04:36.841Z @cypress/github-action Resource not accessible by integration
  2022-05-18T21:04:36.841Z @cypress/github-action HttpError: Resource not accessible by integration
  Warning:     at /__w/_actions/cypress-io/github-action/v2/dist/index.js:58740:21
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
  Warning:     at async getCiBuildId (/__w/_actions/cypress-io/github-action/v2/dist/index.js:6230:18)
      at async runTests (/__w/_actions/cypress-io/github-action/v2/dist/index.js:6468:33)
  Error: Resource not accessible by integration
  </code></pre>
  <p>Ok. Fair enough, but look - it's all fine with a simple CLI command run through <code>start-server-and-test</code>. Here is the relevant part of the <code>package.json</code>:</p>
  <pre class="lang-json prettyprint-override"><code>  &quot;scripts&quot;: {
      &quot;test&quot;: &quot;cypress run&quot;,
      &quot;start-server&quot;: &quot;cd ../main &amp;&amp; mix phx.server&quot;,
      &quot;ci&quot;: &quot;start-server-and-test start-server http://localhost:1080 test&quot;
    }
  </code></pre>
  <p>and GitHub Action step:</p>
  <pre><code>      - name: Run acceptance tests with Cypress
          run: npm run ci
          working-directory: e2e
          env:
            CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
            MIX_ENV: acceptance_tests
            START_SERVER_AND_TEST_INSECURE: 1
            DEBUG: start-server-and-test
  
  </code></pre>
  <p>and logs:</p>
  <pre><code>making HTTP(S) head request to  url:http://localhost:1080 ...
  21:40:36.375 request_id=FvBQ66vDSZ10rPYAAAES [info] HEAD /
  21:40:36.548 request_id=FvBQ66vDSZ10rPYAAAES [info] Sent 200 in 172ms
    HTTP(S) result for http://localhost:1080: {
  Warning:   status: 200,
    statusText: 'OK',
    headers: {
      'cache-control': 'max-age=0, private, must-revalidate',
      connection: 'close',
      'content-length': '3910',
      'content-type': 'text/html; charset=utf-8',
      'cross-origin-window-policy': 'deny',
      date: 'Wed, 18 May 2022 21:40:36 GMT',
  Warning:     server: 'Cowboy',
      'x-content-type-options': 'nosniff',
      'x-download-options': 'noopen',
      'x-frame-options': 'SAMEORIGIN',
      'x-permitted-cross-domain-policies': 'none',
      'x-request-id': 'FvBQ66vDSZ10rPYAAAES',
      'x-xss-protection': '1; mode=block',
      'set-cookie': [
        '_app_web_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYdmc0cXlvMkVha3JhcS1hVEJpalFxQ0J5.28LG5PrAPHrEQfvD1fpHR2-pLeEDgRrZkox8--yxP9M; path=/; HttpOnly'
      ]
    },
    data: ''
  }
  2022-05-18T21:40:36.564Z start-server-and-test waitOn finished successfully
  Warning: 2022-05-18T21:40:36.565Z start-server-and-test running test script command: npm run test
  wait-on(3361) complete
  [+] Esbuild /__w/mimisbrunnr/mimisbrunnr/main/apps/mimisbrunnr_web/assets/js/app.js to /__w/mimisbrunnr/mimisbrunnr/main/apps/mimisbrunnr_web/priv/static/assets/app.js succeeded.
  [+] Esbuild /__w/mimisbrunnr/mimisbrunnr/main/apps/mimisbrunnr_web/assets/css/app.scss to /__w/mimisbrunnr/mimisbrunnr/main/apps/mimisbrunnr_web/priv/static/assets/app.css succeeded.
  &gt; gjallarhorn@1.0.0 test
  &gt; cypress run
  
  [3631:0518/214038.922826:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
  mail server at port 7777
  ====================================================================================================
  
  
    (Run Starting)
  
    ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
    │ Cypress:        9.6.0                                                                          │
    │ Browser:        Electron 94 (headless)                                                         │
    │ Node Version:   v16.14.0 (/usr/local/bin/node)                                                 │
    │ Specs:          2 found (patient_dashboard.feature, sign_up.feature)                           │
    └────────────────────────────────────────────────────────────────────────────────────────────────┘
  </code></pre>
  <p>So my question is <strong>what exactly resource is not accessible by the integration?</strong></p>