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
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_]*".
The text was updated successfully, but these errors were encountered:
This is not an actually issue with the client, but with the Data API itself; I think the ability to create a keyspace starting with a number is relatively new, because I don't recall that being possible before, but I may be misremembering.
Nevertheless, I'll pass it onto the team on your behalf, and keep you updated. Thank you!
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.
Then when trying to use the keyspace:
This returns:
The text was updated successfully, but these errors were encountered: