IQSS / dataverse.harvard.edu

Custom code for dataverse.harvard.edu and an issue tracker for the IQSS Dataverse team's operational work, for better tracking on https://github.com/orgs/IQSS/projects/34
4 stars 1 forks source link

Ongoing prod. DevOps 08-15 - 08-28 #301

Closed landreev closed 1 month ago

landreev commented 1 month ago

Star certificate for *.dataverse.org, that's used on demo, beta, guides etc. servers has expired and would not auto-renew, requiring domain ownership validation. Feels like a time-consuming affair.

tuanpham96 commented 1 month ago

Does this affect the API? One of the examples from the the search API guide doesn't return anything. Let me know if this should be posted elsewhere.

On browser: https://demo.dataverse.org/api/search?q=trees this returns

{
  "status": "OK",
  "data": {
    "q": "trees",
    "total_count": 0,
    "start": 0,
    "spelling_alternatives": {},
    "items": [],
    "count_in_response": 0
  }
}

Can't seem to use curl here either

$ curl http://demo.dataverse.org/api/search?q=trees

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://demo.dataverse.org/api/search?q=trees">here</a>.</p>
</body></html>

$ curl https://demo.dataverse.org/api/search?q=trees

curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
qqmyers commented 1 month ago

The cert for demo.dataverse.org expired and it's getting replaced. Until then adding -k to the curl command will get you past the error. API calls would similarly have to ignore the bad cert temporarily to work with demo.

landreev commented 1 month ago

@tuanpham96 demo.dataverse.org should be back in business. As for the actual search, https://demo.dataverse.org/api/search?q=trees - zero results is correct, there are no datasets with "trees" there at the moment. But if you search for some common word, you should get results:

curl "https://demo.dataverse.org/api/search?q=test"
{
  "data": {
    "count_in_response": 10,

... edited for brevity...
    "total_count": 704,
    "q": "test"
  },
  "status": "OK"
}
tuanpham96 commented 1 month ago

awesome! thanks for the quick update!