cancel
Showing results for 
Search instead for 
Did you mean: 

Data Hub installation issue 401 for http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED

Former Member
0 Kudos

After I follow the wiki to install standalone Tomcat with Data Hub, When I try to access the url mentioned in wiki (http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED), I got 401, does any one know how to solve it?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

most probably you missed to set up your basic auth see: https://help.hybris.com/6.0.0/hcd/f249ca116b4747f2be621dac10ad8c4f.html you can verify if you can access a non secured resource like http://localhost:8080/datahub-webapp/v1/status

Former Member
0 Kudos

I did missed the setup for Basic Authentication. I just did a quick test by disabling it(as there are too many account settings for data hub and also hybris commerce, so i just skipped it first), now it works! Thanks Matthias 🙂

Former Member
0 Kudos

Hi Matt,

When I enable the authentication, and set the username and password according to the wiki, I still failed to access the data-feed URL with 401 error, status one works well, may I know if you have any idea about that? Thanks!

Former Member
0 Kudos

Make sure to use the Authorization header in your request to the dataHub.

Former Member
0 Kudos

Yes, I did provide the "basic auth" with the username/password i set in the local.properties for datahub, but it keeps saying "HTTP Status 401 - Bad credentials". I just attached the configuration i set for data (due to the limited length of characters here). Could you please help verify if anything incorrect/missed? Thanks link text

Former Member
0 Kudos

Try placing both local.properties & encryption file in TOMCAT_HOME\lib folder and remove local.properties entry from dathub-webapp.xml

Former Member
0 Kudos

Hi, thanks for the tip, but after this change, I still get the 401 error, while it also printed some error in the console log, could you please have a look and see whether you know why it happened? I've no idea what's that about as it didn't mention any table in the error(I'd tried with both mysql and hsql, they both got the same error).