on 12-29-2014 8:59 PM - last edited on 02-04-2024 4:21 AM by postmig_api_4
Hi,
I'm following the Data Hub trial at the URL:
and got stuck trying to load raw data by posting the message to the following endpoint:
http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/items/RawApparelCategory
I applied the headers: Content-Type : application/octet-stream x-tenantId : single
Even with all these settings, I still got the error: 415 Unsupported Media Type
Wondering if theres something I missed?
Thanks.
Yep, thats what I'm experiencing too. That setting is defaulted to "Text" for all my requests that have been failing and even changing it to something else doesn't change the 415 error message.
I'm using the Postman app running on Chrome. Is there a different version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Couple of things: Your Headers button says: Headers(0), and I would get rid of everything in the URL after /RawApparelCategory including the ? so your url looks like this: http://localhost:8080/datahub-webapp/v1/data-feeds/DEFAULT_FEED/items/RawApparelCategory
If you are using postman, make sure that the little drop-down selection to the right of [..|raw|binary] is set to 'Text'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for replying Rafal. I tried setting the Accept header to application/xml, application/json, text/plain and they all still came back with the 415 error.
Any other suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It could be the case that your Accept: header is set to application/octet-stream. Add Accept: application/xml and see if that helps.
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.