Open ramunasd opened 4 years ago
It would be very nice to get original error message. Currently only technical info(not very usefull) is provided here: https://github.com/aerospike/aerospike-client-php/blob/652bd9cb9776a39f07b403e79fecdf3abf8420a0/src/client/log_handlers.c#L82
Hi @ramunasd,
This could be a udf registration issue. Stream udfs require that the udf is registered with both the server and the client. Please see this similar issue and the php client example.
https://discuss.aerospike.com/t/another-udf-error-100-debugging/3778 https://github.com/aerospike/aerospike-client-php/blob/master/examples/query_examples/aggregate.php
@dwelch-spike thanks for answer. Actually we tried to register functions right before aggregation but still no luck. Everythong works great from CLI even without single time register, while FPM fails almost every time.
@dwelch-spike would it possible to submit original error message to php error handler function as last parameter? This would not be a breaking change since all other params stays in same order.
We are getting error
UDF: Execution Error 1
when UDF function is executed using methodAerospike->aggregate()
. Lua functions on itself are correct and works perfectly when triggered using tool aql.Here is how we enable log output:
And output: