openpodcast / api

OpenPodcast API server
https://openpodcast.dev
8 stars 2 forks source link

payload too long #158

Closed woolfg closed 9 months ago

woolfg commented 10 months ago

2023-12-19 19:46:19.537 
  type: 'entity.too.large'

2023-12-19 19:46:19.537 
  limit: 1048576,

2023-12-19 19:46:19.537 
  length: 1053912,

2023-12-19 19:46:19.537 
  expected: 1053912,

2023-12-19 19:46:19.537 
    at expressInit (/app/node_modules/express/lib/middleware/init.js:40:5) {

2023-12-19 19:46:19.537 
    at next (/app/node_modules/express/lib/router/index.js:280:10)

2023-12-19 19:46:19.537 
    at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)

2023-12-19 19:46:19.537 
    at /app/node_modules/express/lib/router/index.js:286:9

2023-12-19 19:46:19.537 
    at trim_prefix (/app/node_modules/express/lib/router/index.js:328:13)

2023-12-19 19:46:19.537 
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)

2023-12-19 19:46:19.537 
    at jsonParser (/app/node_modules/body-parser/lib/types/json.js:135:5)

2023-12-19 19:46:19.537 
    at read (/app/node_modules/body-parser/lib/read.js:79:3)

2023-12-19 19:46:19.537 
    at getRawBody (/app/node_modules/raw-body/index.js:109:12)

2023-12-19 19:46:19.537 
    at readStream (/app/node_modules/raw-body/index.js:156:17)

2023-12-19 19:46:19.536 
PayloadTooLargeError: request entity too large```
mre commented 10 months ago

This was quick-fixed by @woolfg in #158. The proper fix is to add pagination to https://github.com/openpodcast/pipelines/, specifically for Spotify, but it's helpful for the other platforms as well.