-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couchdb 2.3 changed the purge_seq field in the DbInfo
response to be a string. This now throws java.lang.NumberFormatException
#73
Comments
Hi Simon, I discovered the same issue for myself with CouchDB 2.3.1 and lightcouch 0.2.0. Did you find a workaround or did you switch to another lib? The lightcouch project seems pretty inactive ... |
Hi, fyi, a new release of lightcouch is rolling now for the compatibility with CouchDB 2.3 best regards |
Will the new release be ready soon? I don't see any commits newer than 2017, am I blind? |
Apologies. The owner of the project was na. A new release ships today. |
Sorry, but I dont understand why you have deleted my comment. |
Fix of lightcouch#73 (DbInfo mapping)
Maybe need to add
purge_seq
getter onDbInfo
class that returns seq asString
Here's the stack trace:
jvm 1 | com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: "0-g1AAAABXeJzLYWBgYMpgTmEQTM4vTc5ISXLIyU9OzMnILy7JAUnlsQBJhgYg9R8IshIZ8KhNZEiqhyjKAgBm5Rxs"
jvm 1 | at com.google.gson.internal.bind.TypeAdapters$11.read(TypeAdapters.java:306)
jvm 1 | at com.google.gson.internal.bind.TypeAdapters$11.read(TypeAdapters.java:296)
jvm 1 | at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
jvm 1 | at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
jvm 1 | at com.google.gson.Gson.fromJson(Gson.java:927)
jvm 1 | at com.google.gson.Gson.fromJson(Gson.java:865)
jvm 1 | at org.lightcouch.CouchDbClientBase.get(CouchDbClientBase.java:553)
jvm 1 | at org.lightcouch.CouchDbContext.info(CouchDbContext.java:113)
The text was updated successfully, but these errors were encountered: