401 error from BSC speedy node on block trace request

I’m getting 401 errors when trying to get block traces from the BSC speedy node:

import requests
headers={'Content-Type': 'application/json'}
data='{"method":"debug_traceBlockByNumber","params":["0xc7e552",{"timeout":"15s", "tracer":"callTracer"}],"id":1,"jsonrpc":"2.0"}'
requests.post(nodeUrl, headers = headers, data=data)

The response code is 401 and the text is “Unauthorized”


we have an whitelist and we allow only a set of method names to be sent to the node, this may be the case here with debug_traceBlockByNumber call