-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
RequestError: Error: Invalid URI "/runs" #5053
Comments
Ran this locally on a project that does record properly to verify what the normal behavior is of this POST:
|
Feel like we should be catching null or malformed urls earlier, before we send out the request, maybe here: https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/util/routes.js#L52 |
If I run
|
Turns out the If you are facing this issueTo check that you do not have an environment variable set with the name
This will print any environment variables set to either of these values on the system. If this returns nothing, open a new issue. If this returns a value, then you will need to unset these environment variables since these are reserved environment variables in Cypress. |
Current behavior:
There is a situation where someone can receive
RequestError: Error: Invalid URI "/runs"
onPOST /runs
The request fails on 4 retries and then bails on recording and runs the tests without recording.
CYPRESS_ENV
environment variable is not being set, which was our initial suspicion on the problem. #1621Important bit of the logs from
cypress run --record
:It seems like some issue with
routes.js
andapi.coffee
not prepending the api url correctly for some reason, since/runs
is not the full uri it should be.Dug into the
request
library where they send theInvalid URI
error here: Was digging into why request would throw an Invalid URI error here: https://github.com/request/request/blob/df346d8531ac4b8c360df301f228d5767d0e374e/request.js#L260The text was updated successfully, but these errors were encountered: