I have a custom connector for an endpoint that requires a query parameter called 'filters' that is a string of IDs. Each ID is about 17 chars long. The connector is sending the request via an on-premises gateway.
I have found that I get a 500 response as below if I send a long list of IDs in the query parameter. The request never makes it to the endpoint so this error is generated somewhere along the way (I have set up a reverse proxy to monitor the request sent from the custom connector and nothing arrives at the proxy)
"message": "Received error payload from gateway service with ID 761229: <ccon>Error parsing HTTP message header byte 16756 of message System.Byte[].</ccon>.\r\nclientRequestId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"error": {
"message": "Received error payload from gateway service with ID 761229: <ccon>Error parsing HTTP message header byte 16756 of message System.Byte[].</ccon>."
},
"source": "gatewayconnector-ase.azconn-ase-001.p.azurewebsites.net"
}
If I reduce the size of the query parameter by removing some IDs, the request makes it to the reverse proxy ok and is processed correctly by the endpoint with a 200 response received.
It seems that there is a limitiation somewhere, probably related to size of URL that is preventing the request making it out of the gateway to the endpoint.
Fails: URL length 508 chars, filter query param length 239 chars
Succeeds: URL length 468 chars, filter query param length 199 chars
Does anyone know what the limitation I am hitting is and is this something that can be configured so that I can send longer query parameters?