Closed marcosroriz closed 2 years ago
Erro interno ao tentar criar um usuário diretamente (já ativado).
POST https://sete.transportesufg.eng.br/users/sete/5201405
Corpo:
{ "nome": "AAAA", "email": "nilan14763@kruay.com", "password": "e10adc3949ba59abbe56e057f20f883e", "cpf": "73332518020", "telefone": "(11) 11111-1111", "tipo_permissao": "editor" }
Resposta:
{ "trace": [ { "file": "/var/www/seteAPI/module/Sete/src/V1/Rest/User/UserResource.php", "line": 44, "function": "processarUpdate", "class": "Sete\\V1\\Rest\\User\\UserModel", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas-api-tools/api-tools-rest/src/AbstractResourceListener.php", "line": 172, "function": "create", "class": "Sete\\V1\\Rest\\User\\UserResource", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-eventmanager/src/EventManager.php", "line": 319, "function": "dispatch", "class": "Laminas\\ApiTools\\Rest\\AbstractResourceListener", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-eventmanager/src/EventManager.php", "line": 179, "function": "triggerListeners", "class": "Laminas\\EventManager\\EventManager", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas-api-tools/api-tools-rest/src/Resource.php", "line": 549, "function": "triggerEventUntil", "class": "Laminas\\EventManager\\EventManager", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas-api-tools/api-tools-rest/src/Resource.php", "line": 242, "function": "triggerEvent", "class": "Laminas\\ApiTools\\Rest\\Resource", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas-api-tools/api-tools-rest/src/RestController.php", "line": 373, "function": "create", "class": "Laminas\\ApiTools\\Rest\\Resource", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas-api-tools/api-tools-rest/src/RestController.php", "line": 895, "function": "create", "class": "Laminas\\ApiTools\\Rest\\RestController", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-mvc/src/Controller/AbstractRestfulController.php", "line": 423, "function": "processPostData", "class": "Laminas\\ApiTools\\Rest\\RestController", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas-api-tools/api-tools-rest/src/RestController.php", "line": 335, "function": "onDispatch", "class": "Laminas\\Mvc\\Controller\\AbstractRestfulController", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-eventmanager/src/EventManager.php", "line": 319, "function": "onDispatch", "class": "Laminas\\ApiTools\\Rest\\RestController", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-eventmanager/src/EventManager.php", "line": 179, "function": "triggerListeners", "class": "Laminas\\EventManager\\EventManager", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php", "line": 97, "function": "triggerEventUntil", "class": "Laminas\\EventManager\\EventManager", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-mvc/src/Controller/AbstractRestfulController.php", "line": 307, "function": "dispatch", "class": "Laminas\\Mvc\\Controller\\AbstractController", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-mvc/src/DispatchListener.php", "line": 132, "function": "dispatch", "class": "Laminas\\Mvc\\Controller\\AbstractRestfulController", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-eventmanager/src/EventManager.php", "line": 319, "function": "onDispatch", "class": "Laminas\\Mvc\\DispatchListener", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-eventmanager/src/EventManager.php", "line": 179, "function": "triggerListeners", "class": "Laminas\\EventManager\\EventManager", "type": "->" }, { "file": "/var/www/seteAPI/vendor/laminas/laminas-mvc/src/Application.php", "line": 325, "function": "triggerEventUntil", "class": "Laminas\\EventManager\\EventManager", "type": "->" }, { "file": "/var/www/seteAPI/public/index.php", "line": 73, "function": "run", "class": "Laminas\\Mvc\\Application", "type": "->" } ], "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Internal Server Error", "status": 500, "detail": "Too few arguments to function Sete\\V1\\Rest\\User\\UserModel::processarUpdate(), 2 passed in /var/www/seteAPI/module/Sete/src/V1/Rest/User/UserResource.php on line 44 and exactly 3 expected" }
@marcosroriz feita a correção.
Erro interno ao tentar criar um usuário diretamente (já ativado).
POST https://sete.transportesufg.eng.br/users/sete/5201405
Corpo:
Resposta: