I have an afterPublish handler on all the channels (*). When I deploy it in debug after each execution it throws a kind of SSL exception in the CodeRunner console, but when published it works just ok for a time.
After a time it stops working. I found out that it stops working after I access the Business Logic tab in the development console.
Code does not run at all
I tried to add another handler (an afterCreate handler on a table) but it does not run at all. When I connect the remote debugger and place a breakpoint inside the method it does not hit that breakpoint.
I have the same problem.
My script is running in debug, but when I publish, the script is not run or not enabled.
And I have “Successfully published” and enabled checked in Production
Can you help me please ?
My scripts works in debug, if I left my command opened
But if I deploy my scripts in production, nothing run
Something is wrong ? Is it necessary to create an API service for the execution of the script or is it ok without this ?
Please, provide code example with which i can be able to reproduce described behaviour.
Because i have tried, and for me all works fine.
Maybe you make request to blocked external hosts or system calls ?
Try to make any simple action in your business logic code. Please, write the result.