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

Response 404 for random endpoints #28555

Open
gustawx opened this issue Dec 20, 2023 · 3 comments
Open

Response 404 for random endpoints #28555

gustawx opened this issue Dec 20, 2023 · 3 comments
Labels
stage: needs information Not enough info to reproduce the issue

Comments

@gustawx
Copy link

gustawx commented Dec 20, 2023

Current behavior

Hello Cypress team and community,

I face strange problem where during execution in GitLab pipeline some of the tests fail and responses to all API requests return 404 with following details:

"Response Body": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot POST {my url here}</pre>\n</body>\n</html>\n",
  "Response Headers": {
    "content-security-policy": "default-src 'none'",
    "content-type": "text/html; charset=utf-8",
    "date": "Tue, 19 Dec 2023 12:36:23 GMT",
    "server": "nginx",
    "x-content-type-options": "nosniff",
    "x-powered-by": "Express",
    "content-length": "212",
    "connection": "keep-alive"
  },
  "Response Status": 404

and now some details:
I have a set of API tests, the problem occurrs quite rarely, maybe once every 2 weeks. It never occur for all tests, always tests are running fine then 5-8 test specs fail in a row with responses 404 for all requests and then it goes to "normal" state back again.

I don't start any server nor proxy, my services are deployed in AWS and these requests are not reaching them at all so problem occurs before. Actually because I don't run any other server the idea I have is Cypress. The request I send is a "normal" cy.request()

This issue started to occur quite recently (~1,5 month ago), I'm not sure but could be after upgrade to 13.5.0

So here is the question:
does this response that I got (above) may be returned by Cypress "internals".

Thank you very much for any help.

Desired behavior

No response

Test code to reproduce

just simple cy.request({...}), I can't Include full code here

Cypress Version

13.5.0

Node version

18.16.1

Operating System

docker image cypress/base:18.16.1

Debug Logs

No response

Other

No response

@jordanpowell88
Copy link
Collaborator

@gustawx I'm sorry to hear you are having issues. Can you provide an example repo of this happening so we can investigate further?

@gustawx
Copy link
Author

gustawx commented May 8, 2024

@jordanpowell88 sorry for late response. I missed your comment.
I can't share the repo, it belong's to the company I work for, however this issue occurred again recently.

@jennifer-shehane
Copy link
Member

We'll need some way to reproduce in order for us to investigate. There could be a lot of causes.

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue
Projects
None yet
Development

No branches or pull requests

3 participants