Re: Error when trying to read ElementMap from Edge in Gremlin.Net: The given key 'janusgraph.RelationIdentifier' was not present in the dictionary #gremlin-dotnet
A better exception would really be a good idea. This is however an issue in TinkerPop and not JanusGraph as the Gremlin.Net driver belongs to TinkerPop.
I went ahead and created an issue for this in the TinkerPop project: https://issues.apache.org/jira/browse/TINKERPOP-2853
Registration for this Jira instance is closed unfortunately due to problems with spam so you would have to ask for an account to be created which is why I thought that it might be to easier if I just go ahead and create the issue myself.
But you can of course create a PR to improve this if you want. The repository is: https://github.com/apache/tinkerpop
Von: janusgraph-users@... <janusgraph-users@...> Im Auftrag von tormodhau@...
Gesendet: Dienstag, 10. Januar 2023 08:18
Betreff: Re: [janusgraph-users] Error when trying to read ElementMap from Edge in Gremlin.Net: The given key 'janusgraph.RelationIdentifier' was not present in the dictionary #gremlin-dotnet
Thank you so much! I have found this repository during my research, but I didn't understand why it was needed at the time. It makes total sense now.
Now, the exception thrown might seem a little confusing. Do you think it would be viable to catch the KeyNotFoundException inside. TypeSerializerRegistry (or similar), and then give a better explanation? An exception saying e.g "Serializer for type ''janusgraph..xx' was not found. See documentation on custom serializers [...]" would be much more telling on where to look.
Would you like me to add this as an issue in the Janusgraph repo?