JustJohn Posted October 22, 2022 Share Posted October 22, 2022 Trying out Prestashop 8 but cannot access API at all. It's always code 401 for me and I've tried every method, but even the simplest one: https://domain.com/api and providing the generated key as username and leaving the password empty doesn't work, it just keeps popping the login window. What am I doing wrong? It's a fresh installation, nothing changed. There are no debug logs so I'm in the dark. Link to comment Share on other sites More sharing options...
Nickz Posted October 22, 2022 Share Posted October 22, 2022 3 hours ago, JustJohn said: Trying out Prestashop 8 Which one? 8? or 1.7.8.7 ? What api you have installed? Link to comment Share on other sites More sharing options...
JustJohn Posted October 23, 2022 Author Share Posted October 23, 2022 8 RC1, the newest currently. I don't have any API "installed", I'm talking about the REST API built into Prestashop that you access via /api/... on your store's domain via a browser or a REST client software. I've tried both the browser and the client options and the end result is still the same 401 error that I see in Apache logs. Link to comment Share on other sites More sharing options...
JustJohn Posted October 24, 2022 Author Share Posted October 24, 2022 Fixed this. Apparently I was passing the Authorization header but a separate authorization option in the client was overriding it. As for browser/url access domain.com/api?ws_key=your_generated_key works. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now