Jump to content
McKay Development

TypeError: options.hasOwnProperty is not a function


Mister
 Share

Recommended Posts

Hey, not sure where to ask this, but looks like there is a component that might be problematic:

TypeError: options.hasOwnProperty is not a function

    at ClientRequest.<anonymous> (/Users/mister/Desktop/ruststake/rust-app-master/node_modules/@doctormckay/stdlib/components/http/proxyagent.js:71:18)

    at ClientRequest.emit (node:events:365:28)

    at Socket.socketOnData (node:_http_client:525:11)

    at Socket.emit (node:events:365:28)

    at addChunk (node:internal/streams/readable:314:12)

    at readableAddChunk (node:internal/streams/readable:289:9)

    at Socket.Readable.push (node:internal/streams/readable:228:10)

    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

I managed to fix it by changing node_modules/@doctormckay/stdlib/components/http/proxyagent.js:71 file from 

if (!options.hasOwnProperty(i)) {
   continue;
}

to 

 

if (!Object.prototype.hasOwnProperty.call(options, i)) {
   continue;
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...