on 03-18-2016 8:12 PM - last edited on 02-04-2024 3:35 AM by postmig_api_4
Hi I set up stand alone data hub on apche tomcat once I hit below url
GET - http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/ I am getting 200 successmessage through rest client as specified in wiki (You should get a 200 Success message in response, which shows the Data Hub is running properly.) But when I am trying to push data with below url specified in wiki
POST - http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/items/RawProduct HEADER: Content-Type: application/octet-stream / x-tenantId: single
BODY:
ourceId,isoCode,baseName,baseDescription,ean,manufacturerName,manufacturerAid,unit,style,size,SKU,category,styleDescription M25687,en,"T-Shirt Men Playboard Skull SS",,,,,pieces,,,,, M25687,de,"Herren T-Shirt Playboard Skull SS",,,,,pieces,,,,, M25687,,,,,,,,,,,tshirts getting 401 bad request and it says header content type is wrong.
Can you Please let me know what could be the issue and if use header content typeas application/Json I am getting unsupported media type
You need to add these headers (Content-Type: application/octet-stream and x-tenantId: single) separately
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thanks for the inputs.As you said I added header as Content-Type:application/octet-stream and accessed below post url
http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/items/RawProduct
now also I am getting 400 bad request error but now error message coming as message": "RawProduct type is not a valid RawItem type", and as per wiki I added pcm-apparel-canonical-5.7.0.0-RC5,pcm-apparel-raw-5.7.0.0-RC5,pcm-apparel-target-5.7.0.0-RC5 jar files in my tomcat lib folderalt text.
Could you please let me know if you have any idea on this !
Hi may I know how did you set up the standalone data hub? I cannot make it work with authentication (http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/), I followed all the steps in wiki, but still failed, could you please provide some tips or your install steps for me? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thanks for the inputs.As you said I added header as Content-Type:application/octet-stream and accessed below post url
http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/items/RawProduct
now also I am getting 400 bad request error but now error message coming as message": "RawProduct type is not a valid RawItem type", and as per wiki I added pcm-apparel-canonical-5.7.0.0-RC5,pcm-apparel-raw-5.7.0.0-RC5,pcm-apparel-target-5.7.0.0-RC5 jar files in my tomcat lib folder.
Could you please let me know if you have any idea on this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jagdish,
Unfortunately, I missed notification regarding this further question and not sure if you are still looking for the solution. You need to add the jars (pcm-apparel-canonical-5.7.0.0-RC5,pcm-apparel-raw-5.7.0.0-RC5,pcm-apparel-target-5.7.0.0-RC5) under tomcat>webapps>datahub-webapp>WEB-INF>lib folder.
Thanks, Arvind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.