You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`lexicon = "test"
text = "Crocin is the best India made Tablet for fever and vry cheap. Crocin Painkiller is a child object of Crocin. Crocin Advanced is the sibling of Crocin Painkiller"
matching = "exact"
url = "http://host:8080/soda"
x = annot(url,lexicon, text, matching)
`
<!doctype html><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>
HTTP Status 500 – Internal Server Error
Type Exception Report
Message Request processing failed; nested exception is org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/sodaindex: ### Expected mime type application/octet-stream but got text/html. <html>
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/sodaindex: Expected mime type application/octet-stream but got text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/sodaindex/tag. Reason:
<pre> Not Found</pre></p>
</body>
</html>
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/sodaindex: Expected mime type application/octet-stream but got text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/sodaindex/tag. Reason:
<pre> Not Found</pre></p>
</body>
</html>
Hi,
On executing the following code :
def annot(url, lexicon, text, matching): body = json.dumps({ "lexicon": lexicon, "text" : text, "matching": matching }) resp = requests.post(url + "/annot.json", data=body) annot_resp = json.loads(resp.text) return annot_resp
`lexicon = "test"
text = "Crocin is the best India made Tablet for fever and vry cheap. Crocin Painkiller is a child object of Crocin. Crocin Advanced is the sibling of Crocin Painkiller"
matching = "exact"
url = "http://host:8080/soda"
x = annot(url,lexicon, text, matching)
`
<!doctype html><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>
HTTP Status 500 – Internal Server Error
Type Exception Report
Message Request processing failed; nested exception is org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/sodaindex: ### Expected mime type application/octet-stream but got text/html. <html>
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
Root Cause
Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/8.5.38
Please advise
The text was updated successfully, but these errors were encountered: