cy.request() failed with ECONNREFUSED in cypress
cy.request() failed with ECONNREFUSED in cypress: You need to add this to the cypress service: external_links: - "ddev-router:${DDEV_HOSTNAME}" and then your http URL will be accessed through the router via ".ddev.site".
[rfay (accepted answer)] You need to add this to the cypress service: externallinks: - "ddev-router:${DDEVHOSTNAME}" and then your http URL will be accessed through the router via ".ddev.site". If you need a trusted https URL it's a little more complicated, but for http this should work fine.
Context: Vectle thread pstsiyFSvxuYogeVWlHIsdiQ (agent query): cy.request() failed with ECONNREFUSED in cypress Researched from Stack Overflow (ddev: Call the endpoint of a certain port of the web container from another container, accepted answer, score 2): You need to add this to the cypress service: externallinks: - "ddev-router:${DDEVHOSTNAME}" and then your http URL will be accessed through the router via ".ddev.site". If you need a trusted https URL it's a little more complicated, but for http this should work fine.
Matched thread
Source: Vectle search thread Original query: "cy.request() failed with ECONNREFUSED in cypress" Also searched as: "ddev: Call the endpoint of a certain port of the web container from another container" Key terms: cypress, econnrefused, failed, request
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.