Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid response from /v2/projects #473

Open
kueda opened this issue Nov 1, 2024 · 0 comments
Open

Invalid response from /v2/projects #473

kueda opened this issue Nov 1, 2024 · 0 comments
Labels

Comments

@kueda
Copy link
Member

kueda commented Nov 1, 2024

Getting an invalid response error from /v2/projects. Here's an export of the request record from iNat Next:

{
  "id": "23",
  "type": "XMLHttpRequest",
  "url": "https://stagingapi.inaturalist.org/v2/projects?fields=all&member_id=1&per_page=50&ttl=-1&rule_details=true&page=1",
  "status": 500,
  "dataSent": null,
  "responseContentType": "application/json",
  "responseSize": 215,
  "requestHeaders": {
    "X-Installation-ID": "4e77a79c-5368-41d5-885b-a97911ce95a8",
    "Accept": "application/json",
    "Content-Type": "application/json",
    "X-Via": "inaturalistjs",
    "user-agent": "iNaturalistRN/0.52.0 (Build 121; iOS 17.6.1; iPhone14,6; Handset; Apple)"
  },
  "responseHeaders": {
    "Content-Type": "application/json; charset=utf-8",
    "Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Control-Allow-Methods, X-Installation-ID, X-Via, X-HTTP-Method-Override",
    "Server": "nginx",
    "Expires": "-1",
    "Access-Control-Allow-Origin": "*",
    "Cache-Control": "private, no-cache, no-store, must-revalidate",
    "X-Cache": "MISS",
    "Age": "0",
    "Content-Length": "215",
    "x-express-openapi-validated": "true",
    "Date": "Fri, 01 Nov 2024 19:22:49 GMT",
    "Access-Control-Allow-Methods": "GET, POST, OPTIONS, PUT, DELETE",
    "x-express-openapi-validation-error-for": "200",
    "Pragma": "no-cache",
    "Connection": "keep-alive",
    "Etag": "W/\"d7-UzPU1MrvFEpTyrVka3hgBDIH+DQ\"",
    "Vary": "Accept-Encoding"
  },
  "response": {
    "status": "500",
    "errors": [
      {
        "errorCode": "500",
        "message": "Invalid response for status code 200: results/27/search_parameters/3/value_number: must be array,results/27/search_parameters/4/value_number: must be array"
      }
    ]
  },
  "responseURL": "https://stagingapi.inaturalist.org/v2/projects?fields=all&member_id=1&per_page=50&ttl=-1&rule_details=true&page=1",
  "responseType": "blob",
  "timeout": 0,
  "closeReason": "",
  "messages": "",
  "startTime": 1730488969703,
  "endTime": 1730488969930,
  "method": "GET",
  "duration": 227
}
@kueda kueda added the bugs label Nov 1, 2024
@kueda kueda added this to Web Nov 1, 2024
@kueda kueda moved this to Todo in Web Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant