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

what "406-not acceptable response" in http?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -