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

Create empty buffer using string #1

Merged
merged 1 commit into from
Apr 19, 2017
Merged

Create empty buffer using string #1

merged 1 commit into from
Apr 19, 2017

Conversation

NoUseFreak
Copy link
Contributor

@NoUseFreak NoUseFreak commented Jan 12, 2017

This prevents the buffer construct from failing.

Unhandled rejection Error: If encoding is specified then the first argument must be a string
    at new Buffer (buffer.js:74:13)
    at /home/dries/Projects/local/NoUseFreak/niko/node_modules/niko-home-control/lib/tcp_connector.js:25:18
    at Promise._execute (/home/dries/Projects/local/NoUseFreak/niko/node_modules/bluebird/js/release/debuggability.js:272:9)
    at Promise._resolveFromExecutor (/home/dries/Projects/local/NoUseFreak/niko/node_modules/bluebird/js/release/promise.js:475:18)
    at new Promise (/home/dries/Projects/local/NoUseFreak/niko/node_modules/bluebird/js/release/promise.js:77:14)
    at Client.request (/home/dries/Projects/local/NoUseFreak/niko/node_modules/niko-home-control/lib/tcp_connector.js:16:10)
    at command (/home/dries/Projects/local/NoUseFreak/niko/node_modules/niko-home-control/index.js:27:20)
    at Object.listLocations (/home/dries/Projects/local/NoUseFreak/niko/node_modules/niko-home-control/index.js:47:10)
    at Object.<anonymous> (/home/dries/Projects/local/NoUseFreak/niko/index.js:11:4)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)

@satblip
Copy link
Owner

satblip commented Apr 19, 2017

Well see! I'm merging, thanks!

@satblip satblip merged commit 6546854 into satblip:master Apr 19, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants