Portal

port_mismatch

Severity: needs approval. Your app runs, but listens on a different port than Kaviris expects, usually one written into the code.

What Kaviris saw

The app started and kept running, but after 60 seconds it still did not answer on its contract's port. It listens on another port instead. That almost always means the port is written into the code (listen(3000)) instead of read from PORT.

How to fix it

Best: listen on PORT. Kaviris tells your app which port to use in the PORT environment variable. Read it, and listen on all interfaces:

// Node
const port = process.env.PORT || 3000;
app.listen(port, "0.0.0.0");
# Python
import os
port = int(os.environ.get("PORT", "8000"))

Commit and deploy again.

Or: change the contract's port to the one the app uses. The refusal's fix.patch does that; apply it and approve, and the waiting deploy continues:

kaviris contract edit --patch '[{"op":"replace","path":"/components/0/port","value":3000}]'
kaviris contract approve

All refusal codes

This page as Markdown