[firebase_ai] Response fails to parse when a urlMetadata entry has no urlRetrievalStatus
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
Research direction
Start in the firebase_ai code path at _parseUrlMetadata and inspect how UrlRetrievalStatus._parseValue handles JSON values. The issue describes the failure when urlRetrievalStatus is absent and the expected behavior: treat the missing status as unknown. Add or update a test for a urlMetadata entry without that field and confirm parsing succeeds.
Written by the indexing model from the issue text.
Description
In firebase_ai 5.1.0, _parseUrlMetadata passes jsonObject['urlRetrievalStatus'] to UrlRetrievalStatus._parseValue, which throws type 'Null' is not a subtype of type 'Object' when the field is absent. Proto3 JSON leaves out default enum values, so an UNSPECIFIED status can arrive that way, and the whole response is lost rather than one entry. Treating a missing status as unknown would fix it.
- Dominant language
- Dart
- Stars
- 9.3k
- Forks
- 4.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 69
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/flutterfire
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
firebase/flutterfire#18918 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 67/100
firebase/flutterfire#18917 ·
Maintainers usually reply within 1 day
-
[📚] App Check Windows Support still N/A on ReadmePossibly taken @Adrianogba claimed this 1 day ago. Opengood first issue type: documentation
Difficulty 1/5 Under an hour Newbie friendliness 35/100
firebase/flutterfire#18913 ·
Maintainers usually reply within 1 day
-
[📚] Data Connect Windows Support still N/A on ReadmePossibly taken @Adrianogba claimed this 1 day ago. Opengood first issue type: documentation
Difficulty 1/5 Under an hour Newbie friendliness 35/100
firebase/flutterfire#18911 ·
Maintainers usually reply within 1 day
-
[📚] Realtime Database Windows Support still N/A on ReadmePossibly taken @Adrianogba claimed this 1 day ago. Opengood first issue type: documentation
Difficulty 1/5 Under an hour Newbie friendliness 1/100
firebase/flutterfire#18909 ·
Maintainers usually reply within 1 day
All issues in firebase/flutterfire
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
customerio/customerio-flutter#441 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
carp-dk/flutter-plugins#1312 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
newrelic/newrelic-flutter-agent#256 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
jhomlala/betterplayer#1646 ·
Maintainers usually reply within 1 day
-
Feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
amplitude/Amplitude-Flutter#337 · 1 comment ·
Maintainers usually reply within 1 day