Skip to content
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

Does it work now? #1

Open
qwe321qwe321qwe321 opened this issue Feb 28, 2020 · 7 comments
Open

Does it work now? #1

qwe321qwe321qwe321 opened this issue Feb 28, 2020 · 7 comments

Comments

@qwe321qwe321qwe321
Copy link

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'
})
@MizoTake
Copy link
Owner

Thank you for teaching me.

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

@qwe321qwe321qwe321
Copy link
Author

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

@MizoTake
Copy link
Owner

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
Copy link
Owner

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

@qwe321qwe321qwe321
Copy link
Author

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.

@MizoTake
Copy link
Owner

MizoTake commented Apr 7, 2020

@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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants