Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
DataGrid Sprint #32, DataGrid Sprint #33, DataGrid Sprint #34, DataGrid Sprint #35, DataGrid Sprint #36, DataGrid Sprint #37, DataGrid Sprint #38
Description
Start server-ng and create a cache named 'default':
curl -v -XPOST -d '{"distributed-cache":{"mode": "SYNC"}}' -H "Content-type: application/json" http://localhost:11222/rest/v2/caches/default
Try to put an entry using HTTP/2
curl -v -XPOST -d '1' -H "Content-type: application/json" http://localhost:11222/rest/v2/caches/default/1 --http2
Error 413 is received:
* Trying ::1:11222... * TCP_NODELAY set * connect to ::1 port 11222 failed: Connection refused * Trying 127.0.0.1:11222... * TCP_NODELAY set * Connected to localhost (127.0.0.1) port 11222 (#0) > POST /rest/v2/caches/default/1 HTTP/1.1 > Host: localhost:11222 > User-Agent: curl/7.65.3 > Accept: */* > Connection: Upgrade, HTTP2-Settings > Upgrade: h2c > HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA > Content-type: application/json > Content-Length: 1 > * upload completely sent off: 1 out of 1 bytes * Mark bundle as not supporting multiuse < HTTP/1.1 413 Request Entity Too Large < content-length: 0 < * Connection #0 to host localhost left intact
The same command line without http/2 succeeds