Hello,
We have an application with an Api, and today when I try to update my profile information, sending a post to the server, the api returns an error.

The error is below:

2024/08/13 13:14:39 [error] 20110#0: *94319730 lua entry thread aborted: runtime error: /www/server/btwaf/init.lua:1328: attempt to compare number with nil
stack traceback:
coroutine 0:
/www/server/btwaf/init.lua: in function 'post'
/www/server/btwaf/init.lua:3751: in function 'run_btwaf'
/www/server/btwaf/waf.lua:14: in function </www/server/btwaf/waf.lua:1>, client: 179.130.78.18, server: genesisapi.diskingressos.com.br, request: "PUT /client/update HTTP/2.0", host: "genesisapi.diskingressos.com.br", referrer: "https://www.diskingressos.com.br/"

I whitelisted the URL in waf and the request works normally.

What can I do to resolve this error?

System: CentOS 7.9.2009 x86_64(Py3.7.9)
aaPanel Version: 6.8.33
Nginx WAF Version: 8.8.4

    Hello,
    I update the nginx and aaPanel, to the latest version, i can't update the profile informations yet.

    In the log's, doesn't show any error's.

    I create a new profile and the update worked, it's possible that the data lenght is to long and the waf is blocking?

    It's resolved.

    The problem is in the data length, i remove some data that isn't necessary for the request, and its worked properly.

    Thanks.

    Thank you for your feedback, we will give it to the developers for processing.