Skip to content
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

Since Cypress 12.15.0 (and on 13.5.0 still), "cy.readFile must only be invoked..." when using basic auth credentials in baseUrl #28336

Closed
adrienharnay opened this issue Nov 15, 2023 · 6 comments · Fixed by #28428
Assignees

Comments

@adrienharnay
Copy link

Current behavior

CypressError: Timed out retrying after 10000ms: `cy.readFile()` must only be invoked from the spec file or support file.

When defining a baseUrl with basic auth.

Since 12.15.0, also tested on 13.5.0.

Desired behavior

No response

Test code to reproduce

Here is the smallest possible reproduction: https://github.com/Brigad/cypress-test-tiny

Commit that introduced the bug: Brigad/cypress-test-tiny@e947d47

Cypress Version

13.5.0

Node version

20.6.0

Operating System

macOS

Debug Logs

CypressError: Timed out retrying after 10000ms: `cy.readFile()` must only be invoked from the spec file or support file.

Other

No response

@jennifer-shehane
Copy link
Member

Thanks for filing an issue @adrienharnay, we'll give this a look.

@Markus-Ende
Copy link

Markus-Ende commented Nov 20, 2023

we have the same issue on Cypress 13.5.0 with cy.task in combination with cyLog ( see original issue cypress-io/code-coverage#667)

@AlexejKunz-Witt
Copy link

I have the same issue but its only the case on my CI-Pipeline. I tried to run tests on my CI-Pipeline on Cypress Version 12.12.0 and it worked, now I tried it again with the newest version 13.5.1 and I am getting the error:
"CypressError: Timed out retrying after 10000ms: cy.readFile() must only be invoked from the spec file or support file."

@Uriyay2
Copy link

Uriyay2 commented Nov 28, 2023

Facing the dame issue in version 13.6.0

@jennifer-shehane
Copy link
Member

We're investigating this situation.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 5, 2023

Released in 13.6.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.6.1, please open a new issue.

@cypress-bot cypress-bot bot removed the stage: needs investigating Someone from Cypress needs to look at this label Dec 5, 2023
@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
6 participants