Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/oidc_core/lib/src/endpoints/facade.dart`:
- Around line 34-36: The current assignment for `body` only checks
`response.bodyBytes.isNotEmpty` and will attempt `jsonDecode` on whitespace-only
payloads; update the logic in the `body` assignment to first decode
`response.bodyBytes` to a UTF-8 string, then check `decoded.trim().isNotEmpty`
before calling `jsonDecode`, otherwise return an empty `Map<String, dynamic>`;
this change touches the `body` variable construction that references
`response.bodyBytes` and `jsonDecode`.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 7c47d8df-667b-470e-b4fa-5cfbcab0931b
📒 Files selected for processing (1)
packages/oidc_core/lib/src/endpoints/facade.dart
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
ahmednfwela
left a comment
There was a problem hiding this comment.
is this causing a bug that is not handled by the current try catch approach?
|
Yes, sorry, could've mentioned it. I'm trying to call |
Description
Fixes exception when OIDC endpoint returns empty body.
Type of Change
Summary by CodeRabbit