Skip to content

Conversation

@ryanthemanuel
Copy link
Collaborator

User facing changelog

The Cypress App will no longer crash when proxying an ill formed request. For example, if the application under test has a resource of "http: //localhost/asset.js" (notice the extraneous space) the Cypress App will no longer crash. Instead, a debug message will be logged and the asset will fail to load.

Additional details

The goal here is to treat these ill-formed requests just like any other requests that are problematic (e.g. not found resources). Thus, we don't attempt to stop the tests outright, but instead just fail the individual request.

How has the user experience changed?

Before:

Terminal:

image

After:

Terminal:

image

Browser Console:

image

Network:

image

PR Tasks

  • Have tests been added/updated?
  • Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • [na] Has a PR for user-facing changes been opened in cypress-documentation?
  • [na] Have API changes been updated in the type definitions?
  • [na] Have new configuration options been added to the cypress.schema.json?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 6, 2021

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Dec 6, 2021



Test summary

18733 0 202 0Flakiness 1


Run details

Project cypress
Status Passed
Commit 3f05587
Started Dec 7, 2021 1:46 PM
Ended Dec 7, 2021 1:58 PM
Duration 11:27 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/cypress/proxy-logging-spec.ts Flakiness
1 ... > works with forceNetworkError

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@flotwig flotwig changed the title fix(unify): Do not crash when a ill formed URL request is proxied fix: Do not crash when a ill formed URL request is proxied Dec 7, 2021
@ryanthemanuel ryanthemanuel merged commit 0e97dba into develop Dec 7, 2021
@ryanthemanuel ryanthemanuel deleted the issue-9220-fix-issue-with-blank-url-in-proxy-develop branch December 7, 2021 17:19
tgriesser added a commit that referenced this pull request Dec 8, 2021
…text

* 10.0-release: (45 commits)
  fix: various Nav Bar fixes (#19283)
  build: add patch package as a dev dependency for fe-shared
  chore: hoist is - fun with cached dependencies
  build: hoist is hard
  build: better hoisting strategy
  fix: remove windows and mac workflow from branch
  revert: remove change about node version 17
  build: remove testing of desktop-gui assets
  build: run window & mac CI in this branch
  build: more fixes
  build: remove toycode mdi from launchpad
  rename patch because of dev dep
  build: fix  merge issue in packages generation
  chore: update sass for windows compatibility
  fix: Do not crash when a ill formed URL request is proxied (#19274)
  fix: remove desktop-gui from circle.yml
  change whitepace in patch
  fix: adding timeout option to writeFile command (#19015)
  release 9.1.1
  fix: patch-package is not applied in dist'ed build (#19239)
  ...
tgriesser added a commit that referenced this pull request Dec 9, 2021
* 10.0-release: (53 commits)
  refactor: makeLegacyContext -> getCtx (#19308)
  fix: various Nav Bar fixes (#19283)
  build: add patch package as a dev dependency for fe-shared
  chore: hoist is - fun with cached dependencies
  build: hoist is hard
  build: better hoisting strategy
  chore: remove unused testing preferences (#19301)
  fix: remove windows and mac workflow from branch
  fix: show script errors when spec file fails to process (#19298)
  revert: remove change about node version 17
  feat: open config file in user's editor (#19276)
  feat(unify): scale the AUT (#19297)
  build: remove testing of desktop-gui assets
  build: run window & mac CI in this branch
  build: more fixes
  build: remove toycode mdi from launchpad
  rename patch because of dev dep
  build: fix  merge issue in packages generation
  chore: update sass for windows compatibility
  fix: Do not crash when a ill formed URL request is proxied (#19274)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SIGSEGV with ERR_TLS_REQUIRED_SERVER_NAME in Server.addContext

4 participants