twitter-dart / twitter-api-v2

The most famous and powerful Dart/Flutter library for Twitter API v2.0 🐦
https://pub.dev/packages/twitter_api_v2
BSD 3-Clause "New" or "Revised" License
167 stars 45 forks source link

Bug when parsing a tweet with lang:art #665

Open ywake opened 1 year ago

ywake commented 1 year ago

1. Current bug behavior

There is a Tweet parsing error due to the existence of the language 'art' which is not registered in the Language enum.

2. Expected behavior

Parse correctly

3. Steps to reproduce

Try using lookupTweetById with TweetIDs '1645442254214148097' or '1645396592944623616'.

4. Flutter doctor output

[✓] Flutter (Channel stable, 3.7.8, on macOS 13.3 22E252 darwin-arm64, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.77.0)
[✓] Connected device (4 available)
[✓] HTTP Host Availability

• No issues found!

5. More environment information

6. Log information

Enter log information in this code block

7. More information