Questions tagged [http-status-code-406]

The HTTP response status code 406 Not Acceptable

The requested resource is only capable of generating content not acceptable according to the Accept headers sent in the request.

See also RFC2616.

176 questions
1
vote
3 answers

Can not get RestTemplate to work properly. Ends up in 406 Not Acceptable

I'm trying to use Spring's RestTemplate to implement a payment provider into a project I'm working on. The XML being returned from the payment provider is as follows: 0031
Ron Pasch
  • 231
  • 2
  • 5
1
vote
2 answers

API kitchen POSTing to drupal service

So I am using http://apikitchen.com/ to debug an issue I am having with a drupal service. I use: http://vmstage.dop.com/mobile/user/login.json as the URL to test. Method is POST and add two parameters: username password Set the username and…
Ronnie
  • 11,138
  • 21
  • 78
  • 140
1
vote
0 answers

XSS 406 Not Acceptable trying to get multiple page information

My school currently has a website that it puts our courses on. I have been trying to improve some of the information that it displays on the main page by requesting other information on other pages and place them on a side bar via a chrome…
Rizowski
  • 3,528
  • 5
  • 22
  • 31
1
vote
1 answer

What could possibly be causing a 406 on an identicaly .json post call?

I'm using a heavy javascript based app that uses a drag and drop feature. It works well. But if I add a dynamic object to the page ( which has the exact same attributes and variables as the other objects ), it drags, but on drop, the POST returns a…
Trip
  • 26,756
  • 46
  • 158
  • 277
1
vote
3 answers

@ResponseBody in return type ; 406 error for accept header

I am using Spring MVC with in my config file. my contoller method is public @ResponseBody ArrayList create(UploadItem uploadItem) { .............. return list; } Using jre1.7 Still getting HTTP Status…
PDN
  • 90
  • 1
  • 5
0
votes
0 answers

Is it possible to change IIS 7.x default list of acceptable mime types to more than application/json?

I'm working on a set of REST services, and we intend to support both JSON as well as BSON, and possibly XML, as return types for any resource call that returns data. It was a no brainer to get application/json working, however when hosted in IIS…
jrista
  • 32,447
  • 15
  • 90
  • 130
0
votes
2 answers

406 Error on jquery AJAX request

This is driving me mad. I'm getting a 406 error when I make an AJAX request at my hosting (Linux), but not on my local machine (Windows 7). Both using Apache. All other requests that have the same format,…
Hogsmill
  • 1,574
  • 13
  • 21
0
votes
1 answer

406 Not Acceptable error

Please take a look at this page: http://www.carteadenisip.ro/partener/id-753.html - the image is not showing The image url is http://www.carteadenisip.ro/img/part/27/f_26648.jpeg If you access the image directly, with no referer, the image shows. If…
keepwalking
  • 2,644
  • 6
  • 28
  • 63
0
votes
0 answers

How to handle HttpMediaTypeNotAcceptableException in Java SpringBoot?

When I add "Accept": "application/xml" in the HTTP headers, my application returns empty content and HttpMediaTypeNotAcceptableException in the console. I don't know how to handle it to get a response like this: { "status": 406, "message":…
0
votes
0 answers

Using SendGrid API I get a 406 error: Resource representation is only available with these types:\ntext/html; charset=UTF-8

I'm working in python creating a script that sends email message transcriptions from a chatbot. I've contacted Send Grid and they said it is likely something wrong with my header. I've tried a bunch of different things, but none have worked or make…
0
votes
1 answer

Getting status code 406 every time i send a message with kafka

Hi i'm trying to write a RESTful service with Kafka. I'm writing my code to make it store the messages received from kafka by the consumer into an open search index every time i make a GET or a POST request, but i'm constantly receiving this…
user20174493
0
votes
0 answers

Paypal 406 not acceptable Not Acceptable address error

When we try to place and order through PaypalExpressCheckout, We are unable to connect to paypal, We see the below exception [5/15/23 16:27:29:039 GMT] 00000109 SOAPOverHTTPS E WSWS7263E: The following exception occured:…
Shiva
  • 55
  • 6
0
votes
0 answers

How to use NodeJS/Browsers native fetch library to download a Gitlab Archive without using the same-origin mode? Receiving Error 406

I've been attempting to download a gitlab archive using the native fetch library shipped with NODE.JS let url = 'https://gitlab.com/api/v4/projects/21015560/repository/archive.zip' let options = { headers: { 'private-token': token, }, …
0
votes
0 answers

The remote server returned an error: (406) Not Acceptable. when sending arabic characters in sparql query to remote endpoint

I am using dotnetrdf with asp.net ,and trying to get altLabels for authors names via sparql my query is like this: SparqlRemoteEndpoint endpoint = new SparqlRemoteEndpoint(new Uri("http://dbpedia.org/sparql"),…