Coder Social home page Coder Social logo

Comments (4)

csantanapr avatar csantanapr commented on August 20, 2024

@eweiter

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.

eweiter avatar eweiter commented on August 20, 2024

@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.

jasonpet avatar jasonpet commented on August 20, 2024

looks like a regression due to PR 164. query_params should not be required.

from openwhisk-package-cloudant.

jasonpet avatar jasonpet commented on August 20, 2024

@csantanapr - this can be closed. PR #166 fixed this.

from openwhisk-package-cloudant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.