kezhenxu94 commented on issue #6224:
URL: https://github.com/apache/skywalking/issues/6224#issuecomment-764609188


   Just took a quick look and seems this is a bug,
   
   
https://github.com/apache/skywalking-client-js/blob/239f4b2020aaa8c0f582ea486c74e25dff4b66d9/src/trace/segment.ts#L46
   
   in the `else` block, the url is a string, while in 
   
   
https://github.com/apache/skywalking-client-js/blob/239f4b2020aaa8c0f582ea486c74e25dff4b66d9/src/trace/segment.ts#L72
   
   `url.host` is `undefined` and `encode(undefined)` throws the exact error 
`TypeError:First argument must be a string, Buffer, Array, or array-like 
object.`, @Fine0830 is that right?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to