I got an error while I pushing 20k devices in one go
VError: apn write failed: Stream closed with error code NGHTTP2_ENHANCE_YOUR_CALM
at ClientHttp2Stream.<anonymous> (/Users/max/test/link/app/node_modules/@parse/node-apn/lib/client.js:287:19)
at ClientHttp2Stream.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
jse_shortmsg: 'apn write failed',
jse_cause: Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_ENHANCE_YOUR_CALM
at new NodeError (node:internal/errors:405:5)
at ClientHttp2Stream._destroy (node:internal/http2/core:2346:13)
at _destroy (node:internal/streams/destroy:109:10)
at ClientHttp2Stream.destroy (node:internal/streams/destroy:71:5)
at Http2Stream.onStreamClose (node:internal/http2/core:552:12) {
code: 'ERR_HTTP2_STREAM_ERROR'
},
I got an error while I pushing 20k devices in one go
here's my code snippet
Are there any suggestions for pushing a large number of devices? Or should the user design the concurrent control by themselves?