Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 876e1d3

Browse files
author
Dan Richelson
committed
Update documentation. Add url to log statement.
1 parent f612b40 commit 876e1d3

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,28 @@ Your first feature flag
3737
// the code to run if the feature is off
3838
}
3939

40+
Troubleshooting
41+
---------------
42+
1. Json parsing exception: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was....ExceptionType: com.google.gson.JsonSyntaxException
43+
Make sure your build tool is bringing in the proper version of Gson. The LaunchDarkly SDK may have problems with versions earlier than 2.2.4. To enforce the proper version add this dependency:
44+
```
45+
<dependency>
46+
<groupId>com.google.code.gson</groupId>
47+
<artifactId>gson</artifactId>
48+
<version>2.2.4</version>
49+
</dependency>
50+
```
51+
52+
1. SSL exceptions when calling toggle():
53+
Make sure your build tool is bringing in the proper version of the Apache http client. The LaunchDarkly SDK may have problems with versions earlier than 3.3.6. To enforce the proper version add this dependency:
54+
```
55+
<dependency>
56+
<groupId>org.apache.httpcomponents</groupId>
57+
<artifactId>httpclient</artifactId>
58+
<version>4.3.6</version>
59+
</dependency>
60+
```
61+
4062
Learn more
4163
----------
4264

src/main/java/com/launchdarkly/client/EventProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void flush() {
8181
}
8282

8383
private void postEvents(List<Event> events) {
84-
logger.debug("Posting " + events.size() + " event(s)..");
84+
logger.debug("Posting " + events.size() + " event(s) to " + config.eventsURI);
8585
CloseableHttpResponse response = null;
8686
Gson gson = new Gson();
8787
String json = gson.toJson(events);

0 commit comments

Comments
 (0)