Hi Lau, Alex ,
Greetings!!
The issues you're encountering with Azure Cosmos DB using the Gremlin API are related to authentication and permissions. Here's a breakdown of the two main errors and how to resolve them:
1.Error 499: SASL Information Does Not Match Expected Format
- Refresh your credentials: If you're using Azure Data Explorer or a Gremlin client, sign out and sign back in to refresh your session.
- Check the partition key: Ensure that the partition key you're using when creating the vertex matches the one defined in your graph.
- Use the latest Gremlin driver: If you're using a custom client (e.g., Node.js, Java), make sure you're using the latest version of the Gremlin driver. Older versions may not support the required SASL handshake.
2.Authorization Error When Accessing Keys
- Assign the correct role: You need to be assigned a role like Cosmos DB Account Contributor or Owner at the resource or subscription level.
Go to Azure Portal > Subscriptions > [Your Subscription] > Access control (IAM).
Add your user and assign the appropriate role.
- Wait and refresh: If access was recently granted, it may take a few minutes to propagate. Try refreshing your credentials or logging out and back in.
I hope this information helps. Please do let us know if you have any further queries.