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

crypto.randomFillSync is not a function #2905

Closed
Turkirafaa opened this issue Sep 27, 2018 · 3 comments
Closed

crypto.randomFillSync is not a function #2905

Turkirafaa opened this issue Sep 27, 2018 · 3 comments
Labels
AREA: server STATE: Auto-locked An issue has been automatically locked by the Lock bot. TYPE: bug The described behavior is considered as wrong (bug).

Comments

@Turkirafaa
Copy link

Turkirafaa commented Sep 27, 2018

Are you requesting a feature or reporting a bug?

Yes

What is the current behavior?

TypeError: crypto.randomFillSync is not a function
at module.exports (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/nanoid/random.js:5:10)
at module.exports (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/nanoid/index.js:24:15)
at new Role (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/role/index.js:19:22)
at createRole (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/role/index.js:85:12)
at Role (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/api/exportable-lib/index.js:10:12)
at Object. (/var/lib/jenkins/jobs/automated-test/workspace/src/Users.js:6:12)
at Object._compile [as .js] (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/compiler/test-file/api-based.js:84:25)
at Object. (/var/lib/jenkins/jobs/automated-test/workspace/src/authentication.js:2:1)
at Function._compile [as _execAsModule] (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/compiler/test-file/api-based.js:50:13)
at ESNextTestFileCompiler._execAsModule [as compile] (/var/lib/jenkins/jobs/automated-test/workspace/node_modules/testcafe/src/compiler/test-file/api-based.js:144:42)

What is the expected behavior?

Testcafe working with browserstack

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

Specify your

  • operating system: os
  • testcafe version: v0.22.0
  • node.js version: v10.10.0
@AndreyBelym AndreyBelym added STATE: Need clarification An issue lacks information for further research. TYPE: bug The described behavior is considered as wrong (bug). AREA: server and removed STATE: Need clarification An issue lacks information for further research. labels Sep 27, 2018
@AndreyBelym
Copy link
Contributor

@Turkirafaa, please check the Node.js version on your Jenkins machine. I guess it's lesser than 7.10.0 - the version that introduced the crypto.randomFillSync function. By the way, it's a breaking change in the nanoid package,

@Turkirafaa
Copy link
Author

@AndreyBelym Thank you so much for you'r quick response we update the Node.js version to v8.12.0
and it's working now.

@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
AREA: server STATE: Auto-locked An issue has been automatically locked by the Lock bot. TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

2 participants