Repository navigation
Conversation
|
Opus 5.5 Max wrote this: |
|
@ilyazub That's a good catch. I tried to address it. Every non-interactive stderr line stays a JSON object. When stderr is not a terminal, each So existing line-by-line parsers for |
pulkitchowdry
left a comment
There was a problem hiding this comment.
Thanks for the work on this @strzibny!
I tested the --debug flag including the latest changes related to the json output (for example 2>debug.jsonl) and text output on terminal.
Tested for network errors (including proxy, awaiting headers error), minimal timeout, invalid api key, combining debug with jq, timeout flags and everything looks good to me.
A response could carry the key back into the trace: a redirect's Location echoing the query went into JSON lines unredacted, an encoded api_key%3D got past redaction on a terminal too, and so did a header named after it. The tracer now removes the client's key, plain or URL-encoded, from each event and every name and value in its data. Of the 6 cases in the new test, 3 response shapes piped and on a terminal, 5 printed the key; now 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server timeline compares this machine's clock with SerpApi's. With the client 6s fast, a fresh 9s search read as a cached result whose wait "was network round trip only"; 30s slow, a stall after processing was blamed on the way there. The notes now name that assumption, a created_at before the request may be a fast clock, and contradicting timestamps get no verdict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The timeout error had swapped main's advice, that google_ai_mode and no_cache=true can take longer than the timeout, for "usually a slow or unstable network path", and suggested --debug even with --debug on. It keeps main's advice, adds "--debug shows which step stalled" only while the trace is off, and the README's --timeout example is AI Mode again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Opus 5.5 Max rebase, fixes and tests: Thanks @strzibny! Rebased onto main 993b281 with 3 fixes on top: Your 4 commits keep your authorship. f11a754 was a merge, so its changes (the JSON lines and the port to #17's client) are now a plain commit, 0caec01, whose tree equals f11a754 merged into main, with root.go's one conflict taking your
Whichever of this and #14 merges second won't build until #14's Label GPT-6 Astra Max advised. |
Let's add --debug option for better debugging logs when customers face something unexpected regarding connections and timeouts.
Debug mode adds tracing for each request to stderr with wall-clock and elapsed timestamps; DNS, TCP connect (local -> remote address), TLS handshake, time to first byte, response status and headers, and body size.
For searches, we also correlate the server's search_metadata timestamps with the client timeline and flag whether a long wait happened before the search was created, during processing, or after processing finished.