{"record":{"id":"46244b7fda5d4047","repo":"grafana/k6","slug":"invalid-latitude-2f-precondition-90-latit","errorCode":null,"errorMessage":"invalid latitude \"%.2f\": precondition -90 <= LATITUDE <= 90 failed","messagePattern":"invalid latitude \"%\\.2f\": precondition -90 <= LATITUDE <= 90 failed","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/browser_context_options.go","lineNumber":79,"sourceCode":"\n// Validate validates the [ProxyOptions].\nfunc (p *ProxyOptions) Validate() error {\n\tif p == nil {\n\t\treturn nil\n\t}\n\tif strings.TrimSpace(p.Server) == \"\" {\n\t\treturn fmt.Errorf(\"proxy.server must be set\")\n\t}\n\treturn nil\n}\n\n// Validate validates the [Geolocation].\nfunc (g *Geolocation) Validate() error {\n\tif g.Longitude < -180 || g.Longitude > 180 {\n\t\treturn fmt.Errorf(`invalid longitude \"%.2f\": precondition -180 <= LONGITUDE <= 180 failed`, g.Longitude)\n\t}\n\tif g.Latitude < -90 || g.Latitude > 90 {\n\t\treturn fmt.Errorf(`invalid latitude \"%.2f\": precondition -90 <= LATITUDE <= 90 failed`, g.Latitude)\n\t}\n\tif g.Accuracy < 0 {\n\t\treturn fmt.Errorf(`invalid accuracy \"%.2f\": precondition 0 <= ACCURACY failed`, g.Accuracy)\n\t}\n\treturn nil\n}\n\n// GrantPermissionsOptions is used by BrowserContext.GrantPermissions.\ntype GrantPermissionsOptions struct {\n\tOrigin string\n}\n","sourceCodeStart":61,"sourceCodeEnd":91,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/js/modules/k6/browser/common/browser_context_options.go#L61-L91","documentation":"Geolocation.Validate rejected the geolocation options: latitude is outside [-90, 90]. The offending value is echoed; this mirrors CDP's precondition and fires at newContext time, before any browser context exists.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/browser_context_options.go:79 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a latitude in [-90, 90]","Check sign conventions: negative latitude is south of the equator"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}