Skip to content

[BUG] Adding two groups seems to cause a fail (in at least one circumstance) #720

Description

@emmahodcroft

Trying to add two groups to a particular search, I got an error. All other search fields were set, the error appeared after typing in and selecting group ID 562:

Image

URL link, which at least as of right now seems to replicate the error:
https://pathoplexus.org/mpox/search?visibility_releasedAtTimestamp=true&isRevocation=&visibility_groupName=true&visibility_groupId=true&visibility_accessionVersion=true&groupId=498&groupId=562&visibility_earliestReleaseDate=true&visibility_version=true&visibility_submittedAtTimestamp=true&visibility_versionStatus=true&earliestReleaseDateFrom=2025-09-17&earliestReleaseDateTo=2025-11-07

You can also replicate it with the above URL by clearing the second group (562), which then displays 21 seqs without error. Then add it back in, to get the error.

Copied error text:

{"message":"Request failed with status code 400","name":"AxiosError","stack":"AxiosError: Request failed with status code 400\n at It (https://pathoplexus.org/_astro/createAuthorizationHeader.IQvkTUFS.js:3:1073)\n at XMLHttpRequest.w (https://pathoplexus.org/_astro/createAuthorizationHeader.IQvkTUFS.js:3:5676)\n at _.request (https://pathoplexus.org/_astro/createAuthorizationHeader.IQvkTUFS.js:5:2056)\n at async Xn.request (https://pathoplexus.org/_astro/createAuthorizationHeader.IQvkTUFS.js:11:4348)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http","fetch"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json"},"baseURL":"https://lapis.pathoplexus.org/mpox","method":"post","url":"/sample/details","data":"{\"versionStatus\":\"LATEST_VERSION\",\"groupId\":[\"498\",\"562\"],\"earliestReleaseDateFrom\":\"2025-09-17\",\"earliestReleaseDateTo\":\"2025-11-07\",\"nucleotideMutations\":[],\"aminoAcidMutations\":[],\"nucleotideInsertions\":[],\"aminoAcidInsertions\":[],\"fields\":[\"authorAffiliations\",\"authors\",\"clade\",\"earliestReleaseDate\",\"geoLocAdmin1\",\"geoLocCountry\",\"length\",\"lineage\",\"sampleCollectionDate\",\"accessionVersion\"],\"limit\":100,\"offset\":0,\"orderBy\":[{\"field\":\"sampleCollectionDate\",\"type\":\"descending\"}]}","params":{},"allowAbsoluteUrls":true},"code":"ERR_BAD_REQUEST","status":400}

Request failed with status code 400

Request failed with status code 400

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions