unity-license-activate icon indicating copy to clipboard operation
unity-license-activate copied to clipboard

Does it work now?

Open qwe321qwe321qwe321 opened this issue 5 years ago • 7 comments

I just tried and get errors at the beginning:

await page.goto('https://license.unity3d.com/manual')

await page.waitForNavigation({ // <--- it goes timeout.
  waitUntil: 'domcontentloaded'
})

qwe321qwe321qwe321 avatar Feb 28 '20 07:02 qwe321qwe321qwe321

Thank you for teaching me.

It seems to work in my macOS environment Are you running in an environment other than macos?

MizoTake avatar Mar 17 '20 06:03 MizoTake

I run on Windows7 and Ubuntu18.04 and both fail.

qwe321qwe321qwe321 avatar Mar 17 '20 23:03 qwe321qwe321qwe321

It worked on linux before but it doesn't seem to work now, so I'll check it when I have time.

It seems that verification is not possible because you do not have Win7. I'm sorry.

MizoTake avatar Mar 18 '20 03:03 MizoTake

@qwe321qwe321qwe321 I tried to modify the master branch, but it seems to be okay?

MizoTake avatar Mar 30 '20 15:03 MizoTake

It still doesn't work on Ubuntu18.04.

Log:

(node:10458) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector "input[id="type_personal"][value="personal"]" failed: timeout 30000ms exceeded
    at new WaitTask (/home/u/Desktop/unity-license-activate/node_modules/puppeteer/lib/DOMWorld.js:549:28)
    at DOMWorld._waitForSelectorOrXPath (/home/u/Desktop/unity-license-activate/node_modules/puppeteer/lib/DOMWorld.js:478:22)
    at DOMWorld.waitForSelector (/home/u/Desktop/unity-license-activate/node_modules/puppeteer/lib/DOMWorld.js:432:17)
    at Frame.waitForSelector (/home/u/Desktop/unity-license-activate/node_modules/puppeteer/lib/FrameManager.js:627:47)
    at Frame.<anonymous> (/home/u/Desktop/unity-license-activate/node_modules/puppeteer/lib/helper.js:112:23)
    at Page.waitForSelector (/home/u/Desktop/unity-license-activate/node_modules/puppeteer/lib/Page.js:1122:29)
    at /home/u/Desktop/unity-license-activate/activate.js:64:14
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:10458) 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:10458) [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.

qwe321qwe321qwe321 avatar Mar 31 '20 03:03 qwe321qwe321qwe321

@qwe321qwe321qwe321

I'm using Ubuntu with docker and thought maybe the command arguments are wrong or asking for two-factor authentication.

I've updated the README in hopes that it will help. Please confirm.

MizoTake avatar Apr 07 '20 01:04 MizoTake

I'm sorry. The wait method didn't seem to be working well. I have included a correction.

MizoTake avatar Apr 11 '20 02:04 MizoTake