When logging is used, a long-polling connection attempt fails with the following exception:
Failed to start the connection: Unable to connect to the server with any of the available transports. HttpTransportType.LongPolling failed: type 'Null' is not a subtype of type 'String' in type cast
The exception is thrown in the WebSupportingHttpClient class (line 72), when request.content is null, but is casted to String to build the log output text.
Suggestion:
Leave away the content length altogether, because the string content is printed anyways, and the length can easily be extracted.
When logging is used, a long-polling connection attempt fails with the following exception:
Failed to start the connection: Unable to connect to the server with any of the available transports. HttpTransportType.LongPolling failed: type 'Null' is not a subtype of type 'String' in type cast
The exception is thrown in the WebSupportingHttpClient class (line 72), when request.content is null, but is casted to String to build the log output text.
Suggestion: Leave away the content length altogether, because the string content is printed anyways, and the length can easily be extracted.