authentication-extension
authentication-extension copied to clipboard
401 HTTP Code when using with neo4j-unmanaged-extension-template using REST API
Hi there,
I got a weird error when using authentication-extension
combined with neo4j-unmanaged-extension-template
When i'm trying to fetch data via Neo4J REST API, my data are well fetch but new relic
logs this error :
/org.neo4j.server.extension. auth. AuthenticationFilter
HttpClientError 401
Instance
neo4j-test(java:My Application:6362)
The weird thing is that my data are good and the response code is HTTP 200 (Success) in my console.
Here is the code i'm using
auth = {:username => "myusername", :password => "mypassword"}
url = "http://neo4j_endpoint:7474/example/service/queries/mycustomquery"
fetch = HTTParty.post(url, :basic_auth => auth,
:body => { :id => 1,
:limit => 10
},
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' } )
So it's working well but the 401 error is still raised by authentication-extension
.
Any idea ?
EDIT : This error is as well raised each time i login the webportal + this one below
/server/console (POST)
HttpClientError 400
Regards,
I'm also seeing this. Any ideas?
Does it work when you try it with curl from the command-line?