I'm currently working on a Go project using the Apache TinkerPop for graph operations, and I've encountered a problem I'm hoping someone could assist with.
I'm trying to retrieve a specified number of random users from my graph with the following function:
However, I keep encountering an error on the line queryResponse, err := users.Id().Sample(qty).Next() which is using the .Sample(qty) method. The error message I'm receiving is:
"Error occurred during operation gremlinServerWSProtocol.responseHandler(): 'E0502: error in read loop, error message '{code:87 message:{"requestId":"4ce6dc05-6fd1-49d7-b5d5-eea85bf7db2a","code":"InternalFailureException","detailedMessage":"null: .sample(Long)"} attributes:map[]}'. statusCode: 87'"
Regrettably, I couldn't find any additional information in the documentation or on other channels which could provide me with a solution to this issue.
If anyone could provide insights on what I might be doing wrong or suggest potential fixes, it would be greatly appreciated. Moreover, if you need more context or further clarification, please let me know and I'll be more than happy to provide it.
Best regards.
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
AT
Apache TinkerPop
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.