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

TypeError: Cannot read property '1' of null #4

Open
sarvesh610 opened this issue Jul 27, 2018 · 1 comment
Open

TypeError: Cannot read property '1' of null #4

sarvesh610 opened this issue Jul 27, 2018 · 1 comment

Comments

@sarvesh610
Copy link

Hi,
I am trying to use the sample code you have provided, but I keep getting an exception.
` var args = matches[1].split(',');
^

TypeError: Cannot read property '1' of null
at new SoapOperation (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\node_modules\soap-server\lib\soap-server.js:35:20)
at SoapService.addOperation (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\node_modules\soap-server\lib\soap-server.js:121:26)
at new SoapService (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\node_modules\soap-server\lib\soap-server.js:116:9)
at SoapServer.addService (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\node_modules\soap-server\lib\soap-server.js:154:24)
at Object. (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\test-server.js:9:30)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)`

I am using the following code:
` var args = matches[1].split(',');
^

TypeError: Cannot read property '1' of null
at new SoapOperation (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\node_modules\soap-server\lib\soap-server.js:35:20)
at SoapService.addOperation (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\node_modules\soap-server\lib\soap-server.js:121:26)
at new SoapService (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\node_modules\soap-server\lib\soap-server.js:116:9)
at SoapServer.addService (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\node_modules\soap-server\lib\soap-server.js:154:24)
at Object. (C:\Users\Sarvesh\OneDrive\projects\tririga-soap\test-server.js:9:30)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)`

Thank you

@tan-tan-kanarek
Copy link
Owner

This is a very old code, written using very old standard.
I recommend to review it and rewrite it using modern class structure and promises.

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