janishar / android-mvvm-architecture

This repository contains a detailed sample app that implements MVVM architecture using Dagger2, Room, RxJava2, FastAndroidNetworking and PlaceholderView
https://janisharali.com
Apache License 2.0
2.95k stars 936 forks source link

Service calling issue #40

Open arpitjoshi08 opened 5 years ago

arpitjoshi08 commented 5 years ago

Getting this error when i call server using this structure:

<!doctype html>HTTP Status 415 – Unsupported Media Type

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 commented 5 years ago

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.