Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

francisdomoney@aol.com avatar image
francisdomoney@aol.com asked ·

Stargate crashes on all three APIs.

Same happens on REST

curl -L -X POST \

> https://${ASTRA_DB_ID}-${ASTRA_DB_REGION}.apps.astra.datastax.com/api/rest/v2/schemas/keyspaces/${ASTRA_DB_KEYSPACE}/tables \

> --header 'content-type: application/json' \

> --header "x-cassandra-token: ${ASTRA_AUTHORIZATION_TOKEN}" \

> --data '{"name":"products","ifNotExists":true,"columnDefinitions": [ {"name":"id","typeDefinition":"uuid","static":false}, {"name":"productname","typeDefinition":"text","static":false}, {"name":"description","typeDefinition":"text","static":false}, {"name":"price","typeDefinition":"decimal","static":false}, {"name":"created","typeDefinition":"timestamp","static":false}],"primaryKey": {"partitionKey":["id"]},"tableOptions":{"defaultTimeToLive":0}}' | jq

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 461 100 19 100 442 211 4911 --:--:-- --:--:-- --:--:-- 5179

404

parse error: Invalid numeric literal at line 1, column 9

stargate
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

francisdomoney@aol.com avatar image
francisdomoney@aol.com answered ·

Problem solved. I was using an old database from July 2020. Deleting the database and recreating solved the problem. Now works

1 comment Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Thanks for letting us know that you have found the root cause of your issue and you're unblocked now! @francisdomoney@aol.com

0 Likes 0 ·