@prisma/[email protected] regression: "invalid container transport payload — input.environment is not a string" on prisma dev
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- nodejs, typescript
Research direction
Start with the stack trace: deserialize in node_modules/@prisma/composer-prisma-cloud/dist/preflight-payload-lVzospVD-UbsnZyO9.mjs (around line 603) rejects input.environment, and it is called from deserializeContainers in @prisma/composer's container-transport-HcvNOGZL-twPi2TIv.mjs. Diff the 0.35.0 and 0.36.0 versions of those two files and the payload that .prisma-composer/dev/alchemy.run.ts builds. Done when bunx prisma dev --fresh provisions both services on 0.36.0 with the guide's unmodified code.
Written by the indexing model from the issue text.
Description
Package and version
@prisma/[email protected] and @prisma/[email protected]
What happened?
Running bunx prisma dev (or bunx prisma dev --fresh) with a standard two-service Composer setup (matching the official getting-started guide exactly) fails immediately with:
@prisma/composer-prisma-cloud: invalid container transport payload — "input.environment" is not a string.
at deserialize (.../node_modules/@prisma/composer-prisma-cloud/dist/preflight-payload-lVzospVD-UbsnZyO9.mjs:603:45)
at deserializeContainers (.../node_modules/@prisma/composer/dist/container-transport-HcvNOGZL-twPi2TIv.mjs:42:42)
at .prisma-composer/dev/alchemy.run.ts:20:20
The error occurs inside the framework's own deserialization code before any user service logic is reached. --fresh does not help.
What did you expect to happen?
bunx prisma dev should start the local compute emulator and provision both services successfully, as it did with 0.35.0.
Minimal reproduction
Minimal reproduction
Follow the official getting-started guide exactly: https://www.prisma.io/docs/composer/getting-started
Use the exact module.ts, prisma.config.ts, src/quotes/service.ts, src/gateway/service.ts, src/quotes/server.ts, and src/gateway/server.ts from the guide without modification. Then run:
bash
bunx prisma dev --fresh
Workaround: downgrading to 0.35.0 resolves the issue:
bash
bun add @prisma/[email protected] @prisma/[email protected]
bunx prisma dev --fresh
Environment
OS: Fedora Linux
Node: v24.22.2 (via nvm)
Package manager: Bun v1.4.4
@prisma/composer: 0.36.0 (broken), 0.35.0 (works)
@prisma/composer-prisma-cloud: 0.36.0 (broken), 0.35.0 (works)
alchemy: 2.0.0-beta.83 (bundled internally by @prisma/composer)
No database involved — pure compute services only
Additional context
The alchemy upgrade warning (2.0.0-beta.84 is available) appears even after installing [email protected] at the top level, because @prisma/composer bundles its own copy at node_modules/@prisma/composer/node_modules/alchemy which is what actually runs.
The error is a regression: identical code and config worked on 0.35.0.
Full stack trace available above.
- Dominant language
- TypeScript
- Stars
- 47.8k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 227
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from prisma/orm
-
bug/1-unconfirmed kind/bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
get-platform: distros with ID_LIKE=alpine are not detected as musl, so glibc engines are used on Alpine-based imagesPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prisma/orm#31281 · 1 comment ·
Maintainers usually reply within 1 day
-
adapter-pg: connectToShadowDb connects to the main database when built from a connection stringMay be free again @cestercian claimed this 10 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
prisma/orm#31196 · 1 comment ·
Maintainers usually reply within 1 day
-
[Prisma 8] Type-check time grows exponentially with chained .include() callsPossibly taken @SiKreuz claimed this 13 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
prisma/orm#31161 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
prisma/orm#31125 · 4 comments · 6 reactions ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
tenstorrent/ttnn-visualizer#2526 ·
Maintainers usually reply within 1 day
-
trySessionCache calls /get-session twice when minting session_data (cache miss or expired cookie)Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
neondatabase/neon-js#301 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tashfeenahmed/freellmapi#2305 ·
Maintainers usually reply within 1 day