Log message #4212742

# At Username Text
# Nov 7th 2019, 14:19 alexdd55976 exisiting application?
# Nov 7th 2019, 14:19 alexdd55976 how did you ran into it?
# Nov 7th 2019, 14:18 jotpe Should be the same
# Nov 7th 2019, 14:18 alexdd55976 path to application
# Nov 7th 2019, 14:17 jotpe What do you mean with path?
# Nov 7th 2019, 14:17 jotpe htaccess didn't changed
# Nov 7th 2019, 14:16 alexdd55976 DB connection
# Nov 7th 2019, 14:16 alexdd55976 path
# Nov 7th 2019, 14:16 alexdd55976 htaccess?
# Nov 7th 2019, 14:15 jotpe Logs don't tell anything :S
# Nov 7th 2019, 14:15 jotpe What could cause a app not working http 500 and `bin/cake` not working?
# Nov 7th 2019, 13:07 dereuromark happens sometimes that it responds with timeout/500 or otherwise and next request then is fine again
# Nov 7th 2019, 13:07 dereuromark it adds the huge benfit of auto-resend if API gateway has a small failure.
# Nov 7th 2019, 13:07 dereuromark also usually good docs.
# Nov 7th 2019, 13:06 dereuromark sure, i bet for both
# Nov 7th 2019, 13:05 jotpe @dereuromark is there a example for async usage of cakephp-email-queue or cakephp-queue?
# Nov 7th 2019, 13:01 dev.cyrusjayson it just a sample. just the way how I put http error code. thanks a lot @eduardo.miguel
# Nov 7th 2019, 13:00 eduardo.miguel i never try to tinker with 200 or 500, maybe some 4xx ... nice
# Nov 7th 2019, 12:59 dev.cyrusjayson oh it works! hahaha
# Nov 7th 2019, 12:59 dev.cyrusjayson didnt work
# Nov 7th 2019, 12:58 eduardo.miguel @dev.cyrusjayson response->withStatus(500);
# Nov 7th 2019, 12:58 dereuromark @jotpe Make it async, use queue. best not to tigger stuff sync if not needed
# Nov 7th 2019, 12:55 dev.cyrusjayson how to set http error code 200 or 500? ``` $this->response = $this->response ->withType('application/json') ->withStringBody(json_encode([ 'data'=>$data ]));```
# Nov 7th 2019, 12:53 jotpe https://github.com/lorenzo/cakephp-email-queue
# Nov 7th 2019, 12:52 jotpe Acutally I use a queue, but want to trigger the shell command
# Nov 7th 2019, 12:51 jotpe @dereuromark you mean for the shell command?
# Nov 7th 2019, 12:49 peter349 $this->post('/api/internal/occasions',$data); im getting a 404 for this
# Nov 7th 2019, 12:48 peter349 but how should i call it in the test?
# Nov 7th 2019, 12:48 peter349 through ajax id be using `/api/internal/occasions.json`
# Nov 7th 2019, 12:48 peter349 @admad Im using a crud plugin, with .json route for the api
# Nov 7th 2019, 12:44 admad @peter349 https://book.cakephp.org/3/en/development/testing.html#controller-integration-testing
# Nov 7th 2019, 12:39 dereuromark If it can be async use queue^^
# Nov 7th 2019, 12:31 jotpe Oh nice thanks @rajpalsingh.jecrc :slightly_smiling_face:
# Nov 7th 2019, 12:30 peter349 i need to test a POST action
# Nov 7th 2019, 12:29 peter349 Hi , how do I perform integration test for cakephp api
# Nov 7th 2019, 12:28 rajpalsingh.jecrc https://medium.com/@narendravaghela/cakephp-execute-shell-command-from-controller-90c8323558a @jotpe this can help you
# Nov 7th 2019, 12:18 jotpe Is it possible to trigger a console command via controller action/request?
# Nov 7th 2019, 12:14 nayakvradhit Ok thanks
# Nov 7th 2019, 12:05 rochasmarcelo Also if you check the docs there is a page for configurations https://github.com/CakeDC/users/blob/master/Docs/Documentation/Configuration.md
# Nov 7th 2019, 12:04 rochasmarcelo Products controller does not exists in Users plugin
# Nov 7th 2019, 12:04 rochasmarcelo You must add 'plugin' => false