1"use strict";(self.webpackChunkglean_developer_site=self.webpackChunkglean_developer_site||[]).push([["4985"],{35784(e,r,i){i.r(r),i.d(r,{metadata:()=>l,default:()=>h,frontMatter:()=>t,contentTitle:()=>s,toc:()=>o,assets:()=>d});var l=JSON.parse('{"id":"errors/invalid-parameter","title":"Invalid Parameter","description":"invalid_parameter ProblemDetail reference for the Glean Platform API","source":"@site/docs/errors/invalid-parameter.mdx","sourceDirName":"errors","slug":"/errors/invalid-parameter","permalink":"/errors/invalid-parameter","draft":false,"unlisted":false,"editUrl":"https://github.com/gleanwork/glean-developer-site/edit/main/docs/errors/invalid-parameter.mdx","tags":[],"version":"current","frontMatter":{"title":"Invalid Parameter","description":"invalid_parameter ProblemDetail reference for the Glean Platform API"},"sidebar":"docSidebar","previous":{"title":"Invalid filter","permalink":"/errors/invalid-filter"},"next":{"title":"Invalid request","permalink":"/errors/invalid-request"}}'),n=i(11684),a=i(32435);let t={title:"Invalid Parameter",description:"invalid_parameter ProblemDetail reference for the Glean Platform API"},s="Invalid Parameter",d={},o=[{value:"Code",id:"code",level:2},{value:"What It Means",id:"what-it-means",level:2},{value:"Common Causes",id:"common-causes",level:2},{value:"How To Resolve",id:"how-to-resolve",level:2},{value:"Client Actions",id:"client-actions",level:3},{value:"Retry Guidance",id:"retry-guidance",level:2},{value:"Example Response",id:"example-response",level:2}];function c(e){let r={code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.header,{children:(0,n.jsx)(r.h1,{id:"invalid-parameter",children:"Invalid Parameter"})}),"\n",(0,n.jsx)(r.h2,{id:"code",children:"Code"}),"\n",(0,n.jsxs)(r.ul,{children:["\n",(0,n.jsxs)(r.li,{children:[(0,n.jsx)(r.code,{children:"code"}),": ",(0,n.jsx)(r.code,{children:"invalid_parameter"})]}),"\n",(0,n.jsxs)(r.li,{children:[(0,n.jsx)(r.code,{children:"status"}),": ",(0,n.jsx)(r.code,{children:"400"})]}),"\n",(0,n.jsxs)(r.li,{children:[(0,n.jsx)(r.code,{children:"url"}),": ",(0,n.jsx)(r.code,{children:"https://developers.glean.com/errors/invalid-parameter"})]}),"\n"]}),"\n",(0,n.jsx)(r.h2,{id:"what-it-means",children:"What It Means"}),"\n",(0,n.jsx)(r.p,{children:"A request parameter or field is present but has an invalid value."}),"\n",(0,n.jsx)(r.h2,{id:"common-causes",children:"Common Causes"}),"\n",(0,n.jsxs)(r.ul,{children:["\n",(0,n.jsx)(r.li,{children:"A field has the wrong type, format, or enum value."}),"\n",(0,n.jsx)(r.li,{children:"A string, list, or number is outside the allowed range."}),"\n",(0,n.jsxs)(r.li,{children:["A field-level validation error is included in the ",(0,n.jsx)(r.code,{children:"errors"})," array."]}),"\n"]}),"\n",(0,n.jsx)(r.h2,{id:"how-to-resolve",children:"How To Resolve"}),"\n",(0,n.jsx)(r.h3,{id:"client-actions",children:"Client Actions"}),"\n",(0,n.jsxs)(r.ul,{children:["\n",(0,n.jsxs)(r.li,{children:["Use the response ",(0,n.jsx)(r.code,{children:"detail"})," and any field-level ",(0,n.jsx)(r.code,{children:"errors"})," to identify the invalid value."]}),"\n",(0,n.jsx)(r.li,{children:"Validate request values before sending them to the API."}),"\n"]}),"\n",(0,n.jsx)(r.h2,{id:"retry-guidance",children:"Retry Guidance"}),"\n",(0,n.jsx)(r.p,{children:"Retry only after correcting the invalid value."}),"\n",(0,n.jsx)(r.h2,{id:"example-response",children:"Example Response"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-json",children:'{\n "type": "https://developers.glean.com/errors/invalid-parameter",\n "title": "Invalid Parameter",\n "status": 400,\n "detail": "Human-readable explanation specific to this occurrence.",\n "code": "invalid_parameter",\n "documentation_url": "https://developers.glean.com/errors/invalid-parameter",\n "request_id": "req_7f8a9b0c1d2e"\n}\n'})})]})}function h(e={}){let{wrapper:r}={...(0,a.R)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.