Skip to content
EnvironmentPatch shows staged with empty changes, but no staged configuration
pedro-sosa-lab
OP

a month ago

Hello Railway team,

We are observing a discrepancy between two Railway interfaces.

The environment status reports an EnvironmentPatch with status “staged” and an empty changes array.

However, the staged changes and environment configuration interfaces report no pending changes.

A direct read-only query for the patch returned “Not Authorized”.

Could you clarify whether this can represent a historical workflow record, and what supported method can be used to verify the patch’s actual state?

We would also appreciate guidance on how to provide identifying information privately if further investigation is needed.

We are not requesting any production changes.

Thank you.

Solved

1 Reply

Status changed to Awaiting Railway Response Railway • about 1 month ago


sam-a
EMPLOYEE

a month ago

When an environment has nothing pending, the staged-changes response returns a placeholder patch with status "staged" and empty changes. That placeholder is not a stored record (historical or otherwise) and not an apply in progress. It just means there are no staged changes. That fits what you're seeing in the staged changes and environment configuration views.

The placeholder doesn't exist as its own patch, so querying its id directly won't return it. If the id you queried was a real patch id, "Not Authorized" on that read means the token or user making the request doesn't have at least viewer access to the environment that patch belongs to.

The supported way to check an environment's actual patch state is the environment's staged changes view in the dashboard, or the same staged-changes query through the API with a token that has access to that environment. A real pending change shows up there with its changes listed. An empty result means nothing is staged.


Status changed to Awaiting User Response sam-a • about 1 month ago


Railway
BOT

a month ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway • about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...