415 Unsupported Media type on REST .net Core

5 posts, 1 answers
  1. Trung
    Trung avatar
    8 posts
    Member since:
    Jan 2018

    Posted 23 Jan Link to this post

    Following these guide: 

    https://www.telerik.com/blogs/telerik-reporting-and-aspnet-core

    https://docs.telerik.com/reporting/html5-report-viewer-asp-net-core-2

    to create a REST service for Telerik Report, but whatever I do, I have always get this error:

    Am I missing something?

     

     

     

     

     

  2. Answer
    Katia
    Admin
    Katia avatar
    684 posts

    Posted 26 Jan Link to this post

    Hi Trung,

    Test setting the content type when creating request in Postman as JSON(application/json). This suggestion is based on this stackoverflow thread where a similar problem is discussed.


    Regards,
    Katia
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Trung
    Trung avatar
    8 posts
    Member since:
    Jan 2018

    Posted 30 Jan Link to this post

    Hi Katia, 

    I have already tried this before, it just doesn't matter. Except your HTML viewer provided in Telerik Reporting packages, all requests sent to  Telerik Report Services (running on .Net Core target .Net Framework) will result in 415 error.

    I have tried to use Postman, pure Javascript, Jquery, Angular, Asp.Net Web Controller and all failed with 415.......

    This does not happen if I have the Telerik Report Services running on pure .Net Framework. 

    Could you confirm with the Tech guy and give me some solution on this?. This is quite essential for me to get a demo example working for my company next meeting

    Cheers

     

  4. Trung
    Trung avatar
    8 posts
    Member since:
    Jan 2018

    Posted 30 Jan Link to this post

    Hi Katila,
    I have figured out the problems. The cause is due to my setup and configuration of the project. Everything works now. 
    Thanks for your help
  5. Trung
    Trung avatar
    8 posts
    Member since:
    Jan 2018

    Posted 30 Jan Link to this post

    Hi Katila,
    I have figured out the problems. The cause is due to my setup and configuration of the project. Everything works now. 
    Thanks for your help
Back to Top