You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/08/20 05:39:02 UTC
[GitHub] [skywalking] chlook opened a new issue #7505: [NodeJS Agent] When oap-server had stoped, java invokes node, the node app will raise "TypeError" and exit.
chlook opened a new issue #7505:
URL: https://github.com/apache/skywalking/issues/7505
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Question or discussion
- [*] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Question
- What do you want to know?
When the node agent cannot connect to the server after the server is stopped, the default value is null。Want to confirm whether it can be solved。
___
### Bug
- Which version of SkyWalking, OS, and JRE?
- env: k8s for aliyun cloud
- docker-engine: 1.18.8-aliyun.1
- oap-server: skywalking-oap-server:8.6.0-es7
- skywalking-backend-js: master
- Which company or project?
- no
- What happened?
If possible, provide a way to reproduce the error. e.g. demo application, component version.
- env: k8s for aliyun cloud
- docker-engine: 1.18.8-aliyun.1
- oap-server: skywalking-oap-server:8.6.0-es7
- java: 8.6.0
- node: skywalking-backend-js: master
- ERROR
```
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at new NodeError (node:internal/errors:278:15)
at Function.from (node:buffer:317:9)
at ContextCarrier._this.decode (/Users/anyone/Desktop/tmp/code/node-app-handler/node_modules/skywalking-backend-js/lib/trace/context/ContextCarrier.js:42:27)
at ContextCarrier.set (/Users/anyone/Desktop/tmp/code/node-app-handler/node_modules/skywalking-backend-js/lib/trace/context/ContextCarrier.js:63:50)
at /Users/anyone/Desktop/tmp/code/node-app-handler/node_modules/skywalking-backend-js/lib/trace/context/ContextCarrier.js:87:133
at Array.forEach (<anonymous>)
at Function.ContextCarrier.from (/Users/anyone/Desktop/tmp/code/node-app-handler/node_modules/skywalking-backend-js/lib/trace/context/ContextCarrier.js:87:88)
at Server._sw_request (/Users/anyone/Desktop/tmp/code/node-app-handler/node_modules/skywalking-backend-js/lib/plugins/HttpPlugin.js:131:63)
at Server.emit (node:events:376:20)
at parserOnIncoming (node:_http_server:919:12) {
code: 'ERR_INVALID_ARG_TYPE'
}
```
___
### Requirement or improvement
- Please describe your requirements or improvement suggestions.
Because there is no exception when Java calls Java after the server stops, but when node is called, node throws an exception and exits, affecting the operation of the application. Hope to improve.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] xinnj commented on issue #7505: [NodeJS Agent] When oap-server had stoped, java invokes node, the node app will raise "TypeError" and exit.
Posted by GitBox <gi...@apache.org>.
xinnj commented on issue #7505:
URL: https://github.com/apache/skywalking/issues/7505#issuecomment-1022885929
Same problem, hope it can be fixed quickly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #7505: [NodeJS Agent] When oap-server had stoped, java invokes node, the node app will raise "TypeError" and exit.
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7505:
URL: https://github.com/apache/skywalking/issues/7505#issuecomment-1022932642
@xinnj @820465323 If no one intends to fix it on their own, everyone has to wait. This is how an open-source project works.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] 820465323 commented on issue #7505: [NodeJS Agent] When oap-server had stoped, java invokes node, the node app will raise "TypeError" and exit.
Posted by GitBox <gi...@apache.org>.
820465323 commented on issue #7505:
URL: https://github.com/apache/skywalking/issues/7505#issuecomment-914193270
I have the same problem
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org