Giter Club home page Giter Club logo

mcstatus's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @stphnduvall
  • ๐Ÿ‘€ Iโ€™m interested in ...
  • ๐ŸŒฑ Iโ€™m currently learning ...
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on ...
  • ๐Ÿ“ซ How to reach me ...

mcstatus's People

Contributors

lesleyvdp avatar stphnduvall avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mcstatus's Issues

Uncaught (in promise) TypeError: net_1.default.connect is not a function

index.js?9474:12 Uncaught (in promise) TypeError: net_1.default.connect is not a function
    at eval (index.js?9474:12:1)
    at new Promise (<anonymous>)
    at Object.checkStatus (index.js?9474:8:1)
    at eval (server.tsx?53f4:1:1)
    at ./src/pages/server.tsx (__comp---site-src-pages-server-tsxf-9-b-a2e.js:15:1)
    at __webpack_require__ (runtime~main.js:36:33)
    at Function.fn (runtime~main.js:332:21)

Querying a host which is online but doesn't have a Minecraft server running throws an error

A host which is online, but doesn't have a Minecraft server running will throw an error.

C:\<path>\node_modules\mcstatus\dist\index.js:22
            let server_info = data.split('\x00\x00\x00');
                                   ^

TypeError: Cannot read property 'split' of undefined
    at Socket.client.on (C:\<path>\node_modules\mcstatus\dist\index.js:22:36)
    at Socket.emit (events.js:198:13)
    at TCP._handle.close (net.js:606:12)

The Promise gets successfully rejected by
client.on('error', (err) => reject(err));

but the client.on('close') event listener will break/exit the node application because data is undefined.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.