-
Notifications
You must be signed in to change notification settings - Fork 2k
fix: render object messages as JSON in Network Logs (#6505) #6508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: render object messages as JSON in Network Logs (#6505) #6508
Conversation
WalkthroughThis PR fixes a bug where HTTP responses displayed as "[object Object]" in the Network Logs tab. A new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (CODING_STANDARDS.md)
Files:
🧠 Learnings (3)📚 Learning: 2025-12-05T20:31:33.005ZApplied to files:
📚 Learning: 2025-12-16T07:16:23.647ZApplied to files:
📚 Learning: 2025-12-17T21:41:24.730ZApplied to files:
🧬 Code graph analysis (1)packages/bruno-app/src/components/ResponsePane/Timeline/TimelineItem/Network/index.spec.js (1)
🔇 Additional comments (6)
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 |
Description
Fixes #6505
The Problem
In Timeline → Network Logs, some messages were rendered as
[object Object]instead of readable text, making the logs hard to understand and debug.The Fix
A small check was added before rendering messages.
If the message is an object, it is converted into a readable JSON string before display.
What Changed
Network/index.jsformatMessage()helper to stringify object messagesNetwork/index.spec.jsScreenshot (After Fix)
Contribution Checklist
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.