You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an Astra token is used in the wrong database context, there is an issue with the connection handling. For example, if Token A, which is created for use with Database A, is mistakenly used for Database B, the connection should be refused. However, currently, the connection is established successfully, and it results in an error message Unknown namespace. This is misleading as the real issue is the use of an invalid token for the given database. Therefore, the error message should be changed to Invalid token.
The current error message is:
{
"errors": [
{
"message": "INVALID_ARGUMENT: Unknown namespace 'default_keyspace', you must create it first.",
"errorCode": "NAMESPACE_DOES_NOT_EXIST"
}
]
}
Hazel-Datastax
changed the title
findCollections and createCollection do not show the correct error when astra token is invalid
findCollections and createCollection do not show the correct error message when the Astra token is invalid
Dec 7, 2023
When an Astra token is used in the wrong database context, there is an issue with the connection handling. For example, if
Token A
, which is created for use with DatabaseA
, is mistakenly used for DatabaseB
, the connection should be refused. However, currently, the connection is established successfully, and it results in an error messageUnknown namespace
. This is misleading as the real issue is the use of an invalid token for the given database. Therefore, the error message should be changed toInvalid token
.The current error message is:
The error message should be:
The text was updated successfully, but these errors were encountered: