415 Unsupported Media Type


#1

Hi,
getting below error:-

C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclient/abstract_re
sponse.rb:48:in return!': 415 Unsupported Media Type (RestClient::UnsupportedMe diaType) from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien t/request.rb:230:inprocess_result’
from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien
t/request.rb:178:in block in transmit' from C:/Ruby200/lib/ruby/2.0.0/net/http.rb:852:instart’
from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien
t/request.rb:172:in transmit' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien t/request.rb:64:inexecute’
from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien
t/request.rb:33:in execute' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien t/resource.rb:67:inpost’
from default.rb:37:in `’

please help me

Regards,
Seema Khalkar.


#2

Hi,

seema.khalkar@igate.com writes:

getting below error:-

C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclient/abstract_re
sponse.rb:48:in `return!’: 415 Unsupported Media Type
(RestClient::UnsupportedMe
diaType)

It’s hard to help without a bit more information. From the error trace,
we don’t know what URL you are trying to access, nor the shape of the
request you sent.

The HTTP status code is telling you that you’ve sent the server data in
a format it doesn’t recognize or support. This could be because of the
data itself or because of a mismatch (or lack of) HTTP request header
describing the format being sent.

  • seth


Seth Falcon | Development Lead | CHEF | http://www.getchef.com/ | @sfalcon


#3

Hi Seema,
When submitting requests for help like this, it is helpful to others if you
provide more information about the error you are receiving. Specifically,…

  1. the *entire *error log in a Gist (gist.github.com) or some other online
    notepad (with any private or confidential information removed)
  2. the context around when and where you received this error

I’m afraid that very few individuals would be able to offer more help than
you would get from a simple Google Search without more information.

Best of luck,

Tom Duffield — Automation Consulting Engineer

651.769.7497 – tom@getchef.com – *my:
*Linkedinhttp://www.linkedin.com/in/thomasduffield
Twitter http://www.twitter.com/tomduffield
CHEF

GETCHEF.COM http://www.getchef.com/

TM

getchef.com http://www.getchef.com/ Bloghttp://www.opscode.com/blog/
Facebook https://www.facebook.com/getchefdotcom
Twitterhttps://twitter.com/getchefdotcom
Youtube https://www.youtube.com/getchef

Meet me at #ChefConf 2014 http://chefconf.com/

On Tue, Jan 14, 2014 at 8:06 AM, seema.khalkar@igate.com wrote:

Hi,
getting below error:-

C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclient/abstract_re
sponse.rb:48:in return!': 415 Unsupported Media Type (RestClient::UnsupportedMe diaType) from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien t/request.rb:230:inprocess_result’
from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien
t/request.rb:178:in block in transmit' from C:/Ruby200/lib/ruby/2.0.0/net/http.rb:852:instart’
from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien
t/request.rb:172:in transmit' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien t/request.rb:64:inexecute’
from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien
t/request.rb:33:in execute' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclien t/resource.rb:67:inpost’
from default.rb:37:in `’

please help me

Regards,
Seema Khalkar.