TypeError: Cannot read property 'XXX' of null - node.js

Puppeteer version: 1.0.0
OS version: Mac OS
Node.js version: 8.9.1
Error log:
TypeError: Cannot read property 'innerText' of null
here is my code
I am in trouble.Can anyone helps me?

Related

psutil.Popen doesn't find installed application (ganache)

I have an error while running ganache:
ValueError: could not read ganache version: b''
I tracked it back to this line in ganache.py:
def get_ganache_version(ganache_executable: str) -> int:
ganache_version_proc = psutil.Popen([ganache_executable, "--version"], stdout=PIPE)
with "ganache_executable"="ganache-cli". This is then used in the same function as:
ganache_version_match = re.search(r"v([0-9]+)\.", ganache_version_stdout.decode())
if not ganache_version_match:
raise ValueError("could not read ganache version: {}".format(ganache_version_stdout))
I tried executing ganache-cli --version in a Linux terminal and I get the following:
(base) me#me:~$ ganache-cli --version
This version of µWS is not compatible with your Node.js build:
Error: Cannot find module './uws_linux_x64_111.node'
Falling back to a NodeJS implementation; performance may be degraded.
ganache v7.7.2 (#ganache/cli: 0.8.1, #ganache/core: 0.8.1)
which looks ok, but for some reason psutils.Popen returns b''

Puppet 7 + datadog module. Fatal error. no parameter named

We have:
Ubuntu 20.04 and Puppet 7.
We faced the issue with modules:
puppet-datadog-agent (both versions 3.1.0 and 3.15.0) and puppetlabs-concat (both versions 2.2.1 and 7.1.1) throw this error :
2022-07-05 11:15:56 +0000 Puppet (err): no parameter named 'target' (file: ../modules/concat/manifests/fragment.pp, line: 50) on Concat_fragment[datadog header] (file: ../modules/concat/manifests/fragment.pp, line: 50) on node [DNS](http://DNS)
We had a working puppet before updated datadog and concat modules, and now even rollback doesn't help us :(
Any ideas, dear experts?

Unable to apply changes on device: emulator-5554. Error is: Command gradlew.bat failed with exit code 1

I begin new project with NativeScript, but after more and more try i couldn't fix my error.
After build my application with:
tns run android --device Pixel_4_API_30
i have this error :
Unable to apply changes on device: emulator-5554. Error is: Command gradlew.bat failed with exit code 1.**
...............................................................................................
My trace loge :
#############################################################################
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Debug level logging will leak security sensitive information!
https://docs.gradle.org/6.4/userguide/logging.html#sec:debug_security
#############################################################################
Command gradlew.bat failed with exit code 1
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Performance',
label: 'AndroidProjectService__buildProject',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: 3529
}
Error: Command gradlew.bat failed with exit code 1
at Errors.failWithOptions (C:\Users\BRYAN\AppData\Roaming\nvm\v12.13.0\node_modules\nativescript\lib\common\errors.js:157:27)
at Errors.fail (C:\Users\BRYAN\AppData\Roaming\nvm\v12.13.0\node_modules\nativescript\lib\common\errors.js:130:21)
at GradleCommandService.<anonymous> (C:\Users\BRYAN\AppData\Roaming\nvm\v12.13.0\node_modules\nativescript\lib\services\android\gradle-command-service.js:40:30)
at Generator.throw (<anonymous>)
at rejected (C:\Users\BRYAN\AppData\Roaming\nvm\v12.13.0\node_modules\nativescript\lib\services\android\gradle-command-service.js:6:65)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
tns info :
√ Getting NativeScript components versions information...
√ Component nativescript has 7.2.0 version and is up to date.
‼ Update available for component #nativescript/core. Your current version is 7.1.4 and the latest available version is 7.3.0.
√ Component #nativescript/ios has 7.2.0 version and is up to date.
√ Component #nativescript/android has 7.0.1 version and is up to date.
Gradle is connected to Java so check your installed version is 8. If not then get the correct version and try again. ns doctor is your friend!
If that doesn't work, stop any java and emulator (android/qemu) related tasks/processes and try again.
If that fails try rebooting your computer and test again.

Ember:SimpleAuth is undefined using ember-simple-auth

I am a newbie to JaveScript and HTML.
Looking at an existing code and struggling with below from quite some time now.
Below is the console output.
Getting the Uncaught error at below line in my code.
App.CustomAuthenticator = Ember.SimpleAuth.Authenticators.Base.extend({
The Ember.SimpleAuth is showing as undefined.
DEBUG: ------------------------------- ember.js:3461
DEBUG: Ember : 1.4.0 ember.js:3461
DEBUG: Ember Data : 1.0.0-beta.7+canary.b45e23ba ember.js:3461
DEBUG: Handlebars : 1.1.2 ember.js:3461
DEBUG: jQuery : 1.9.1 ember.js:3461
DEBUG: Ember Simple Auth : 0.6.4 ember.js:3461
DEBUG: ------------------------------- ember.js:3461
Uncaught TypeError: Cannot read property 'Authenticators' of undefined
Appreciate the help
Ember Simple Auth now defines its own global SimpleAuth and doesn't attach to the Ember global anymore so you need to change your code to:
App.CustomAuthenticator = SimpleAuth.Authenticators.Base.extend({
…
})

Node selenium-webdriver "Error: Timed out waiting for the WebDriver server at"

While following the instructions in the 'Getting Started' section of
the WebDriverJs documentation and after running this snippet from their site:
var driver = new webdriver.Builder().
withCapabilities(webdriver.Capabilities.chrome()).
build();
driver.get('http://www.google.com');
driver.findElement(webdriver.By.name('q')).sendKeys('webdriver');
driver.findElement(webdriver.By.name('btnG')).click();
driver.wait(function() {
return driver.getTitle().then(function(title) {
return title === 'webdriver - Google Search';
});
}, 1000);
driver.quit();
I'm getting this error:
Error: Timed out waiting for the WebDriver server at http://XXX.XXX.X.XXX:60065/
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
at <anonymous>
==== async task ====
WebDriver.createSession()
I'm running OSX Mavericks using the mac32 version of ChromeDriver found here. The chromedriver executable is in my /usr/local/bin directory, and is accessible on my path.
One thing I notice is that when I run chromedriver from the command line, it runs on port 9515, while the node code is looking for it on 60065. However, there shouldn't be any extra configuration required for just running with the chromedriver.
Would anyone have any ideas on why I'm getting this error?
I was having this exact issue today and near as I can tell it's a bug with the current version of the selenium-webdriver package (2.41.0).
There is a bug filed with the Selenium project but I don't think the fix has made its way onto npm yet.
Downgrading to version 2.9.248307 of Chromedriver worked for me.
Based on #Andrej Kaurin comment:
You can set
directConnnect: true
in your protractor configuration.
When this is set, protractor connects directly with browser driver and selenium is not needed.
More details: https://github.com/angular/protractor/blob/master/docs/server-setup.md#connecting-directly-to-browser-drivers
For me what worked was being on version 78.0.33904.70 of ChromeDriver and then version of Chrome Browser 78.0.3904.87
Here is the link to get Chrome Driver:
http://chromedriver.storage.googleapis.com/index.html?path=78.0.3904.70/
How to check what version of chrome you have: https://support.chall.com/hc/en-us/articles/200336349-How-do-I-determine-what-version-of-Google-Chrome-I-m-using-
I had this error when using new firefox.Service Builder('/path/to/geckodriver'), this error disappeared when I added the path to geckodriver to the variable $PATH.

Resources