neo4j-labs / neosemantics

Graph+Semantics: Import/Export RDF from Neo4j. SHACL Validation, Model mapping and more.... If you like it, please ★ ⇧
https://neo4j.com/labs/neosemantics/
Apache License 2.0
813 stars 141 forks source link

FetchURLError.Please help me. #189

Open wbl1855 opened 3 years ago

wbl1855 commented 3 years ago

Hi,

I can't install Neosemantics Release 4.1.0.0 for Neo4j 4.1.1 Community on Windows. I copied neosemantics jar in E:\neo4j-community-4.1.1\plugins folder, edited neo4j.conf.But when I test with the ": get / RDF / Ping" command, neo4j prompts FetchURLError Could not fetch URL: "404 Not Found". This could be due to the remote server policy. See your web browsers error console for more information.

Any help will be appreciated. Thanks.

bae12138 commented 3 years ago

I've had the same problem, have you got any solutions?

wbl1855 commented 3 years ago

My solutions are listed. Please check my conversation with that expert.

哈尔滨理工大学_王保磊

邮箱:baoleicheerup@163.com |

签名由 网易邮箱大师 定制

On 10/14/2020 17:04, bae12138 wrote:

I've had the same problem, have you got any solutions?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

jbarrasa commented 3 years ago

hi, from 4.x you need to use the full url :GET http://localhost:7474/rdf/ping, not just the relative one. Installation instructions and checks to verify it's all correctly installed are in the manual ;-)

Cheers,

JB

bae12138 commented 3 years ago

Thank you so much for your reply, the problem has been perfectly solved!!

corinabioinformatic commented 3 years ago

Hello. I am following the manual that @jbarrasa linked in the comment above. But I am yet getting the error (in my local neo4j window or in the browser window):

ERROR FetchURLError Could not fetch URL: "404 Not Found". This could be due to the remote server policy. See your web browsers error console for more information.

The call dbms.procedures() works perfectly and returns me the information i want. It is just the :GET it is not working for me. I also used bolt://localhost:7687/rdf/ping and I get a different error. What Am I doing wrong?

jbarrasa commented 3 years ago

Hi @corinabioinformatic , what versions of neo4j and n10s are you on?

are we sure the extension has been correctly mounted? On startup you should see the following line in the neo4j.log

2020-10-27 19:07:16.390+0000 INFO  Bolt enabled on localhost:7687.
2020-10-27 19:07:16.428+0000 INFO  Mounted unmanaged extension [n10s.endpoint] at [/rdf]
2020-10-27 19:07:17.600+0000 INFO  Remote interface available at http://localhost:7474/
2020-10-27 19:07:17.601+0000 INFO  Started.

is it possible that there are other extensions installed that could be overwriting the dbms.unmanaged_extension_classes= setting in the neo4j.conf?

PS: the extensions are HTTP only, so it's normal that the :GET on bolt://... does not work.

jbarrasa commented 3 years ago

Right, so the extension is mounted. What do you get if you curl localhost:7474 ? curl -uneo4j:neo http://localhost:7474/rdf/ping (neo4j:neo being your user:pwd) You should get the ping response: {"ping":"here!"}

Is that the case?

corinabioinformatic commented 3 years ago

I am using curl from the terminal provided by neo4j (my project) @jbarrasa .

curl -U neo4j:mypassw http://localhost:7474/rdf/ping

I get a long json (I guess) saying:

{
  "errors" : [ {
    "code" : "Neo.ClientError.Security.Unauthorized",
    "message" : "No authentication header supplied."
  } ]
}

I am in Windows and my my connection status (at my project from Neo4J GUI) says that I am connected to bolt://localhost:7XXX. Does this make a difference?