question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect header check.

See original GitHub issue

What is your Test Scenario?

I would like to test the login into the UXPin application.

What is the Current behavior?

After clicking the Log in button Testcafe throws an error Error: incorrect header check and stops the test immediately.

What is the Expected behavior?

I should be able to log in into to the application and the test should pass.

What is your web application and your TestCafe test code?

Your website URL (or attach your complete example): https://app.uxpin.com/

Details

Summary

Your complete test code (or attach your test files)

import { ClientFunction } from 'testcafe';

fixture`UXPin`.page`https://app.uxpin.com`;

const DASHBOARD_URL = 'https://app.uxpin.com/dashboard/projects';

const location = ClientFunction(() => {
  return document.location.href;
});

test('Login', async t => {
  await t
    .typeText('#login-login', 'testcafe@uxpin.com')
    .typeText('#login-password', 'TestCafe123')
    .click('#loginform_button1')
    .expect(location()).eql(DASHBOARD_URL);
});

Your complete test report

 Running tests in:
 - Chrome 75.0.3770 / Mac OS X 10.14.5

 UXPin
 ✖ Login

   1) A request to "https://app.uxpin.com/dashboard/" has failed.
      Use quarantine mode to perform additional attempts to execute this test.
      You can find troubleshooting information for this issue at
      "https://go.devexpress.com/TestCafe_FAQ_ARequestHasFailed.aspx".

      Error details:
      Error: incorrect header check

      Browser: Chrome 75.0.3770 / Mac OS X 10.14.5

         10 |
         11 |test('Login', async t => {
         12 |  await t
         13 |    .typeText('#login-login', 'testcafe@uxpin.com')
         14 |    .typeText('#login-password', 'TestCafe123')
       > 15 |    .click('#loginform_button1')
         16 |    .expect(location()).eql(DASHBOARD_URL);
         17 |});
         18 |

         at click (/Users/michalkowalewski/uxpin-docker/uxpin-test-cafe/specs/getting-started.js:15:6)
         at test (/Users/michalkowalewski/uxpin-docker/uxpin-test-cafe/specs/getting-started.js:11:1)
         at <anonymous>
      (/Users/michalkowalewski/uxpin-docker/uxpin-test-cafe/node_modules/testcafe/src/api/wrap-test-function.js:17:28)
         at TestRun._executeTestFn
      (/Users/michalkowalewski/uxpin-docker/uxpin-test-cafe/node_modules/testcafe/src/test-run/index.js:263:19)
         at TestRun.start
      (/Users/michalkowalewski/uxpin-docker/uxpin-test-cafe/node_modules/testcafe/src/test-run/index.js:312:24)


   2) Unhandled promise rejection:

      Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
      at ServerResponse.setHeader (_http_outgoing.js:470:11)
      at ServerResponse.writeHead (_http_server.js:232:21)
      at RequestPipelineContext.sendResponseHeaders

   (/Users/michalkowalewski/uxpin-docker/uxpin-test-cafe/node_modules/testcafe-hammerhead/lib/request-pipeline/context.js:308:9)
      at Array.<anonymous>

   (/Users/michalkowalewski/uxpin-docker/uxpin-test-cafe/node_modules/testcafe-hammerhead/lib/request-pipeline/index.js:226:9)
      at Generator.next (<anonymous>)
      at asyncGeneratorStep

   (/Users/michalkowalewski/uxpin-docker/uxpin-test-cafe/node_modules/testcafe-hammerhead/lib/request-pipeline/index.js:38:103)
      at _next

   (/Users/michalkowalewski/uxpin-docker/uxpin-test-cafe/node_modules/testcafe-hammerhead/lib/request-pipeline/index.js:40:194)

          Browser: Chrome 75.0.3770 / Mac OS X 10.14.5



 1/1 failed (6s)

Steps to Reproduce

  1. Go to https://app.uxpin.com/
  2. Type login and password in the inputs
  3. Click on the log in button.

Your Environment details

  • testcafe version: 1.3.3
  • node.js version: 10.16.0
  • command-line arguments: testcafe chrome login.spec.js
  • browser name and version: Chrome 75.0.3770
  • platform and version: Mac OS X 10.14.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
aleks-procommented, May 13, 2020

Hello @ganhammar ,

We have plans to fix this issue. We will update this thread as soon as we have any progress.

0reactions
github-actions[bot]commented, Oct 9, 2021

We’re closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

zlib.error: Error -3 while decompressing: incorrect header ...
You have this error: zlib.error: Error -3 while decompressing: incorrect header check. Which is most likely because you are trying to check headers...
Read more >
incorrect header check · Issue #2406 · axios/axios
Hello, why this code is throwing "incorrect header check"? ... I tested in the browser (even in incognito mode) and is returning an...
Read more >
3 while decompressing: incorrect header check - zlib.error
PYTHON : zlib.error: Error -3 while decompressing: incorrect header check [ Gift : Animated Search Engine ...
Read more >
[CAS 6.1] Base64 decoding failed / incorrect header check
ZipException: incorrect header check. (150 lines of trace at the bottom of this email). Everything appears to be working as expected ...
Read more >
java.util.zip.ZipException: incorrect header check - JRDC2 ...
ZipException: incorrect header check. This is my code. I would greatly appreciate it if someone could help and help me figure out where...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found