Comments (4)
recent fix for validating the "query_params" to be correct JSON.
Can you point to a PR or commit in this repo that you are referring to this?
when they would supply {} as their "query_param"
I would consider this user/client error, as if there is no parameters the query_param
should be specified.
I guess we could take a look at improving the validation of query_param
to make sure is a JSON object and that is not empty.
Do you have a series of steps using the CLI to reproduce the error so we are clear what are you doing to see this problem?
@jasonpet Could you take a look at this when you have a chance.
from openwhisk-package-cloudant.
@csantanapr
This is the PR: https://github.com/apache/incubator-openwhisk-package-cloudant/pull/164/files
The user said that they used to create their trigger simply with
bx wsk trigger create <trigger-name> --feed /$IBMCLOUD_ORG_$space/<db-binding>/changes -p dbname <db> -p filter document-updates/new
But now the server returns an error "Invalid JSON for query_params" so they started including the {}
and their filter doesn't work.
That is the extent that I know. Jason and I have spoken and he is picking it up to see if we have an issue here.
from openwhisk-package-cloudant.
looks like a regression due to PR 164. query_params should not be required.
from openwhisk-package-cloudant.
@csantanapr - this can be closed. PR #166 fixed this.
from openwhisk-package-cloudant.
Related Issues (20)
- Write with Overwrite = true fails if doc doesn't exist HOT 2
- cloudant package : create and delete trigger should should verify creation or deletion HOT 2
- remove step to set namespace from the docs
- wsk package refresh : giving error HOT 1
- An error in Dockerfile HOT 1
- Missing develop document for how to install this package to a OpenWhisk environment
- pin node dependencies to the specific versions ie. remove ^
- Package should prefer _selector filters over JavaScript filter functions
- Replace the binary Wsk with REST interface WskRest HOT 1
- Consider needle package
- manage-bulk-documents action fails with incorrect Cloudant request body
- in-code docs have hrefs to non-existant pages
- Allow actions to accept db protocol as parameter HOT 4
- The port of whisk api is hard-coded while provider firing a trigger HOT 1
- Binding to IBMCloud cloudant instance HOT 2
- Support IAM keys for Cloudant instances HOT 6
- Cannot create trigger with cloudant/changes feed
- update action from nodejs:6 to nodejs:10
- deprecated name "Bluemix"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwhisk-package-cloudant.