Dear Support,
Here is an example, it may be invalid when you run it, but you can try another subID that has zero file. I have filter in my program which can exclude unmatched lines, but an Error page should indicate something is wrong with my subscriptions or server is down, which is confusing now.
$ curl -d "results_as_file=1&subID=1270&subType=1" https://oceandata.sci.gsfc.nasa.gov/api/file_search
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<title>ERROR @ Ocean Biology Distributed Active Archive Center (OB.DAAC)</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
</head>
<body link=white vlink=white alink=white style='background-color:#1C4960; color:white; font-size:175%'>
<br>
<hr color= #666699>
<center>
<h1>
<b>.:. ERROR .:.</b>
</h1>
<h2>Ocean Biology Distributed Active Archive Center (OB.DAAC)</h2>
<blockquote>We are sorry, but an error has occurred. Please use the back button to return to the previous page</blockquote>
<hr color= #666699>
</body>
</html>
<!-- IE needs 512+ bytes: http://blogs.msdn.com/b/ieinternals/archive/2010/08/19/http-error-pages-in-internet-explorer.aspx -->
Thanks,
-Yuyuan
curl subscription: error page returned if zero file at the moment
-
- Posts: 337
- Joined: Wed Apr 06, 2005 12:11 pm America/New_York
- Has thanked: 10 times
- Been thanked: 3 times
-
- Posts: 71
- Joined: Mon Apr 20, 2020 8:04 am America/New_York
Re: curl subscription: error page returned if zero file at the moment
The error is occurring because there has been no data for this subscription in the last 3 days. The subscription stopped producing data in July, but we are investigating.
-
- Posts: 337
- Joined: Wed Apr 06, 2005 12:11 pm America/New_York
- Has thanked: 10 times
- Been thanked: 3 times
Re: curl subscription: error page returned if zero file at the moment
I see it's now changed to "No Results Found".