The error was created by curl version used at the time which was 8.1.2. If you are experiencing unexpected 43 BAD_FUNCTION_ARGUMENT errors please update your curl. At the time of writing curl 8.7.1 does not produce this error.