Pulsarr icon indicating copy to clipboard operation
Pulsarr copied to clipboard

[BUG] Internal server error occurred "Response doesn't match the schema" from version 0.7.2 to 0.7.3-0.7.4 docker image

Open NoLife141 opened this issue 1 year ago • 1 comments

Bug Description

I just pull the latest release and got the error message and some page not loading in the interface.

Steps To Reproduce

  1. Was using version 0.7.2 and just update to 0.7.3 on my docker
  2. I got a error message when going in plex configuration

Expected Behavior

Showing plex configuration

Screenshots

Image

Environment

  • Pulsarr Version: 0.7.2 (fine) to 0.7.3-0.7.4(problem)
  • Deployment: Docker
  • OS: Debian 12

Logs

Relevant Log Output
pulsarr  | [17:50:45 UTC] ERROR: Internal server error occurred
pulsarr  |     reqId: "req-62"
pulsarr  |     request: {
pulsarr  |       "id": "req-62",
pulsarr  |       "method": "GET",
pulsarr  |       "path": "/v1/config",
pulsarr  |       "route": "/v1/config"
pulsarr  |     }
pulsarr  |     err: {
pulsarr  |       "message": "Response doesn't match the schema",
pulsarr  |       "name": "FastifyError",
pulsarr  |       "statusCode": 500,
pulsarr  |       "type": "Error",
pulsarr  |       "stack":
pulsarr  |           FastifyError: Response doesn't match the schema
pulsarr  |               at new ResponseSerializationError (file:///app/node_modules/fastify-type-provider-zod/dist/esm/errors.js:11:5)
pulsarr  |               at file:///app/node_modules/fastify-type-provider-zod/dist/esm/core.js:137:11
pulsarr  |               at serialize (/app/node_modules/fastify/lib/reply.js:935:12)
pulsarr  |               at preSerializationHookEnd (/app/node_modules/fastify/lib/reply.js:515:17)
pulsarr  |               at preSerializationHook (/app/node_modules/fastify/lib/reply.js:499:5)
pulsarr  |               at Reply.send (/app/node_modules/fastify/lib/reply.js:206:7)
pulsarr  |               at /app/node_modules/fastify/lib/wrap-thenable.js:41:17
pulsarr  |               at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
pulsarr  |       "cause": {
pulsarr  |         "name": "$ZodError",
pulsarr  |         "message": "[\n  {\n    \"expected\": \"string\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"config\",\n      \"publicContentNotifications\",\n      \"discordWebhookUrls\"\n    ],\n    \"message\": \"Invalid input: expected string, received undefined\"\n  },\n  {\n    \"expected\": \"string\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"config\",\n      \"publicContentNotifications\",\n      \"discordWebhookUrlsMovies\"\n    ],\n    \"message\": \"Invalid input: expected string, received undefined\"\n  },\n  {\n    \"expected\": \"string\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"config\",\n      \"publicContentNotifications\",\n      \"discordWebhookUrlsShows\"\n    ],\n    \"message\": \"Invalid input: expected string, received undefined\"\n  },\n  {\n    \"expected\": \"string\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"config\",\n      \"publicContentNotifications\",\n      \"appriseUrls\"\n    ],\n    \"message\": \"Invalid input: expected string, received undefined\"\n  },\n  {\n    \"expected\": \"string\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"config\",\n      \"publicContentNotifications\",\n      \"appriseUrlsMovies\"\n    ],\n    \"message\": \"Invalid input: expected string, received undefined\"\n  },\n  {\n    \"expected\": \"string\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"config\",\n      \"publicContentNotifications\",\n      \"appriseUrlsShows\"\n    ],\n    \"message\": \"Invalid input: expected string, received undefined\"\n  }\n]"
pulsarr  |       },
pulsarr  |       "code": "FST_ERR_RESPONSE_SERIALIZATION",
pulsarr  |       "method": "GET",
pulsarr  |       "url": "/v1/config",
pulsarr  |       "serialization": {
pulsarr  |         "url": "/v1/config",
pulsarr  |         "method": "GET"
pulsarr  |       }
pulsarr  |     }

NoLife141 avatar Nov 28 '25 18:11 NoLife141

Hi @NoLife141

There were some schema changes and I introduced a bug here.

Will push a hotfix shortly.

jamcalli avatar Nov 28 '25 21:11 jamcalli