Add --verbose flag for HTTP debugging and clarify Bluesky identifier format#146
Draft
Add --verbose flag for HTTP debugging and clarify Bluesky identifier format#146
Conversation
Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
…truncation Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
… improve header handling Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add debug option for network response output
Add --verbose flag for HTTP debugging and clarify Bluesky identifier format
Oct 13, 2025
nzakas
reviewed
Oct 13, 2025
| **Important:** Do not use your login password with the API. | ||
| **Important:** | ||
| - Do not use your login password with the API. | ||
| - The identifier should be your human-readable username without the `@` symbol (e.g., `username.bsky.social`), not your DID (Decentralized Identifier). |
Contributor
There was a problem hiding this comment.
Suggested change
| - The identifier should be your human-readable username without the `@` symbol (e.g., `username.bsky.social`), not your DID (Decentralized Identifier). | |
| - The identifier should be your human-readable username without the `@` symbol and without the host (e.g., `username`), not your DID (Decentralized Identifier). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.