Call to undefined method Fusio\\Worker\\Generated\\Request::getBody()

39 views
Skip to first unread message

Hazem Muna

unread,
Apr 23, 2023, 12:40:11 PM4/23/23
to Fusio
Hi,

I have switched from using php sandbox to php worker and now I'm getting the following error when calling $body = $request->getBody();

Call to undefined method Fusio\\Worker\\Generated\\Request::getBody()"

Seems to be undefined method when using php-worker implementation.

What is the proper way for accessing request body for post and get?

Appreciate your help and guidance..

Thanks,
 

Christoph Kappestein

unread,
May 3, 2023, 6:27:58 AM5/3/23
to Fusio
Hi Munait,

so the request contains an "http" property which contains the HTTP request where you can access the body,
you can also take a look at our thrift file s.
which we use to generate the actual worker client.

best regards
Christoph
Reply all
Reply to author
Forward
0 new messages