Skip to content

5.15 fails to start in proxy mode #2763

@scrocquesel-ml150

Description

@scrocquesel-ml150

When upgrading the docker image from 5.14.3 to 5.15, Prism throws an error at startup in proxy mode.

Context

I cannot run prism

Current Behavior

 TypeError: Cannot read properties of undefined (reading 'isPrimary')
     at createMultiProcessPrism (/usr/src/prism/packages/cli/dist/util/createServer.js:29:32)
     at runPrismAndSetupWatcher (/usr/src/prism/packages/cli/dist/util/runner.js:8:12)
     at Object.handler (/usr/src/prism/packages/cli/dist/commands/proxy.js:43:52)
     at Object.runCommand (/usr/src/prism/packages/cli/node_modules/yargs/build/index.cjs:446:48)
     at Object.parseArgs [as _parseArgs] (/usr/src/prism/packages/cli/node_modules/yargs/build/index.cjs:2697:57)
     at Object.get [as argv] (/usr/src/prism/packages/cli/node_modules/yargs/build/index.cjs:2651:25)
     at Object.<anonymous> (/usr/src/prism/packages/cli/dist/index.js:15:26)
     at Module._compile (node:internal/modules/cjs/loader:1812:14)
     at Object..js (node:internal/modules/cjs/loader:1943:10)
     at Module.load (node:internal/modules/cjs/loader:1533:32)

Expected Behavior

Upgrading a minor version should not break

Possible Workaround/Solution

Steps to Reproduce

  1. docker run stoplight/prism:5.15 /app/openapi.yaml http://upstream/
    with whatever is needed as mounted volume

Environment

Docker images

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions