NASA-PDS / pds-api-client

Python library and API for accessing the online PDS Search API. This repository however only contains the utilities used to generate, test, document and demo the actual pds.api-client package. The library itself is only released on pypi (https://pypi.org/project/pds.api-client/) but not here on github
https://nasa-pds.github.io/pds-api-client/
Apache License 2.0
0 stars 1 forks source link

The demo provided on pds-api-client quickstart gives a 500 error #19

Closed tloubrieu-jpl closed 2 years ago

tloubrieu-jpl commented 2 years ago

๐Ÿ› Describe the bug

The example code linked above gives a 500 Internal Server Error, I presume that's just a temporary outage.

๐Ÿ“œ To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

๐Ÿ•ต๏ธ Expected behavior

๐Ÿ“š Version of Software Used

๐Ÿฉบ Test Data / Additional context

๐ŸžScreenshots

๐Ÿ–ฅ System Info


๐Ÿฆ„ Related requirements

โš™๏ธ Engineering Details

tloubrieu-jpl commented 2 years ago

@cpiker I created this ticket to track the issue with the quickstart error 500 that you have. I will look at it shortly.

tloubrieu-jpl commented 2 years ago

Hi @cpiker, the elasticsearch cluster that is requested by the API server is unavaible that is why we are having this 500 error. I pinged our system administrators on that (https://itsd-jira.jpl.nasa.gov/servicedesk/customer/portal/16/DSIO-1473). I'll let you know when I have updates.

tloubrieu-jpl commented 2 years ago

Now we can access the elasticsearch nodes using the DNS name instead of the IP address but the elasticsearch server is down. I create a new ticket for our SA's https://itsd-jira.jpl.nasa.gov/servicedesk/customer/portal/16/DSIO-1527

tloubrieu-jpl commented 2 years ago

I reopened the ticket https://itsd-jira.jpl.nasa.gov/servicedesk/customer/portal/16/DSIO-1527 which was solved because we were able to manually connect to elasticSearch.

However something is still wrong with the SSL certificates, as show in the API logs: Caused by: javax.net.ssl.SSLPeerUnverifiedException: Host name 'pds-es-gamma1' does not match the certificate subject provided by the peer (CN=pds-es-gamma1)

tloubrieu-jpl commented 2 years ago

The SSL certificates have been regenerated and the service works again.

@cpiker you can try again. Sorry about this long running issue. Let us know if you have any questions or issues.