Metadata Query Failing with "FailedDependency" Error

Hello,
I’m experiencing an issue with querying events using metadata filters. The problem appears to be specific to one metadata key. It could be relatyed to canceling events cause it happens after creating and canceling events.

Issue Description: My API call was working correctly but has suddenly started failing:

GET https://api.us.nylas.com/v3/grants/abdcfc05-8ddb-4740-8ae7-bad0bc1d5460/events?calendar_id=primary&metadata_pair=key1:11eeb628-556c-1061-9cfd-0246d0feb7dd&limit=5

Error Response:

{
    "request_id": "4295508898-1a6b1d3a-8d07-497a-8c09-a09a363e9062",
    "error": {
        "type": "partial_success_error",
        "message": "One or more items could not be fetched.",
        "provider_error": {
            "error": {
                "code": "FailedDependency",
                "message": "Request failed as dependent request failed"
            }
        }
    }
}

Additional Context:

  • The same query was working previously without issues
  • When I change the metadata key from key1 to key2, the request succeeds
  • This suggests that key1 may be blocked or corrupted somehow
  • I’m running a POC, so maybe I introduced the error, but I need to have a clear understanding of the issue to avoid it

Questions:

  1. What could cause this “FailedDependency” error to suddenly appear for a specific metadata key?
  2. Is there a way to diagnose why key1 is failing while key2 works?
  3. How can I resolve this issue or recover the functionality for key1?

A ticket was raised on this topic for further investigation. A support member had already reached out with a response.

1 Like