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

Uncaught TypeError: dgram.createSocket is not a function #49

Open
erkansivas35 opened this issue Apr 1, 2021 · 3 comments
Open

Uncaught TypeError: dgram.createSocket is not a function #49

erkansivas35 opened this issue Apr 1, 2021 · 3 comments

Comments

@erkansivas35
Copy link

I get this error. I use this library in vuejs.

Screen Shot 2021-04-01 at 13 00 25

// Main.js
const graylog2 = require("graylog2");
const logger = new graylog2.graylog({
  servers: [
    { 'host': {myHost}', port: {myPort} }
  ],
  hostname: 'myProjectName', // the name of this host
  // (optional, default: os.hostname())
  facility: 'Node.js',     // the facility for these log messages
  // (optional, default: "Node.js")
  bufferSize: 1400         // max UDP packet size, should never exceed the
  // MTU of your system (optional, default: 1400)
});

logger.on('error', function (error) {
  console.error('Error while trying to write to graylog2:', error);
});

logger.log("Graylog test");

Can you help me solve the problem?

@denwist
Copy link

denwist commented Nov 16, 2021

Hello!
Faced a similar issue #50
How did you solve it?

@erkansivas35
Copy link
Author

Hello! Faced a similar issue #50 How did you solve it?

Hello!
I couldn't solve it.

@denwist
Copy link

denwist commented Nov 16, 2021

Hello! Faced a similar issue #50 How did you solve it?

Hello! I couldn't solve it.

It is a pity that this module cannot be used yet due to errors.

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