fix(douyin): search hashtags through the live endpoint and report empty responses - #2254
Open
Benjamin-eecs wants to merge 1 commit into
Open
fix(douyin): search hashtags through the live endpoint and report empty responses#2254Benjamin-eecs wants to merge 1 commit into
Benjamin-eecs wants to merge 1 commit into
Conversation
Benjamin-eecs
force-pushed
the
fix/douyin-empty-response
branch
from
August 5, 2026 08:46
8aee18c to
0ca7743
Compare
Benjamin-eecs
force-pushed
the
fix/douyin-empty-response
branch
from
August 5, 2026 08:59
0ca7743 to
2d7931e
Compare
Benjamin-eecs
marked this pull request as ready for review
August 5, 2026 08:59
Benjamin-eecs
force-pushed
the
fix/douyin-empty-response
branch
from
August 6, 2026 02:16
2d7931e to
258be20
Compare
Benjamin-eecs
force-pushed
the
fix/douyin-empty-response
branch
from
August 8, 2026 12:50
258be20 to
1f7006c
Compare
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.
Description
douyin hashtag searchfailed for everyone:creator.douyin.com/aweme/v1/challenge/search/answers HTTP 200 with an empty body, and the command reportedDouyin API error -2 ... JSON parse failed, which pointed #2205's reporter at the JSON rather than the endpoint.The creator studio composer reads hashtag suggestions from
/aweme/v1/search/challengesug/instead; it carries the samecha_name/cid/view_countfields insug_listand returns a fixed-size list, so the rows are capped by--limithere.The empty-body branch in
browserFetchalso comes back (#1408 added it, #1587 lost it to a generic parse-failure wrapper): an empty or whitespace-only 2xx body raisesEmpty response from Douyin APIwith a hint naming the usual causes, which also revives the publish flow'sfast_detectretry matching on that text; a non-2xx empty body keeps its status, so 401 and 403 stayAuthRequiredError. The old tests mockedpage.evaluatewholesale so the generated script never ran; the new ones execute it against a stubbed fetch.Related issue: Closes #2205
Type of Change
Checklist
Documentation (if adding/modifying an adapter)
docs/adapters/(if new adapter)docs/adapters/index.mdtable (if new adapter)docs/.vitepress/config.mts(if new adapter)README.md/README.zh-CN.mdwhen command discoverability changedCliErrorsubclasses instead of rawErrorScreenshots / Output
Before, on a logged-in creator session:
After, same session:
An endpoint that does answer empty now says so, with the URL and a hint instead of a parse error, and
--limit 0is rejected up front.clis/douyinsuite 195 / 195 with twelve new tests, one running the generated script under the bridge envelope; dropping the composer parameters, mapping before the limit slice, or discarding the HTTP status on an empty body each fails a test. Typecheck, both lint gates and doc coverage pass;cli-manifest.jsonunchanged.