testnet.bitfinity.network
is not a DFINITY run HTTP Gateway, so I don’t know how it has been implemented but it seems to not be following the same behavior.
If so, how can I call the raw endpoint on the local dfx node?
Can you try with ${CANISTER_ID}.raw.localhost:${DFX_WEBSERVER_PORT}
?