You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/03/19 19:59:00 UTC

[GitHub] jasonpet opened a new pull request #163: validate that query_params is valid JSON

jasonpet opened a new pull request #163: validate that query_params is valid JSON
URL: https://github.com/apache/incubator-openwhisk-package-cloudant/pull/163
 
 
   If invalid JSON for query_params is passed to the cloudant-follow API it will throw an exception and crash the provider.
   
   /cloudantTrigger/node_modules/cloudant-follow/lib/feed.js:234
         query_params[key] = self[key];
                           ^
   
   TypeError: Cannot create property 'feed' on string 'tweet'
       at /cloudantTrigger/node_modules/cloudant-follow/lib/feed.js:234:25
       at Array.forEach (<anonymous>)
       at Feed.query_feed [as query] (/cloudantTrigger/node_modules/cloudant-follow/lib/feed.js:232:8)
       at Request.db_response [as _callback] (/cloudantTrigger/node_modules/cloudant-follow/lib/feed.js:216:17)
       at Request.self.callback (/cloudantTrigger/node_modules/request/request.js:186:22)
       at emitTwo (events.js:126:13)
       at Request.emit (events.js:214:7)
       at Request.<anonymous> (/cloudantTrigger/node_modules/request/request.js:1163:10)
       at emitOne (events.js:116:13)
       at Request.emit (events.js:211:7)
       at IncomingMessage.<anonymous> (/cloudantTrigger/node_modules/request/request.js:1085:12)
       at Object.onceWrapper (events.js:313:30)
       at emitNone (events.js:111:20)
       at IncomingMessage.emit (events.js:208:7)
       at endReadableNT (_stream_readable.js:1064:12)
       at _combinedTickCallback (internal/process/next_tick.js:138:11)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services