what does the trace of the post look like?. Also, is there suposed to be a
- in your ContentType? It could be putting in the Content-Type header in
additiin to the one you specified.
On Jan 14, 2015 12:00 AM, "David Tucker" <[email protected]> wrote:

> Has anyone seen the error
>         Error 415 Unsupported Media Type
> when trying to use the REST interface to create a new plug-in ?
>
> — David
>
>
> DETAILS
>
> The json file describing the plug-in is :
> {
>   "name" : "mdb",
>   "config" : {
>     "type" : "hbase",
>     "config" : {
>       "hbase.table.namespace.mappings" : "*:/tables"
>     },
>     "size.calculator.enabled" : false,
>     "enabled" : true
>   }
> }
>
> This is an exact copy of a working plug-in of a different name.
>
> I try to insert the plug-in with the command
>
>         curl -X POST -H "ContentType: application/json” \
>           --upload-file mdb.json \
>           http://localhost:8047/storage/mdb.json
>
> The full response is
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
> <title>Error 415 Unsupported Media Type</title>
> </head>
> <body><h2>HTTP ERROR 415</h2>
> <p>Problem accessing /storage/mdb.json. Reason:
> <pre>    Unsupported Media Type</pre></p><hr><i><small>Powered by
> Jetty://</small></i><hr/>
>
> </body>
> </html>
>
>

Reply via email to