Skip to content

validation errors for CommunityData #100

@laszlovandenhoek

Description

@laszlovandenhoek

Another deserialization error, happens with this tweet:

https://x.com/effectfully/status/1860347907615924669

pydantic_core._pydantic_core.ValidationError: 2 validation errors for CommunityData
__typename
  Input should be 'TimelineTweet', 'TimelineTimelineItem', 'TimelineUser', 'TimelineTimelineCursor', 'TweetWithVisibilityResults', 'ContextualTweetInterstitial', 'TimelineTimelineModule', 'TweetTombstone', 'TimelinePrompt', 'TimelineMessagePrompt', 'TimelineCommunity', 'TimelineTombstone', 'TimelineTrend', 'TimelineNotification', 'TimelineNotificationAggregateUserActions', 'TweetUnavailable', 'TweetPreviewDisplay', 'Tweet', 'User', 'UserUnavailable', 'Community', 'CommunityDeleteActionUnavailable', 'CommunityJoinAction', 'CommunityJoinActionUnavailable', 'CommunityLeaveActionUnavailable', 'CommunityTweetPinActionUnavailable', 'CommunityTweetUnpinActionUnavailable', 'CommunityInvitesUnavailable', 'CommunityJoinRequestsUnavailable' or 'ApiImage' [type=enum, input_value='CommunityUnavailable', input_type=str]
    For further information visit https://errors.pydantic.dev/2.11/v/enum
id_str
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.11/v/string_type

This is in the JSON:

"community_results": {
   "result": {
      "__typename": "CommunityUnavailable"
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions