Azure / azure-iot-sdk-node

A Node.js SDK for connecting devices to Microsoft Azure IoT services
https://docs.microsoft.com/en-us/azure/iot-hub/
Other
261 stars 227 forks source link

saw HPE_HEADER_OVERFLOW when get registrations for an enrollmentGroup #1022

Closed whereiseva closed 3 years ago

whereiseva commented 3 years ago

We use ProvisioningServiceClient.createEnrollmentGroupDeviceRegistrationStateQuery() from SDK to get registration and we don't set header on our side, but saw HPE_HEADER_OVERFLOW error.

Can someone please help?

exception we got pasted below: {"stack":"Error: Parse Error: Header overflow\n at TLSSocket.socketOnData (_http_client.js:515:22)\n at TLSSocket.emit (events.js:400:28)\n at addChunk (internal/streams/readable.js:290:12)\n at readableAddChunk (internal/streams/readable.js:265:9)\n at TLSSocket.Readable.push (internal/streams/readable.js:204:10)\n at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)","message":"Parse Error: Header overflow","code":"HPE_HEADER_OVERFLOW","bytesParsed":112,"reason":"Header overflow","rawPacket":{"type":"Buffer","data":[50,78,66,90,48,78,66,81,48,70,66,90,49,74,110,81,85,70,67,81,85,70,51,81,48,70,86,83,86,90,66,82,85,70,71,82,86,70,66,81,85,116,66,81,85,108,66,82,85,69,57,73,105,119,105,99,109,70,117,90,50,85,105,79,110,115,105,98,87,108,117,73,106,111,105,73,105,119,105,98,87,70,52,73,106,111,105,77,68,86,68,77,85,77,53,81,48,81,50,78,122,77,122,79,84,103,105,102,88,48,61,13,10,13,10,52,48,48,48,13,10,91,123,34,114,101,103,105,115,116,114,97,116,105,111,110,73,100,34,58,34,80,108,111,111,109,95,88,95,69,66,49,82,71,77,52,55,34,44,34,99,114,101,97,116,101,100,68,97,116,101,84,105,109,101,85,116,99,34,58,34,50,48,50,49,45,48,54,45,50,52,84,49,55,58,51,48,58,48,48,46,48,52,57,48,51,57,55,90,34,44,34,97,115,115,105,103,110,101,100,72,117,98,34,58,34,105,111,116,99,45,100,51,50,99,52,100,51,99,45,49,101,52,97,45,52,48,54,54,45,57,50,53,98,45,99,102,49,52,99,56,102,51,57,55,48,100,46,97,122,117,114,101,45,100,101,118,105,99,101,115,46,110,101,116,34,44,34,100,101,118,105,99,101,73,100,34,58,34,80,108,111,111,109,95,88,95,69,66,49,82,71,77,52,55,34,44,34,115,116,97,116,117,115,34,58,34,97,115,115,105,103,110,101,100,34,44,34,115,117,98,115,116,97,116,117,115,34,58,34,105,110,105,116,105,97,108,65,115,115,105,103,110,109,101,110,116,34,44,34,108,97,115,116,85,112,100,97,116,101,100,68,97,116,101,84,105,109,101,85,116,99,34,58,34,50,48,50,49,45,48,54,45,50,52,84,49,55,58,51,48,58,48,48,46,50,56,49,53,57,55,50,90,34,44,34,101,116,97,103,34,58,34,73,106,74,107,77,68,78,106,79,84,103,122,76,84,65,119,77,68,65,116,77,106,81,119,77,67,48,119,77,68,65,119,76,84,89,119,90,68,82,106,77,84,69,52,77,68,65,119,77,67,73,61,34,125,44,123,34,114,101,103,105,115,116,114,97,116,105,111,110,73,100,34,58,34,80,108,111,111,109,95,88,95,81,67,68,82,87,53,69,83,34,44,34,99,114,101,97,116,101,100,68,97,116,101,84,105,109,101,85,116,99,34,58,34,50,48,50,49,45,48,54,45,50,52,84,49,55,58,51,48,58,49,55,46,49,53,53,49,54,53,51,90,34,44,34,97,115,115,105,103,110,101,100,72,117,98,34,58,34,105,111,116,99,45,100,51,50,99,52,100,51,99,45,49,101,52,97,45,52,48,54,54,45,57,50,53,98,45,99,102,49,52,99,56,102,51,57,55,48,100,46,97,122,117,114,101,45,100,101,118,105,99,101,115,46,110,101,116,34,44,34,100,101,118,105,99,101,73,100,34,58,34,80,108,111,111,109,95,88,95,81,67,68,82,87,53,69,83,34,44,34,115,116,97,116,117,115,34,58,34,97,115,115,105,103,110,101,100,34,44,34,115,117,98,115,116,97,116,117,115,34,58,34,105,110,105,116,105,97,108,65,115,115,105,103,110,109,101,110,116,34,44,34,108,97,115,116,85,112,100,97,116,101,100,68,97,116,101,84,105,109,101,85,116,99,34,58,34,50,48,50,

anthonyvercolano commented 3 years ago

Could you give a little more information about the scenario? Would you be able to give steps to repro this? The first hit I got from googling this was pretty interesting stack overflow

anthonyvercolano commented 3 years ago

Closing due to inactivity. If you have more info, you may certainly re-open this