bchavez / RethinkDb.Driver

:headphones: A NoSQL C#/.NET RethinkDB database driver with 100% ReQL API coverage.
http://rethinkdb.com/api/java
Other
384 stars 134 forks source link

Connection.Server error when using proxy #94

Closed stefanprodan closed 8 years ago

stefanprodan commented 8 years ago

Hi,

I using a RethinkDb proxy and when I call Connection.Server() I'm getting this:

dbug: RethinkDb.Driver[0]
      JSON Recv: Token: 2, JSON: {"t":5,"r":[{"id":"proxy-a711d91a-c391-4161-9a00-51b754a2477f","proxy":true}]}
dbug: LogWatcher.RethinkDbKeepAlive[1001]
      Error converting value "proxy-a711d91a-c391-4161-9a00-51b754a2477f" to type 'System.Guid'. Path 'r[0].id'. Newtonsoft.Json.JsonSerializationException: Error converting value "proxy-a711d91a-c391-4161-9a00-51b754a2477f" to type 'System.Guid'. Path 'r[0].id'. ---> System.ArgumentException: Could not cast or convert from System.String to System.Guid.
   at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable(Object value, Type initialType, Type targetType)

Looks like the server guid has a proxy prefix.

bchavez commented 8 years ago

Yuuup; :scream_cat: and here I thought I was being nice trying to convert the id into a Guid for you.

I'll get this fixed asap.

:car: :police_car: :rotatinglight: [**"Drive it like you stole it..."**_](https://www.youtube.com/watch?v=dd00Qh9yZUg)

bchavez commented 8 years ago

Hey @stefanprodan , RethinkDb.Driver v2.3.14 has been published. Should be available for consumption soon as NuGet updates their package index (within 15 minutes or so).

Thanks again for driving down the bug count in the driver. I really appreciate it.

:violin: :palmtree: [**"'Cause it's a bittersweet symphony, this life..."**_](https://www.youtube.com/watch?v=1lyu1KKwC74)

stefanprodan commented 8 years ago

Great, thank you