curl subscription: error page returned if zero file at the moment

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
oo_processing
Posts: 269
Joined: Wed Apr 06, 2005 12:11 pm America/New_York
Answers: 0

curl subscription: error page returned if zero file at the moment

by oo_processing » Fri Nov 18, 2022 8:26 am America/New_York

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

Tags:

dana.r.wilson
Posts: 71
Joined: Mon Apr 20, 2020 8:04 am America/New_York
Answers: 0

Re: curl subscription: error page returned if zero file at the moment

by dana.r.wilson » Fri Nov 18, 2022 8:38 am America/New_York

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.

oo_processing
Posts: 269
Joined: Wed Apr 06, 2005 12:11 pm America/New_York
Answers: 0

Re: curl subscription: error page returned if zero file at the moment

by oo_processing » Fri Nov 18, 2022 4:06 pm America/New_York

I see it's now changed to "No Results Found".

Post Reply