Skip to content

Unable to start Parse Server 7.4.0 with Node > 22: Push Adapter fails with "Adapter prototype don't match expected prototype" #9517

Closed
@pocketcolin

Description

@pocketcolin

New Issue Checklist

Issue Description

After upgrading my server to Parse Server 7.4.0, I discovered that I no longer can start the server with when running a Node version > 22. You can actually fix this issue by fully disabling the push worker and adding the following to your Parse config:

push: {
    queueOptions: {
        disablePushWorker: true
    }
},

Steps to reproduce

  1. Run Parse Server 7.4.0 (I use it with Express but I'm guessing that's not relevant here) with Node v22.x.

Actual Outcome

In my console, I get the following error:

Error: Adapter prototype don't match expected prototype
    at AdaptableController.validateAdapter (/Users/pocketcolin/server/node_modules/parse-server/lib/Controllers/AdaptableController.js:66:13)
    at new PushWorker (/Users/pocketcolin/server/node_modules/parse-server/lib/Push/PushWorker.js:32:34)
    at Object.getPushController (/Users/pocketcolin/server/node_modules/parse-server/lib/Controllers/index.js:210:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async ParseServer.start (/Users/pocketcolin/server/node_modules/parse-server/lib/ParseServer.js:174:30)
    at async start (/Users/pocketcolin/server/dist/index.js:239:5)
    at async throng (/Users/pocketcolin/server/node_modules/throng/lib/throng.js:24:12)

Expected Outcome

Parse Server starts up normally.

Environment

"node": "22.11.0",
"express": "4.21.0",
"parse-server": "7.4.0"

Server

  • Parse Server version: 7.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions