Where do I find the values for your_id and your_region to complete this URL?
BASE_ADDRESS=https://<your_port>-<your_id>.<your_region>.gitpod.io/api
Where do I find the values for your_id and your_region to complete this URL?
BASE_ADDRESS=https://<your_port>-<your_id>.<your_region>.gitpod.io/api
after you launch the Python API on gitpod, you are invited to make port 5000 public and open a browser.
When you open a browser, copy the URL: This is the base address that you reach through port 5000.
You will see that it has this format:
https://5000-<your_unique_UUID>.<your_region>.gitpod.io
To pass this base address to the UI, you need to append the /api route, as in the instructions.
Let us know if this gets you to the next step.
To add to Bettina's answer, here's what my Gitpod looks like after I ran the "getting started" script in this section of the workshop instructions:
When I click on the Open Browser button at the bottom of the page, a new tab opens in my browser with the generated URL:
So using my URL as an example:
5000
(the default because I didn't reconfigure it in the script)d83df32b-81af-425d-8ede-b1f3d19b9480
ws-us02
Then as you already know, you need to add the URI /api
at the end so in this step of the instructions, my BASE_ADDRESS
is:
https://5000-d83df32b-81af-425d-8ede-b1f3d19b9480.ws-us02.gitpod.io/api
In a Gitpod terminal:
$ cd week4-AppDev-api/getting-started-with-astra-ui $ echo 'BASE_ADDRESS=https://5000-d83df32b-81af-425d-8ede-b1f3d19b9480.ws-us02.gitpod.io/api' > .env
Hope this helps. Cheers!
6 People are following this question.
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