Source
HTTP 404 Error When Connecting to Snowflake China via Terraform Provider
ISSUE: Attempting to connect to Snowflake China using the Snowflake Terraform Provider results in a 404 (Not Found) error. The same configuration works with non - China Snowflake accounts.
Connection to Snowflake via ODBC fails with error when using externalbrowser authentication
CAUSE: The error is caused by a misconfiguration of the SAML_IDENTITY_PROVIDER parameter. In particular the ssoURL value is not a proper URL format (for example it contains a space in between or at the end of the URL).