There are cases where the Q&A log cannot be retrieved

I’m trying to retrieve the Q&A log using the “List Q&A of past webinar” API triggered by the webhook event “webinar.ended,” but there are times when I can retrieve it and times when I can’t. Is this a timing issue? Should I wait for a while after receiving the “webinar.ended” webhook event before executing the API?