{"record":{"id":"361dd29499be6487","repo":"projectdiscovery/nuclei","slug":"could-not-replace-interactsh-marker-for-argument","errorCode":null,"errorMessage":"could not replace interactsh marker for argument %q: %w","messagePattern":"could not replace interactsh marker for argument %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/protocols/headless/engine/page_actions.go","lineNumber":1037,"sourceCode":"\tcase \"r\":\n\t\treturn rod.SelectorTypeRegex\n\tcase \"css\":\n\t\treturn rod.SelectorTypeCSSSector\n\tcase \"regex\":\n\t\treturn rod.SelectorTypeRegex\n\tdefault:\n\t\treturn rod.SelectorTypeText\n\t}\n}\n\nfunc (p *Page) getActionArg(action *Action, arg string) (string, error) {\n\tvar err error\n\n\targValue := action.GetArg(arg)\n\n\tprepared, err := render.ReplaceInteractshMarkers(argValue, p.instance.interactsh, nil)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"could not replace interactsh marker for argument %q: %w\", arg, err)\n\t}\n\targValue = prepared.Text\n\n\texprs := getExpressions(argValue, p.variables)\n\n\terr = expressions.ContainsUnresolvedVariables(exprs...)\n\tif err != nil {\n\t\treturn \"\", errkit.Wrapf(err, \"argument %q, value: %q\", arg, argValue)\n\t}\n\n\tresult, err := render.Render(render.Input{\n\t\tText:         argValue,\n\t\tValues:       p.variables,\n\t\tInteractURLs: prepared.InteractURLs,\n\t})\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"could not get value for argument %q: %s\", arg, err)\n\t}","sourceCodeStart":1019,"sourceCodeEnd":1055,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/protocols/headless/engine/page_actions.go#L1019-L1055","documentation":"Error \"could not replace interactsh marker for argument %q: %w\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/protocols/headless/engine/page_actions.go:1037 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}