Skip to content

Build error due to oversized response #4570

Description

@hannes-ucsc

The Data Browser build is failing due to a error response from Azul for the /index/projects endpoint. The error response is due to a new field added to the response content, which is causing the response content size to exceed the maximum allowed payload size when `/index/projects?size=100' is requested. (See DataBiosphere/azul#7466 (comment))

Data Browser Build

...
   Collecting page data ...
Using app config hca-dcp-ma-prod
Using app config hca-dcp-ma-prod
Using app config hca-dcp-ma-prod
a [HTTPError]: Request failed with status code 502 Bad Gateway: GET https://service.azul.data.humancellatlas.org/index/projects?size=100&catalog=dcp52
    at n (/builds/ucsc/data-browser/.next/server/chunks/642.js:1595:6489)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async R._retry (/builds/ucsc/data-browser/.next/server/chunks/642.js:1595:10143)
    at async o (/builds/ucsc/data-browser/.next/server/chunks/642.js:1595:12012)
    at async p (/builds/ucsc/data-browser/.next/server/chunks/642.js:1595:1722)
    at async f (/builds/ucsc/data-browser/.next/server/chunks/642.js:1595:1801)
    at async S (/builds/ucsc/data-browser/.next/server/pages/[entityListType]/[...params].js:50:8945)
    at async b (/builds/ucsc/data-browser/.next/server/pages/[entityListType]/[...params].js:50:8047)
    at async buildStaticPaths (/builds/ucsc/data-browser/node_modules/next/dist/build/utils.js:788:33)
    at async /builds/ucsc/data-browser/node_modules/next/dist/build/utils.js:1221:110 {
...
> Build error occurred
Error: Failed to collect page data for /[entityListType]/[...params]
    at /builds/ucsc/data-browser/node_modules/next/dist/build/utils.js:1269:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'Error'
}
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1

The /index/projects request would be successful if a smaller size parameter was specified:

$ curl -sI 'https://service.azul.data.humancellatlas.org/index/projects?size=100&catalog=dcp52'
HTTP/2 502
...
$ curl -sI 'https://service.azul.data.humancellatlas.org/index/projects?size=95&catalog=dcp52'
HTTP/2 200
...

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions