arcus-smart-home / arcusplatform

Java Based Arcus Platform and Agent Components
Apache License 2.0
86 stars 50 forks source link

missing gzip compression support in platform-client #94

Open pupper68k opened 5 years ago

pupper68k commented 5 years ago

Client applications that use NettyIrisClient2 do not support gzip compressed payloads. This causes the Android client to choke up on http 200 responses like so:

E/CORNEA: main BaseModelProvider Unable to load models
    com.iris.client.exception.ErrorResponseException: [http.error.200]: [Payload redacted before posting to github]

In the logs the payloads turn out as unrenderable garbled nonsense text.

AndrewX192 commented 5 years ago

This is a problem because arcus-k8 sticks nginx in-front of client-bridge, which adds gzip compression.

AndrewX192 commented 4 years ago

@pupper68k can you put up the code you wrote to fix this? @eanderso is working on arcusandroid and it would be great if we can get this integrated into arcusandroid sooner than later.