@Muthazagan R welcome to the Microsoft Q&A community.
It looks like you're encountering an issue with an expired or invalid authorization token when trying to create a document in Azure Cosmos DB. This error typically occurs when the token's validity period does not align with the current server time.
Here are a few things you can check:
- Verify System Time – Ensure that your system time is correctly synchronized with the server time. If your local machine's time is incorrect, it can cause token validation issues.
- Generate a New Token – Since the token you used has already expired, you need to create a new one and retry the request.
- Check Token Generation Logic – If you're programmatically generating tokens, confirm that the logic correctly sets the token's validity period.
- Use Automatic Time Settings – If your device's time settings were manually adjusted, consider switching to automatic time synchronization to avoid discrepancies.
If you're still facing issues, you might find additional insights in the Microsoft Q&A forum or Stack Overflow discussions.
I hope these helps. Let me know if you have any further questions or need additional assistance.
Also if these answers your query, do click the "Upvote" and click "Accept the answer" of which might be beneficial to other community members reading this thread.