Trying to send none-json data with triggers fails due to Guzzle
Guzzle's Client::post
requires the second argument to be an array. This raises an Exception in case of non-json payloads:
FatalThrowableError
Argument 2 passed to GuzzleHttp\Client::post() must be of the type array, string given, called in /home/messerschmidt/Projects/lou-server/app/Trigger.php on line 27
Reproduce:
- Create a POST-Trigger with payload
fdskgesrw
and urlhttp://doesntexist.dfsafjdskgfds.fdsjfdsfdsg
. - Run the trigger.
TODO:
- Find out, how to send arbitrary POST-Requests with Guzzle.
- Implement changes in
app\Trigger.php::run
Edited by Maik Messerschmidt