I am on windows system. I am using java backend on gitpod. But while uploading the secure bundle connect to open the UI the zip file (secure bundle connect) is not getting uploaded.
I am on windows system. I am using java backend on gitpod. But while uploading the secure bundle connect to open the UI the zip file (secure bundle connect) is not getting uploaded.
since you are working on gitpod, would you look through the steps in the following post and comment with the exact error you are seeing in the developer tools?
For Java: https://community.datastax.com/questions/6805/
Note that we updated the Java code since the workshop, so start a new gitpod workspace and try again.
Thanks for your help, we want to understand why this is not working for you.
We have tested a workaround to the problem with the file upload into the form data on Windows 10, and we have several community member reporting that the workaround worked for them.
We believe that the problem is that the file type of the zip file is not correctly recognised or advertised by Windows 10 file explorer. This in turn causes the drag and drop box to reject the file.
The following workaround worked for me on my Windows 10 desktop, tested with Chrome.
In gitpod, find the file CredentialsDialog.jsx
:
/workspace/cassandra-workshop-series/week4-AppDev-api/getting-started-with-astra-ui/src/components/CredentialsDialog.jsx
Comment out line 98 (here in bold):
{(!files || !files.length) && <DialogContentText> Choose your Secure Connect Bundle:* <DropzoneArea //acceptedFiles={["application/zip"]} filesLimit={1} dropzoneText="Drag and Drop your Secure Connect Bundle here or click to choose" onChange={updateFiles} showFileNames={true} showPreviews={true} showPreviewsInDropzone={false} showAlerts={false} /> </DialogContentText> }
In this line, we specify the allowed file types. By commenting it out, we allow any type.
Save the file, and restart the UI.
In newer versions of the repository, these changes should already be implemented.
Now, when you want to populate the connection dialog, we face another issue with the context of the popup window when we click to choose the file. For an easy workaround, do not click:
Do not click on the drag and drop box to choose the file.
Instead, open a file explorer and drop the secure bundle from the explorer into the box.
In my tests, this allowed me to populate the dialog.
After that I could successfully test the connection and save for database access.
Please let me know if this works for you.
Thanks for your patience!
7 People are following this question.
How do I setup my "environment" for the workshop?
Had big problems with cloud instance for workshop 5
How do I open another terminal in the cloud?
Python workshop code unable to connect to Astra instance from Windows machine
Why am I getting vast amounts of log messages in my k8s cluster from the workshop?
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use