{"record":{"id":"fe2e7c089cf4ce28","repo":"tailscale/tailscale","slug":"wanted-http-status-code-d-but-got-d-q","errorCode":null,"errorMessage":"wanted HTTP status code %d but got %d: %#q","messagePattern":"wanted HTTP status code (.+?) but got (.+?): %#q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/gitops-pusher/gitops-pusher.go","lineNumber":445,"sourceCode":"\treq, err := http.NewRequestWithContext(ctx, httpm.GET, fmt.Sprintf(\"https://%s/api/v2/tailnet/%s/acl\", *apiServer, tailnet), nil)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\treq.SetBasicAuth(apiKey, \"\")\n\treq.Header.Set(\"Accept\", \"application/hujson\")\n\n\tresp, err := client.Do(req)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tdefer resp.Body.Close()\n\n\tgot := resp.StatusCode\n\twant := http.StatusOK\n\tif got != want {\n\t\terrorDetails, _ := io.ReadAll(resp.Body)\n\t\treturn \"\", fmt.Errorf(\"wanted HTTP status code %d but got %d: %#q\", want, got, string(errorDetails))\n\t}\n\n\treturn Shuck(resp.Header.Get(\"ETag\")), nil\n}\n","sourceCodeStart":427,"sourceCodeEnd":450,"githubUrl":"https://github.com/tailscale/tailscale/blob/cfe32b8be6a33f8e24fbc369cbfbf7c729d9e042/cmd/gitops-pusher/gitops-pusher.go#L427-L450","documentation":"Error \"wanted HTTP status code %d but got %d: %#q\" thrown in tailscale/tailscale.","triggerScenarios":"Thrown at cmd/gitops-pusher/gitops-pusher.go:445 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":"cfe32b8be6a33f8e24fbc369cbfbf7c729d9e042","analyzedAt":"2026-08-15T19:58:31.583Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}