mrroth commented on issue #8469:
URL: https://github.com/apache/pulsar/issues/8469#issuecomment-1335752527
I believe we are seeing the same issue in Pulsar 2.10.2 (Docker):
```bash
pulsar-admin --admin-url $ADMIN_URL --auth-plugin $AUTH_PLUGIN --auth-params
$AUTH_TOKEN functions create \
--classname com.example.MyFunction \
--tenant mytenant \
--namespace mynamespace \
--inputs persistent://mytenant/mynamespace/mytopic \
--jar file:///functions/myfunction-0.1.0.jar \
--output persistent://mytenant/mynamespace/mytopic \
--name myfunction \
--parallelism 5 \
--retain-key-ordering \
--window-length-duration-ms 1000 \
--user-config '{"hello":"world"}'
2022-12-02T19:33:27,575+0000 [AsyncHttpClient-7-1] WARN
org.apache.pulsar.client.admin.internal.BaseResource -
[http://pulsar-broker.pulsar.svc.cluster.local:8080/admin/v3/functions/mytenant/mynamespace/myfunction]
Failed to perform http post request: javax.ws.rs.BadRequestException: HTTP 400
Bad Request
Cannot load from object array because "typeArgs" is null
Reason: Cannot load from object array because "typeArgs" is null
```
I see the same outcome if I use `--window-length-count`. If I remove the
`--window-length-duration-ms` option, it works.
```
Created successfully
```
--
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]