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
Got an issue from someone reporting that the Data API does not accept otherwise perfectly valid keyspaces which start with a number, such as 2DQJAUtSzzzKP9buDTvUvPk3. I can confirm that such a keyspace can be created from the portal with absolutely no issues.
I'm able to create a Keyspace both via REST API and Admin area with the value "2DQJAUtSzzzKP9buDTvUvPk3" but unable to retrieve and use it via the REST api.
constdbAdmin=admin.dbAdmin(dbEndpoint)awaitdbAdmin.createKeyspace('2DQJAUtSzzzKP9buDTvUvPk3')// then i can list: constkeyspaces=awaitdbAdmin.listKeyspaces()console.log(keyspaces){"existingKeyspaces": ["default_keyspace","2DQJAUtSzzzKP9buDTvUvPk3"]}
Then when trying to use the keyspace:
constcollectionNames=awaitdb.listCollections({nameOnly: true,keyspace: '2DQJAUtSzzzKP9buDTvUvPk3'})// or awaitdb.createCollection('collectionname',{keyspace: '2DQJAUtSzzzKP9buDTvUvPk3'})
This returns:
DataAPIResponseError: Request invalid: field 'keyspace' value "2DQJAUtSzzzKP9buDTvUvPk3" not valid. Problem: must match "[a-zA-Z][a-zA-Z0-9_]*".
Got an issue from someone reporting that the Data API does not accept otherwise perfectly valid keyspaces which start with a number, such as
2DQJAUtSzzzKP9buDTvUvPk3
. I can confirm that such a keyspace can be created from the portal with absolutely no issues.datastax/astra-db-ts#94
The text was updated successfully, but these errors were encountered: