Problems with returned data from Custom Events(php)

I’ve created custom event



public function handleEvent( $runner_context, $event_args ) {
  print("hello event received! " . print_r($event_args, 1));
  print("RETURNING event args");
  return $event_args;
}

Than after dispatching(with ios app ) I’m receiving such unexpected results:

    in local debug mode - async request return empty result in production(after deploy) - error *** Terminating app due to uncaught exception of class 'Fault'
Currently custom events works only locally without async Please fix it.

Hello,

Could you please show the code you use to invoke the custom event and how you check the result?

Regards,
Mark

Custom handler:

/** @annot( { "handleEvent":{"Async":"true"}} ) */

 public function handleEvent( $runner_context, $event_args ) {
 return $event_args;
 }

and ios code:

 Backendless.sharedInstance().events.dispatch("processVKUser", args: ["userData" : "123", "accessToken": "456"], response: { (resp) -> Void in
 print("Backendless event response:")
 print(resp)
 }) { (err) -> Void in
 print("Error! \(err.description)")
 }

 //let a = Backendless.sharedInstance().events.dispatch("processVKUser", args: ["userData" : "123", "accessToken": "456"])
 //print(a)

Thank you. How long ago did you get PHP CodeRunner? There were a few changes in the past few weeks and one of them was with custom events.

Also, could you please confirm if the event handler shows up in the Debug tab of the Business Logic screen?

Regards,
Mark

I’ve get CodeRunner today from CodeGeneration tab at Business Logic section.

When async execution failed - i’ve replace lib/ and core/ folder with fresh ones from git repository.
But problem with async still exists.

During debug and production I’m able to see my custom handler at “Debug”/“production” tabs

Hi, do you still experience any problems?