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
* Enhance logging to include CF-RAY ID in error messages for fetch failures.
* Bump version to 9.4.5 in Constants.java and gradle.properties
* Add tests to verify CF-RAY ID inclusion in timeout and unexpected error responses
* Fixes based on review
* Retrieve CF-RAY ID from response header in onResponse method
Copy file name to clipboardExpand all lines: src/main/java/com/configcat/ConfigCatLogMessages.java
+24-5Lines changed: 24 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,17 @@ final class ConfigCatLogMessages {
20
20
* Log message for Config Service Cache Read error. The log eventId is 2200.
21
21
*/
22
22
publicstaticfinalStringCONFIG_SERVICE_CACHE_READ_ERROR = "Error occurred while reading the cache.";
23
-
/**
24
-
* Log message for Fetch Failed Due To Unexpected error. The log eventId is 1103.
25
-
*/
26
-
publicstaticfinalStringFETCH_FAILED_DUE_TO_UNEXPECTED_ERROR = "Unexpected error occurred while trying to fetch config JSON. It is most likely due to a local network issue. Please make sure your application can reach the ConfigCat CDN servers (or your proxy server) over HTTP.";
27
23
28
24
/**
29
25
* Log message for Fetch Failed Due To Invalid Sdk Key error. The log eventId is 1100.
30
26
*/
31
27
privatestaticfinalStringFETCH_FAILED_DUE_TO_INVALID_SDK_KEY_ERROR = "Your SDK Key seems to be wrong. You can find the valid SDK Key at https://app.configcat.com/sdkkey";
28
+
29
+
/**
30
+
* Log message for Fetch Failed Due To Unexpected error. The log eventId is 1103.
31
+
*/
32
+
privatestaticfinalStringFETCH_FAILED_DUE_TO_UNEXPECTED_ERROR = "Unexpected error occurred while trying to fetch config JSON. It is most likely due to a local network issue. Please make sure your application can reach the ConfigCat CDN servers (or your proxy server) over HTTP.";
33
+
32
34
/**
33
35
* Log message for Fetch Failed Due To Redirect Loop error. The log eventId is 1104.
34
36
*/
@@ -167,12 +169,29 @@ public static FormattableLogMessage getFetchFailedDueToUnexpectedHttpResponse(fi
167
169
* @param connectTimeoutMillis Connect timeout in milliseconds.
168
170
* @param readTimeoutMillis Read timeout in milliseconds.
169
171
* @param writeTimeoutMillis Write timeout in milliseconds.
172
+
* @param cfRayId The http response CF-RAY header value.
0 commit comments