Skip to content

Commit 7135f20

Browse files
tonychang04claude
andcommitted
fix(insforge): encode function name in invoke URL path
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5705d13 commit 7135f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/tools/insforge/invoke.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const invokeTool: ToolConfig<InsForgeInvokeParams, InsForgeInvokeResponse
4343
request: {
4444
url: (params) => {
4545
const base = params.baseUrl.replace(/\/$/, '')
46-
return `${base}/functions/${params.functionName}`
46+
return `${base}/functions/${encodeURIComponent(params.functionName)}`
4747
},
4848
method: (params) => (params.method as 'GET' | 'POST' | 'PUT' | 'DELETE') || 'POST',
4949
headers: (params) => ({

0 commit comments

Comments
 (0)