-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error creating XML using in house REST server #26
Comments
Hi @hunterhector , Just remove /en from your URL E.g:
Best, |
In fact, that is not what I mean. The URL I am using is correct. Since I started the server with: And the link works with the following command: But does not work with the following: Some of the stack trace:
It seems there is something funny happening in converting the output to XML here. However, both the test cases work for the public rest API, which is making me even confusing. |
Spotlight ApplicationPath does not come from the command line parameter as declared here. If you want to change the path with the current version, I advise you put it behind an Apache / Nginx |
Hi, Sandro, Thanks for the quick reply. However, I still find the problem not related to the application path. I restarted the server as
And then I do the following query:
, which gives me the same XML error, here is the full stack trace:
Note that, the following query is fine (no matter which application path I am using):
|
I'm also experiencing this issue with query: Mediterranean Sea |
Me too. Any hint since the last post? |
Getting this too, any word on this? |
I am running the in-house RESTful server.
Using dbpeidia spotlight 1.0.0 [1] and model 2016-10 [2].
The server can do annotation most of the time, but sometimes throws:
One minimum test case to reproduce the error is:
curl http://localhost:2222/en/rest/annotate --data-urlencode "text=Crimean peninsula Black Sea" -H "Accept: application/json"
Interestingly, querying the public dbpedia end point is totally fine:
curl http://api.dbpedia-spotlight.org/en/annotate --data-urlencode "text=Crimean peninsula Black Sea" -H "Accept: application/json"
[1] http://downloads.dbpedia-spotlight.org/spotlight/dbpedia-spotlight-1.0.0.jar
[2] http://downloads.dbpedia-spotlight.org/2016-10/en/model/en.tar.gz
The text was updated successfully, but these errors were encountered: