-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin crashes on test run #173
Comments
@jmtimko5 thank you for submitting your report. Can you please provide additional details such as the browser you are using, how your test looks like, and any other relevant information? |
@jmtimko5 I'm unable to reproduce the issue without further information. I'll enhance error handling and include debug messages for improved troubleshooting. Closing the issue. |
@derevnjuk My apologies for the delay. The browser I am using is Chrome, and the test fails immediately on the cy.visit command. Is there any other information I can provide? Please reopen the issue when you get a chance |
@jmtimko5 thanks for the response 😉 Could you attach an output obtained by running tests with the $ NODE_DEBUG=cypress-har-generator cypress run --browser chrome Please first upgrade the plugin to the latest version: https://github.com/NeuraLegion/cypress-har-generator/releases/tag/v5.14.1 |
Hi there. I used the latest version as you stated, but the error is unfortunately seemingly empty
|
@jmtimko5 Sorry, this information is not sufficient. Let's try some tricks to gather more information to identify the root cause.
$ npx patch-package
|
@jmtimko5, can you provide an update? |
Hi @derevnjuk, I am currently in a extremely busy time at work. I will need a bit of time to run this test. I appreciate your patience. |
Hi @derevnjuk I'm also experiencing this issue. Cypress v12.7 I'm using the suggested setup on the readme and getting the same error as @jmtimko5. Here is the log output from |
@you1anna, thank you for submitting the report. After reviewing the provided logs, I did not detect any errors or crashes. It appears that your tests have passed without any issues. However, I noticed that the logs lack the most crucial part. Have you forwarded all the outputs to the file like this |
@derevnjuk It only seems to fail like this when run in headed/UI mode. The tests run and pass on the console. If I run |
@jmtimko5, it's fine. It will redirect all outputs (standard output and standard error) to |
Hi @derevnjuk, this is the smallest test I have - please see attached outputs. Hope it helps. |
We are seeing a few issues between Chrome v109 and v110, may be related? |
Hi @derevnjuk do we have an eta of when a fix may be available for this? We are eager to add this to our project, thanks. |
@you1anna seems you are not experiencing the same issue since the logs you have provided do not show any errors or issues, either related to the reported problem or any other errors. Additionally, your tests have been completed successfully as I can see. Would it be possible for you to kindly provide a reproducible repository for further investigation? |
@derevnjuk it only seems to be an issue when running in UI mode. I'm sorry I don't have time to make a repo for this. Please can you confirm if my config is valid? `const { defineConfig } = require('cypress') const queryTestDb = require( './db'); const {downloadFile} = require('cypress-downloadfile/lib/addPlugin') const { module.exports = defineConfig({
} When launching Cypress 12.7 and running a test, I get this: |
@you1anna, your configuration appears to be correct. However, I don't believe that any misconfiguration issues are causing this error. There are a couple of reasons why this error may occur:
Despite it is possible to emulate this error, it does not explain the root cause of the issue. Therefore, I have improved the debug messages and adjusted the implementation to prevent tests from crashing due to this error. Please install the latest version (i.e. v5.16.4) and verify if it works for you. If you encounter a warning stating "Unable to attach to the target," please rerun your tests in debug mode (by setting the @jmtimko5 fyi |
Tests are now running on the latest release, thanks a lot! |
Description
I installed according the readme, ran my first test with
cy.recordHar()
in thebefore
hook. I got the following errorSteps to reproduce
Cypress Version: 10.10
Here is my cypress.config.ts
The text was updated successfully, but these errors were encountered: