Skip to content

Commit c856f33

Browse files
Bill Leoutsakoscursoragent
authored andcommitted
fix(tiktok): send empty JSON body on Query Creator Info POST
query_creator_info had no request.body function, and formatRequestParams() only attaches a body when tool.request.body is defined at all — so despite sending Content-Type: application/json, the request went out with no body whatsoever. Added body: () => ({}), matching the convention already used by other parameterless-POST tools in this codebase (Google Vault, Supabase, Square, Gmail, etc.). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent b177848 commit c856f33

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/sim/tools/tiktok/query_creator_info.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const tiktokQueryCreatorInfoTool: ToolConfig<
3636
Authorization: `Bearer ${params.accessToken}`,
3737
'Content-Type': 'application/json; charset=UTF-8',
3838
}),
39+
body: () => ({}),
3940
},
4041

4142
transformResponse: async (response: Response): Promise<TikTokQueryCreatorInfoResponse> => {

0 commit comments

Comments
 (0)