You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently evaluating the use of the ConfigCat Proxy in our environment to reduce the network traffic and config download stress issued against the ConfigCat platform.
During the evaluation I faced some issues with basic connectivity with a sample Golang application.
As demonstrated in the Proxy documentation I started a local Proxy Container instance containing a demo SDK Key with identifier.
Then to verify the Client connection I wrote simple Golang application, initialising the ConfigCat client with the Proxy as BaseURL and my Key identifier.
During client registration I see following error message:
go run .
INFO[0000] [0] fetching from http://127.0.0.1:8050
ERRO[0000] [1103] config fetch failed: unexpected error occurred while trying to fetch config JSON: Get "http://127.0.0.1:8050/configuration-files/my_demo/config_v5.json": context canceled
To reproduce
Create a ConfigCat config with a FeatureFlag. In my case a TextFlag with "Hello World!" as string.
Start a Golang Client.
In this example I made it a little HTTP server because it was further used in Docker Compose to verify the stack, but running as go run . should do fine.
Hi @dirsigler, I've released a new version from the Proxy (v0.2.4). I've identified an issue related to the GZip compression of HTTP responses which is utilized by Go's http client by default. Other platforms you mentioned possibly not requested the response compressed so they got it correctly.
Could you please check the latest Proxy version that it works on your end as expected? Thanks!
At least for my local test stack this solution works without any problems. Therefore I would assume this issue closed.
Thank you very much for your help.
Describe the bug
We are currently evaluating the use of the ConfigCat Proxy in our environment to reduce the network traffic and config download stress issued against the ConfigCat platform.
During the evaluation I faced some issues with basic connectivity with a sample Golang application.
As demonstrated in the Proxy documentation I started a local Proxy Container instance containing a demo SDK Key with identifier.
Then to verify the Client connection I wrote simple Golang application, initialising the ConfigCat client with the Proxy as BaseURL and my Key identifier.
During client registration I see following error message:
To reproduce
Create a ConfigCat config with a FeatureFlag. In my case a TextFlag with "Hello World!" as string.
In this example I made it a little HTTP server because it was further used in Docker Compose to verify the stack, but running as
go run .
should do fine.Expected behavior
The Golang application should connect to the proxy and access the FeatureFlag.
Currently solutions via
curl
andpython
work as expected locally:python main.py Hello World!
Screenshots
The text was updated successfully, but these errors were encountered: