ember-codemods / ember-angle-brackets-codemod

Codemod to convert curly braces syntax to angle brackets syntax
MIT License
60 stars 32 forks source link

Error: Protocol error (Page.navigate): Cannot navigate to invalid URL #319

Closed RobbieTheWagner closed 4 years ago

RobbieTheWagner commented 4 years ago

I don't seem to be able to run this. I get Error: Protocol error (Page.navigate): Cannot navigate to invalid URL Any ideas?

(node:82694) UnhandledPromiseRejectionWarning: Error: Protocol error (Page.navigate): Cannot navigate to invalid URL
    at Promise (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/Connection.js:183:56)
    at new Promise (<anonymous>)
    at CDPSession.send (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/Connection.js:182:12)
    at navigate (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/FrameManager.js:118:39)
    at FrameManager.navigateFrame (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/FrameManager.js:95:7)
    at Frame.goto (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/FrameManager.js:406:37)
    at Frame.<anonymous> (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/helper.js:112:23)
    at Page.goto (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/Page.js:674:49)
    at Page.<anonymous> (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/helper.js:112:23)
    at gatherTelemetry (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/ember-codemods-telemetry-helpers/lib/gather/gather-telemetry.js:20:14)
  -- ASYNC --
    at Frame.<anonymous> (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/helper.js:111:15)
    at Page.goto (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/Page.js:674:49)
    at Page.<anonymous> (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/helper.js:112:23)
    at gatherTelemetry (/Users/robertwagner/.npm/_npx/82694/lib/node_modules/ember-angle-brackets-codemod/node_modules/ember-codemods-telemetry-helpers/lib/gather/gather-telemetry.js:20:14)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:82694) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:82694) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
rwjblue commented 4 years ago

How did you invoke?

RobbieTheWagner commented 4 years ago

npx ember-angle-brackets-codemod --telemetry=http://localhost:4200 ./app/templates I believe. Also, tried without telemetry. npx ember-angle-brackets-codemod ./app/templates

rwjblue commented 4 years ago

Can you retry now that we have released 5.0.0? I suspect that you ran npx ember-angle-brackets-codemod with the --telemetry flag (because that is what the README said to do at the time) but there was no released version that supported leaving off the http://localhost:4200 bit.

RobbieTheWagner commented 4 years ago

Yes, it works now with telemetry disabled, thanks!