Baoyuantop commented on issue #13357: URL: https://github.com/apache/apisix/issues/13357#issuecomment-4549893373
The second argument of Lua error() should be a numeric stack level, but the current code can pass an encoded string there, which causes a secondary bad argument #2 error and hides the original problem. The fix should format the full error message as a single string instead of passing the JSON string as the second argument. It would be good to add a regression test for the missing parent/resource-key path and quickly scan for similar error(message, string) patterns. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
