question

narayana.jayanthi_191238 avatar image
narayana.jayanthi_191238 asked bettina.swynnerton commented

Getting error get "'connection' is not defined" - week3 workshop

Getting error get "'connection' is not defined" - week3 workshop..

Added

SECURE_CONNECT_BUNDLE = '/workspace/cassandra-workshop-series/week3-AppDev-crud/crud-python/secure-connect-killrvideocluster.zip'

workshop
10 |1000

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

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered bettina.swynnerton commented

Bettina's explained why this issue is occurring in question #6499. There's a good chance that you've got the wrong path which is why you can't connect to your Astra database.

If you followed step 3c of the workshop instructions correctly, your secure bundle should have been uploaded to the week3-AppDev-crud/ directory.

On Gitpod, you need to check that the bundle exists in the directory. For example:

$ pwd
/workspace/cassandra-workshop-series/week3-AppDev-crud
$ ls
crud-java
crud-python
materials
README_JAVA.MD
README.MD
secure-connect-killrvideocluster.zip

If you uploaded your secure bundle to the correct location, the correct path would look like:

SECURE_CONNECT_BUNDLE = '/workspace/cassandra-workshop-series/week3-AppDev-crud/secure-connect-killrvideocluster.zip'

Cheers!

2 comments Share
10 |1000

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

narayana.jayanthi_191238 avatar image narayana.jayanthi_191238 commented ·

[Follow up question posted in #6712]

0 Likes 0 ·
bettina.swynnerton avatar image bettina.swynnerton ♦♦ narayana.jayanthi_191238 commented ·

Since we resolved the original issue you logged in this post, I created a new question #6712 to respond to the issue unrelated to the secure connect bundle. Cheers!

0 Likes 0 ·