Testcafe: RequestLogger: logResponseBody hangs if the response is large (200KB)

Created on 14 Aug 2018  路  4Comments  路  Source: DevExpress/testcafe

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

Setting logResponseBody to true seems to cause large responses to not be received by the browser.

What is the expected behavior?

logResponseBody should work correctly

How would you reproduce the current behavior (if this is a bug)?

Modify the log-options.js test case to use a large file (200KB) instead of index.html. I have not tried as unfortunately I cannot get these tests to run (syntax error on import statement).

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

const gqlLogger = RequestLogger(/graphql/, {
  logResponseBody: true,
});

Specify your

  • operating system: Windows 10 1803
  • testcafe version: 0.21.1
  • node.js version: 10.3.0
Auto-locked request hooks bug

All 4 comments

Hi @eug48

Thank you for your report. I've reproduced the problem.
Also, I've attached a simple example that demonstrates the problem.

I'm working on this

The fix was published in [email protected]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ParachuteCat picture ParachuteCat  路  3Comments

marchugon picture marchugon  路  4Comments

multivoltage picture multivoltage  路  3Comments

inikulin picture inikulin  路  3Comments

chebum picture chebum  路  3Comments