shibd commented on PR #322:
URL:
https://github.com/apache/pulsar-client-node/pull/322#issuecomment-1539309252
```
2023-05-09T02:41:35,995+0000 [pulsar-web-48-8] WARN
org.eclipse.jetty.server.HttpChannelState - unhandled due to prior sendError
javax.servlet.ServletException: javax.servlet.ServletException:
java.lang.NumberFormatException: For input string: ""4""
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:162)
~[org.eclipse.jetty-jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622]
at
org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:181)
~[org.eclipse.jetty-jetty-server-9.4.48.v20220622.jar:9.4.48.v20220622]
```
Maybe the request body format is invalid. Will cause the partition topic to
create failed.
1. You should assert the HTTP response code.
2. You should be change request body format:
```diff
- data: '4',
+ data: 4,
```
--
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]