Giter Club home page Giter Club logo

Comments (4)

easonwanger avatar easonwanger commented on July 20, 2024

Try to use mirror ELECTRON_MIRROR=https://cdn.npm.taobao.org/dist/electron/

from chromedriver.

alex-dow avatar alex-dow commented on July 20, 2024

Unfortunately this does not work for me.

The logs are tricky to figure out but if you run in verbose mode, I get 404 errors

[INFO] verbose 9.547002537 (node:19414) UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found)
[INFO]     at EventEmitter.<anonymous> (/home/adowgail/workspace.apps/mtm-studio4/node_modules/got/source/as-stream.js:35:24)
[INFO]     at EventEmitter.emit (events.js:223:5)
[INFO]     at module.exports (/home/adowgail/workspace.apps/mtm-studio4/node_modules/got/source/get-response.js:22:10)
[INFO]     at ClientRequest.handleResponse (/home/adowgail/workspace.apps/mtm-studio4/node_modules/got/source/request-as-event-emitter.js:155:5)
[INFO]     at Object.onceWrapper (events.js:313:26)
[INFO]     at ClientRequest.emit (events.js:228:7)
[INFO]     at ClientRequest.origin.emit (/home/adowgail/workspace.apps/mtm-studio4/node_modules/@szmarczak/http-timer/source/index.js:37:11)
[INFO]     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:583:27)
[INFO]     at HTTPParser.parserOnHeadersComplete (_http_common.js:115:17)
[INFO]     at TLSSocket.socketOnData (_http_client.js:456:22)

Then further down we get

[INFO] Error: Failed to find Electron v7.0.0 for linux-x64 at https://username:*****@private-corporate-artifactory.com/electron/7.0.0/chromedriver-v7.0.0-linux-x64.zip
[INFO]     at Request.<anonymous> (/home/adowgail/workspace.apps/mtm-studio4/node_modules/nugget/index.js:169:61)
[INFO]     at Request.emit (events.js:223:5)
[INFO]     at Request.onRequestResponse (/home/adowgail/workspace.apps/mtm-studio4/node_modules/request/request.js:1066:10)
[INFO]     at ClientRequest.emit (events.js:223:5)
[INFO]     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:583:27)
[INFO]     at HTTPParser.parserOnHeadersComplete (_http_common.js:115:17)
[INFO]     at TLSSocket.socketOnData (_http_client.js:456:22)
[INFO]     at TLSSocket.emit (events.js:223:5)
[INFO]     at addChunk (_stream_readable.js:309:12)
[INFO]     at readableAddChunk (_stream_readable.js:290:11)
[INFO]     at ProcessTermError.ExtendableBuiltin (/home/adowgail/workspace.apps/mtm-studio4/packages/mtm-deployer/node/yarn/dist/lib/cli.js:721:66)
[INFO]     at ProcessTermError.MessageError (/home/adowgail/workspace.apps/mtm-studio4/packages/mtm-deployer/node/yarn/dist/lib/cli.js:750:123)
[INFO]     at new ProcessTermError (/home/adowgail/workspace.apps/mtm-studio4/packages/mtm-deployer/node/yarn/dist/lib/cli.js:790:113)
[INFO]     at ChildProcess.<anonymous> (/home/adowgail/workspace.apps/mtm-studio4/packages/mtm-deployer/node/yarn/dist/lib/cli.js:25884:17)
[INFO]     at ChildProcess.emit (events.js:223:5)
[INFO]     at maybeClose (internal/child_process.js:1021:16)
[INFO]     at Socket.<anonymous> (internal/child_process.js:430:11)
[INFO]     at Socket.emit (events.js:223:5)
[INFO]     at Socket.emit (events.js:223:5)error /home/adowgail/workspace.apps/mtm-studio4/node_modules/electron-chromedriver: Command failed.
[INFO] Exit code: 1

Since the URL does indeed work (I can copy it from the log and use it in my browser just fine), it suggests to me that the URL is modified somewhere. IT's also very frustrating that to know the error you need --verbose.

At first I thought maybe the username/password is being removed but removing them still gives me a 404 instead of a 401.

from chromedriver.

alex-dow avatar alex-dow commented on July 20, 2024

ah, the error message has nothing to do with chromedriver, it's looking for this file: SHASUMS256.txt

guess the issue is really just the logging not telling you what the problem is

from chromedriver.

codebytere avatar codebytere commented on July 20, 2024

Closing as this is resolved in recent versions.

from chromedriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.