{"record":{"id":"0df79524369ba222","repo":"projectdiscovery/nuclei","slug":"unknown-signature-arguments-type","errorCode":null,"errorMessage":"unknown signature arguments type","messagePattern":"unknown signature arguments type","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/protocols/http/signer/signer.go","lineNumber":34,"sourceCode":"}\n\ntype SignerArgs interface {\n\tValidate() error\n}\n\nfunc NewSigner(args SignerArgs) (signer Signer, err error) {\n\tswitch signerArgs := args.(type) {\n\tcase *AWSOptions:\n\t\tawsSigner, err := NewAwsSigner(signerArgs)\n\t\tif err != nil {\n\t\t\tawsSigner, err = NewAwsSignerFromConfig(signerArgs)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t}\n\t\treturn awsSigner, err\n\tdefault:\n\t\treturn nil, errors.New(\"unknown signature arguments type\")\n\t}\n}\n\n// GetCtxWithArgs creates and returns context with signature args\nfunc GetCtxWithArgs(maps ...map[string]interface{}) context.Context {\n\tvar region, service string\n\tfor _, v := range maps {\n\t\tfor key, val := range v {\n\t\t\tif key == \"region\" && region == \"\" {\n\t\t\t\tregion = types.ToString(val)\n\t\t\t}\n\t\t\tif key == \"service\" && service == \"\" {\n\t\t\t\tservice = types.ToString(val)\n\t\t\t}\n\t\t}\n\t}\n\t// type ctxkey string\n\tctx := context.WithValue(context.Background(), SignerArg(\"service\"), service)","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/protocols/http/signer/signer.go#L16-L52","documentation":"Error \"unknown signature arguments type\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/protocols/http/signer/signer.go:34 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"}