You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.
Spec defined that If the provided handler argument is not a Function, throw "TypeMismatchError" for oncreate method.
Get information as below:
$ node
> var ocf=require('./index')
undefined
> ocf.server.oncreate("abc")
TypeError: Expected a function
at createWrap (/home/hj/Downloads/iotivity-node/node_modules/lodash/lodash.js:5557:15)
at Function.<anonymous> (/home/hj/Downloads/iotivity-node/node_modules/lodash/lodash.js:10102:14)
at apply (/home/hj/Downloads/iotivity-node/node_modules/lodash/lodash.js:497:27)
at Function.bind (/home/hj/Downloads/iotivity-node/node_modules/lodash/lodash.js:6585:16)
at Server._.extend.oncreate (/home/hj/Downloads/iotivity-node/lib/Server.js:181:28)
at repl:1:12
at REPLServer.defaultEval (repl.js:262:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Spec defined that
If the provided handler argument is not a Function, throw "TypeMismatchError"
foroncreate
method.Get information as below:
The text was updated successfully, but these errors were encountered: