authentication-extension icon indicating copy to clipboard operation
authentication-extension copied to clipboard

401 HTTP Code when using with neo4j-unmanaged-extension-template using REST API

Open kwent opened this issue 11 years ago • 2 comments

Hi there,

I got a weird error when using authentication-extensioncombined 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,

kwent avatar Jan 29 '14 02:01 kwent

I'm also seeing this. Any ideas?

ckbhodge avatar Jan 30 '14 04:01 ckbhodge

Does it work when you try it with curl from the command-line?

jexp avatar Jun 15 '14 08:06 jexp