Skip to content

Show the Bref Cloud message for region errors on deploy - #51

Merged
mnapoli merged 1 commit into
mainfrom
cloud-19-region
Sep 3, 2026
Merged

Show the Bref Cloud message for region errors on deploy#51
mnapoli merged 1 commit into
mainfrom
cloud-19-region

Conversation

@mnapoli

@mnapoli mnapoli commented Sep 3, 2026

Copy link
Copy Markdown
Member

When Bref Cloud answered region_mismatch or region_not_supported, bref deploy showed the raw HTTP client exception:

HTTP/2 400 returned for "https://bref.cloud/api/v1/deployments".

The message from Bref Cloud says which region the environment is in. The CLI now shows that message, as it already did for no_aws_account.

Bref Cloud lets a bref.php application select its region in the related pull request: https://github.com/brefphp/cloud/pull/378. The CLI needs no other change for that: it already sends config as bref.php produces it.

A `region_mismatch` or `region_not_supported` answer surfaced as the raw
HTTP client exception ("HTTP/2 400 returned for ..."), hiding the message
that says which region the environment is in. Both now print the message,
as `no_aws_account` already did.

CLOUD-19

Claude-Session: https://claude.ai/code/session_01U5HsfTfcJCtW3rej2d5cp8
@mnapoli
mnapoli merged commit f865b14 into main Sep 3, 2026
5 checks passed
@mnapoli
mnapoli deleted the cloud-19-region branch September 3, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant