cakephp-rest icon indicating copy to clipboard operation
cakephp-rest copied to clipboard

Call to undefined method App\Controller\ErrorController::getResponse()

Open ekocahyonugroho opened this issue 5 years ago • 1 comments

I am using Cake PHP 3.4.2 and install this plugin using this command composer require sprintcube/cakephp-rest

Then I followed this simple tutorial https://www.codementor.io/@narendravaghela/building-rest-apis-using-cakephp-3-x-k9br8qo2a

But got the error code Call to undefined method App\Controller\ErrorController::getResponse()

I do not understand why getResponse() undefined method in /vendor/sprintcube/cakephp-rest/src/Error/RestExceptionRendered.php file

Please give me some insights

ekocahyonugroho avatar Sep 15 '20 16:09 ekocahyonugroho

I am getting the same error but ONLY when I add 'requireAuthorization' => true to the routes controller. Anything without this works fine. I also note the 'isRest' => true is not required at all, the route works as an API with or without this.

However, given this project hasn't been touched since 2019 I'm going to say we aren't going to get any support.

joelrozen avatar Apr 15 '21 00:04 joelrozen