Jump to content

API page not autorized


Recommended Posts

Hi

I added a key to my webservice page to link my accountancy program. The connection doesn't work & when I try to visit my API page https://eco-tronic.eu/api I get error 401 unauthorized.

image.png.6d06868c108952b784d8059e8156aa7a.png

I read a lot online but haven't found any solution. Is there anyone who know's what the problem may be?
In the webservice page is my CGI turned to false because when I don't, I can't visit any page...

 

I added my .htaccess file as well.

.htaccessFetching info...

Link to comment
Share on other sites

Got the same problem as you.

If I connect to <myURL>/api/ the browser promts for username and password.

When I enter the authentication key  as username (as the documentation https://devdocs.prestashop.com/1.7/webservice/tutorials/testing-access/ says) the browser promts again and again. In the documentations they say, that this happens only if your connection authentication key hasn't set any rights, but I set every right for this test.

Is there anyone who knows that problem?

 

Link to comment
Share on other sites

That's exactly what I do. The browser prompts, I enter the API Authentication Key as username and press enter/login.

After that, the Login Window closes and opens again.

I'm not able to log in.

I gave the API key that I'm using at the moment every right existing just for the test but it still does not work.

Link to comment
Share on other sites

  • 7 months later...
  • 1 year later...
  • 1 year later...

Hello, thanks for replying.
Actually I have an issue with webservice. 
It return an error “bad http response” when I test connection with another platform (qapla.it). Sometimes it works for the first after I turn on and off the CGI mode. Everything is configured fine as per my knowledge. 
what I tried is disable mod_security, regenerate the keys and added again, regenerate the .htaccess  but no solution. Can you guide me please?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...