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

Following the README.md, the first time to write the doc '_design/mailbox' will get an error #110

Open
daisy-ycguo opened this issue Jul 5, 2017 · 2 comments

Comments

@daisy-ycguo
Copy link
Member

daisy-ycguo commented Jul 5, 2017

Following the document README.md to create a filter, when I type wsk action invoke /_/myCloudant/write -p dbname testdb -p overwrite true -P design_doc.json -r and return, I will get an error:

"Error: missing\n    at Request._callback (/nodejsAction/node_modules/cloudant-nano/lib/nano.js:247:15)\n    at Request.self.callback (/nodejsAction/node_modules/request/request.js:186:22)\n    at emitTwo (events.js:106:13)\n    at Request.emit (events.js:191:7)\n    at Request.<anonymous> (/nodejsAction/node_modules/request/request.js:1081:10)\n    at emitOne (events.js:96:13)\n    at Request.emit (events.js:188:7)\n    at IncomingMessage.<anonymous> (/nodejsAction/node_modules/request/request.js:1001:12)\n    at IncomingMessage.g (events.js:291:16)",

I think here we should remove -p overwrite true since it's the first time to create the doc '_design/mailbox'. README.md should be updated.

@daisy-ycguo
Copy link
Member Author

The root cause is #112.

There can be two possible solutions (1) change the source code as suggested in #112. (2) change the document.

@tleyden
Copy link

tleyden commented Jul 7, 2017

@daisy-ycguo I think the code would need to be changed. When you say change the document, what do you have in mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants