Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service calling issue #40

Open
arpitjoshi08 opened this issue Dec 11, 2018 · 1 comment
Open

Service calling issue #40

arpitjoshi08 opened this issue Dec 11, 2018 · 1 comment

Comments

@arpitjoshi08
Copy link

arpitjoshi08 commented Dec 11, 2018

Getting this error when i call server using this structure:

<!doctype html><title>HTTP Status 415 – Unsupported Media Type</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}</style>

HTTP Status 415 – Unsupported Media Type


Type Status Report

Message Unsupported Media Type

Description The origin server is refusing to service the request because the payload is in a format not supported by this method on the target resource.


Apache Tomcat/7.0.90

415 Unsupported Media Type okhttp error

@anandwana001
Copy link

Sorry for the delayed response. Its because of the type of data coming from the service which you are calling is not the same type which you are receiving,
please check and update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants