Cách khắc phục lỗi 400 bad request

I have been running into this error for the last 3 or 4 weeks making requests to app engine. Certain requests – especially HTTP DELETE requests, are having this error returned from the google server.

Watching: Cách khắc phục lỗi 400 bad request

Watching: Bigquery: your client has issued a malformed or illegal request, that’s all we know · issue #2855 · googleapis/google

Others have reported the same error – with 3 outcomes I can locate

I”m now getting this behaviour all the time, in every browser. I can completely clear down the cache/cookies etc.

See more: Mailbox – Sign In To Gmail

in Chrome, Firefox, Safari, restart the browser and still reliably get this error on the same requests, so I don”t think its cookie related. In any case I can issue GET, POST & PUT requests no problem with the same cookie.

See more: How Can I Delete Or Restore Your Photos & Videos, How To Add/Delete Photos In My Photos In Gmail

Given that it occurs reliably on specific DELETE requests, the malformed URL would seem the most likely, however my URL is really very simple, and works fine on the dev server

Firebug shows the request headers as (I”ve munged the keys as they contain identifying data, but did so by removing characters from the centre of the key – not either end to guarantee I didn”t inadvertently remove any leading or trailing whitespace)

See Also:  How tinder is now being useful for more than just hook

Request URL:http://my-app.appspot.com/agprhcjgLEgVLbm93dCItX0RrbV9Ea25vd3RfbmV0X19wccxDA/Task.xml Request Method:DELETE Status Code:400 Bad Request Request Headers Accept:*/* Cache-Control:max-age=0 Content-Type:application/x-www-form-urlencoded Origin:http://my-app.appspot.com Referer:http://my-app.appspot.com/ User-Agent:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4 X-Requested-With:XMLHttpRequest Form Data entity_key:agprdC1hcjYLEgVLbm93dCIrX09Ea25vd3RfbmV0X19wMQw Response Headers Content-Length:1350 Content-Type:text/html; charset=UTF-8 Date:Fri, 30 Jul 2010 15:51:58 GMT Server:GFE/2.0The response headers show that the request never made it to the app engine servers (and my app engine logs bear this out) – a request which successfully makes it to the app engine server looks more like this for response headers –

Is anyone else able to issue HTTP DELETE requests to google app engine? If you are, do your URL”s contain app engine entity keys? Can you see anything dodgy with mine?

Any other pointers would be greatly appreciated. Cheers,

Colin

The full response from the google server is –

400 Bad Request

Google
Error

Bad RequestYour client has issued a malformed or illegal request.

Categories: Domain Hosting

Categories: Mail

Leave a Reply

Your email address will not be published.