Add --verbose flag for HTTP debugging and clarify Bluesky identifier format #146
+184
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Users attempting to debug network issues with various social media integrations (particularly Bluesky) were encountering opaque error messages that made troubleshooting difficult. For example:
Without visibility into the actual HTTP responses, users couldn't determine whether the issue was due to incorrect credentials, wrong identifier format, server errors, or other problems.
Additionally, the README documentation for Bluesky setup didn't clearly specify whether the identifier should include the
@symbol or use the DID format, leading to configuration confusion.Solution
1. Added
--verboseCLI FlagImplemented comprehensive HTTP request/response logging that activates when the
--verboseflag is present. The logging system:Authorization,Cookie,Set-Cookie,X-API-Key,API-Key)password,access_token,api_key)Example output:
Now users can immediately see that the server returned an HTML error page instead of JSON, indicating an authentication problem.
2. Updated Bluesky README Documentation
Clarified the
BLUESKY_IDENTIFIERformat in the setup section:@symbol (e.g.,username.bsky.social)did:plc:...)Implementation Details
The verbose logging uses a global
fetchwrapper approach, which is minimal and non-invasive:--verboseflag is present (zero performance impact otherwise)Testing
--verboseflag appears in help outputFixes #[issue-number]
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
httpbin.orgnode /tmp/test-verbose.js --verbose(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Fixes #142
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.