Even after entering correct credentials in the form data and uploading the secure socket bundle it is not accepting the credentials. Showing me error please verify credentials and try again.
Even after entering correct credentials in the form data and uploading the secure socket bundle it is not accepting the credentials. Showing me error please verify credentials and try again.
please check in the developer console of your browser for the error with the associated POST request when you test the connection.
At this stage, there could be multiple sources of the failure to post the credentials, e.g:
- wrong credentials
- wrong base address
- CORS policy
Let us have the POST error, we want to figure it out.
Thanks!
can u tell me what description we have to put for the file for the post request to check the connection.?
do we have to upload the file or any link.......?
Getting below error in Chrome browser when trying to connect to Astra-UI
Access to XMLHttpRequest at 'https://5000-fb4cf1af-f975-4beb-a9ce-e885fccbd1c1.ws-eu01.gitpod.io/api/credentials/test?username=KVUser&password=KVPassword&keyspace=killrvideo' from origin 'https://3000-fb4cf1af-f975-4beb-a9ce-e885fccbd1c1.ws-eu01.gitpod.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
POST https://5000-fb4cf1af-f975-4beb-a9ce-e885fccbd1c1.w xhr.js?b50d:172 POST https://5000-fb4cf1af-f975-4beb-a9ce-e885fccbd1c1.ws-eu01.gitpod.io/api/credentials/test?username=KVUser&password=KVPassword&keyspace=killrvideo net::ERR_FAILED
Can you test again please ? We changed the code in order to make the error message appearing on screen. For you to copy-paste it or troubleshoot.
Getting same error on screen "A problem occured with your credentials. Please verify and try again"
Below are details from Developer tool:
Access to XMLHttpRequest at 'https://5000-fb4cf1af-f975-4beb-a9ce-e885fccbd1c1.ws-eu01.gitpod.io/api/credentials/test?username=KVUser&password=KVPassword&keyspace=killrvideo' from origin 'https://3000-fb4cf1af-f975-4beb-a9ce-e885fccbd1c1.ws-eu01.gitpod.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
POST https://5000-fb4cf1af-f975-4beb-a9ce-e885fccbd1c1.w xhr.js?b50d:172 POST https://5000-fb4cf1af-f975-4beb-a9ce-e885fccbd1c1.ws-eu01.gitpod.io/api/credentials/test?username=KVUser&password=KVPassword&keyspace=killrvideo net::ERR_FAILED
Hi @ynv_2006_193227,
would you use the localhost address in the .env file for the UI:
BASE_ADDRESS = http://localhost:5000/api
You will need to restart the UI after that, and refresh your browser.
No need to restart the Python backend.
See if this gets you past this CORS issue.
Thanks!
Does that mean like instead of this command
echo 'BASE_ADDRESS=https://<your_port>-<your_id>.<your_region>.gitpod.io/api' > .env
we have to use
echo 'BASE_ADDRESS = http://localhost:5000/api' > .env
to set the environment
8 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