ruby on rails - 406 not acceptable error on mobile agents -
i using angular application run application uses ruby on rails backend apis. our application works correctly on web desktop in different browsers mobile devices, getting 406 not acceptable errors same apis. not getting way understand problem in frontend code side or in backend api side.
just add options request sent first on getting error.
your backend service saying response type returning not provided in accept http header in client request.
ref: http://en.wikipedia.org/wiki/list_of_http_header_fields
find out response (content type) returned service. provide (content type) in request accept header. http://en.wikipedia.org/wiki/http_status_code -> 406
Comments
Post a Comment