Closed InlineAsm closed 8 years ago
What local are you running in? I think it's an issue with the number format of the client or server? It should be a lat,long
The server is running on US locale. The clients with the problem are running on NL-nl.
I looked at the client source and the problem is (I think) in the eventbuilder.cs:
public EventBuilder SetGeo(double latitude, double longitude) {
Target.Geo = latitude + "," + longitude;
Hmm, yeah, guess we need to make sure that we specify the string format instead of letting it use the default.
@InlineAsm I have a fix for both server and client that fixes this issue. I'll try and getting a new client release out soon: https://github.com/exceptionless/Exceptionless.Net/commit/0a4e07ee458c73efbc213a615be756f37b8adfce
The server side is minor and you won't have to update. It's mainly the client that is broken under different cultures and needs the update.
Thank you very much for the fast response and fix!
I'm afraid the fix didn't fix it. You need to specify the CultureInfo.InvariantCulture in the ToString method to properly format the decimal with a point regardless of the culture. I missed it earlier when I was reviewing your change.
So even though we are specifying a custom format, it will still change the decimal point to a comma in some locales? Didn't think it would automatically change a custom format string.
Yes, the format alone is not enough. I created a pullrequest on the exceptionless.net repo that fixes it.
Ps. You might want to fix the tostring on the server side too.
Aw thanks!
I'm fixing this server side as we speak.
Thanks again! Can you please let me know if you run into any issues. I can push a new client build soon. If you need a new server build you can grab it via our build artifacts or let me know.
Thanks! I need the client update most as I now have to delete around 8000 json files every 2 days because the clients are sending invalid data. I don't think that I need to update the server. It's running on US-us.
Pushing the latest release now (1565) to nuget,
Thanks, I updated the client. I would be interested in the server artifacts too since I checked again and although the server runs an english version of Windows the locale is dutch there too... I couldn't find artifacts for the server build.
Looks like we aren't pushing artifacts as part of the build. Can you let me know if the current server works under the different locale or if you still have issues. If you have issues is there any chance you could download the master repo and build it or I'm going to need to push a new minor release and I wanted to wait a week or two to get a few more things into it.
I built the server myself and it works now with the Dutch locale. No need to rush a release. Thank you very much.
Awesome, thank you for the feedback!
Hello,
I have a self-hosted instance of exceptionless running. I noticed several unprocessed json files in the storage/q folder and started investigating the cause. According to the exceptionless log there is an error parsing a field. The exception is:
Then I started to look into the elasticsearch logs and I got this snippet of log:
As far as I can determine the parsing of this particular part of json
"geo":"52,3667,4,9"
seems to cause the issue. Is this a bug or is this a setting gone wrong somewhere?Thank you for your time,
Ivar