I thought I was extracting the verbose message when available, but apparentlyt not, maybe due to a change on the ERDDAP side.
anyway, an eg.
out <- info('erdMH1sstd1day')
res <- griddap(out,
time = c('2012-01-01','2012-01-02'),
latitude = c(-10, 40),
longitude = c(-130, -129),
callopts = httr::verbose())
which only gives
Error: HTTP Status 500 – Internal Server Error
but with curl on cli gives something like
<!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Query error: For variable=sst axis#1=latitude Constraint="[(-10):1:(81)]": StartIndex=2400 is greater than StopIndex=215.</p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><hr class="line" /><h3>Apache Tomcat/8.5.14</h3></body></html>
where we want to pull out Query error: For variable=sst axis#1=latitude Constraint="[(-10):1:(81)]": StartIndex=2400 is greater than StopIndex=215.
I thought I was extracting the verbose message when available, but apparentlyt not, maybe due to a change on the ERDDAP side.
anyway, an eg.
which only gives
but with curl on cli gives something like
where we want to pull out Query error: For variable=sst axis#1=latitude Constraint="[(-10):1:(81)]": StartIndex=2400 is greater than StopIndex=215.