Fork me on GitHub
#xtdb
<
2024-02-11
>
Soumil Shekdar17:02:45

Flakiness in XT In Memory JAR We are using go to interface with the XT, and have observed flakiness in parsing edn using "". The specific use case in umarshaling xt/id into an id string, but an error we get is:

Unable to decode #xtdb/id "4f555451eee3d3dccd4243edcb5970d904ff1137" into string
Thoughts on why this might be?

refset19:02:38

Hey @U05EY098T09 I've not used that library before or indeed written any golang myself (I suppose this may be a good opportunity to learn 🙂), but I suspect you would need to study this test file and follow its example of creating a custom tag decoder: https://github.com/go-edn/edn/blob/d3554ca0b0a3a3418219de6cdb09c5181f0a9c53/tag_test.go#L127

refset19:02:31

I should also confirm, the stacktrace for the Unable to decode error you gave is from golang (your app) - right? If it's a JVM stacktrace it would be very useful to see the whole thing if you still have it handy. I don't recognise the error message in any case :thinking_face: