apache / openwhisk-package-kafka

Apache OpenWhisk package for communicating with Kafka or Message Hub
https://openwhisk.apache.org/
Apache License 2.0
33 stars 43 forks source link

check for 204 before attempting to fetch response json #255

Closed abaruni closed 6 years ago

abaruni commented 6 years ago

this is a fix needed for the removal of activation records for triggers that aren't bound to an action via a rule. when fetching the response json for the trigger fire, the python-requests library will raise an exception when there is no content. added a check for 204 explicitly and log a successful fire