node.js - jaydata odata-server newsreader sample throws has no method 'basicAuth' exception -
i'm not getting odata-server working on machine (windows 8.1, nodejs 0.10.30, mongo 2.4.8). tried clean ubuntu install, same problem. repro scenario:
- create directory
- npm install odata-server
- cd node_modules/odata-server
- node newsreader.js
this gives following output:
should empty: [] test data upload successful. 100 items inserted. starting newsreader odata server. c:\projects\odata\node_modules\odata-server\node_modules\mongodb\lib\mongodb\connection\base.js:245 throw message; ^ typeerror: object function createserver() { function app(req, res, next){ app.handle(req, res, next); } merge(app, proto); merge(app, eventemitter.prototype); app.route = '/'; app.stack = []; return app; } has no method 'basicauth' @ c:\projects\odata\node_modules\odata-server\newsreader.js:14:25 @ defer.<anonymous> (c:\projects\odata\node_modules\odata-server\newsreader\context.js:123:13) @ object.cbwrapper.success (c:\projects\odata\node_modules\odata-server\node_modules\jaydata\lib\jaydatamodules\qdeferred.js:25:38) @ newscontext.$data.class.define._applytransaction (c:\projects\odata\node_modules\odata-server\node_modules\jaydata\lib\types\entitycontext.js:224:16) @ readyfn (c:\projects\odata\node_modules\odata-server\node_modules\jaydata\lib\types\entitycontext.js:1430:17) @ newscontext.$data.class.define._postprocesssaveditems (c:\projects\odata\node_modules\odata-server\node_modules\jaydata\lib\types\entitycontext.js:1473:14) @ object.innercallback.success (c:\projects\odata\node_modules\odata-server\node_modules\jaydata\lib\types\entitycontext.js:1154:29) @ object.self._savecollections.success (c:\projects\odata\node_modules\odata-server\node_modules\jaydata\lib\types\storageproviders\mongodb\mongodbstorageprovider.js:653:38) @ readyfn (c:\projects\odata\node_modules\odata-server\node_modules\jaydata\lib\types\storageproviders\mongodb\mongodbstorageprovider.js:566:22) @ esfn (c:\projects\odata\node_modules\odata-server\node_modules\jaydata\lib\types\storageproviders\mongodb\mongodbstorageprovider.js:590:19)
what missing?
connect no longer ships basicauth (along rest of middleware) , has been moved external middleware repo.
this can found here.
Comments
Post a Comment