REST API "415 Unsupported Media Type"

37 views
Skip to first unread message

Lewatle Johannes Phaladi

unread,
Mar 27, 2023, 9:44:14 AM3/27/23
to DSpace Technical Support
Hi DSpace Tech,

We are getting the following error "415 Unsupported Media Type" while trying to push items using Rest API to DSpace 7.4 

Please advise on how to resolve the error.

Regards,
Lewatle 

Tim Donohue

unread,
Mar 27, 2023, 11:21:08 AM3/27/23
to Lewatle Johannes Phaladi, DSpace Technical Support
Hi,

Usually, a 415 error means you are sending data using an invalid "Content-Type" header.  In most scenarios the content-type should be either "application/json" or "application/json-patch+json" (for PATCH requests).

However, it's difficult to provide better advice without understanding which exact request is returning a 415.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Lewatle Johannes Phaladi <joem...@gmail.com>
Sent: Monday, March 27, 2023 8:44 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] REST API "415 Unsupported Media Type"
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/9c91dacb-24e7-4445-b891-6f116d974ce3n%40googlegroups.com.

Lewatle Johannes Phaladi

unread,
Mar 28, 2023, 6:51:02 AM3/28/23
to DSpace Technical Support
Hello Tim,

Thanks a lot for respond.

Regards,
Lewatle 
Reply all
Reply to author
Forward
0 new messages