CharpentierHuskins255

From StatWiki
Jump to: navigation, search

Não é possível acessar esse site

A página da web em https://www.google.com.br/search?sourceid=chrome-psyapi2&ion=1&espv=2&ie=UTF-8&q=Stack20Exchange20Inbox20Reputation20and20Badges20sign20up20log20in20tour20help20Search20Q26A20Stack20Overflow20Questions20Jobs20Tags20Users20Badges20Ask20Question20_20Stack20Overflow20is20a20community20of204.720million20programmers2C20just20like20you2C20helping20each20other.20Join20them3B20it20only20takes20a20minute3A20Sign20up20Join20the20Stack20Overflow20community20to3A20Ask20programming20questions20Answer20and20help20your20peers20Get20recognized20for20your20expertise20App20Engine2040020-20Your20client20has20issued20a20malformed20or20illegal20request20up20vote201620down20vote20favorite20320I20have20been20running20into20this20error20for20the20last20320or20420weeks20making20requests20to20app20engine.20Certain20requests20-20especially20HTTP20DELETE20requests2C20are20having20this20error20returned20from20the20google20server.20Others20have20reported20the20same20error20-20with20320outcomes20I20can20locate20It20is20caused20by20stale20cookies20-20clear20your20cookies20and20it20runs20fine20gmail20help20-20It20is20caused20by20a20malformed20url20-20only20cases20I20can20find20relate20to20urlfetch()20-20spaces20in20the20url20-20App20engine20Group202312C20App20Engine20Group2023220No20resolution20-20sporadic20behaiour2C20IE20only.20App20Engine20Group202332C20App20Engine20Group2023420I27m20now20getting20this20behaviour20all20the20time2C20in20every20browser.20I20can20completely20clear20down20the20cache2Fcookies20etc.20in20Chrome2C20Firefox2C20Safari2C20restart20the20browser20and20still20reliably20get20this20error20on20the20same20requests2C20so20I20don27t20think20its20cookie20related.20In20any20case20I20can20issue20GET2C20POST20PUT20requests20no20problem20with20the20same20cookie.20Given20that20it20occurs20reliably20on20specific20DELETE20requests2C20the20malformed20URL20would20seem20the20most20likely2C20however20my20URL20is20really20very20simple2C20and20works20fine20on20the20dev20server20Firebug20shows20the20request20headers20as20(I27ve20munged20the20keys20as20they20contain20identifying20data2C20but20did20so20by20removing20characters20from20the20centre20of20the20key20-20not20either20end20to20guarantee20I20didn27t20inadvertently20remove20any20leading20or20trailing20whitespace)20Request20URL3Ahttp3A2F2Fmy-app.appspot.com2FagprhcjgLEgVLbm93dCItX0RrbV9Ea25vd3RfbmV0X19wccxDA2FTask.xml20Request20Method3ADELETE20Status20Code3A40020Bad20Request20Request20Headers20Accept3A*2F*20Cache-Control3Amax-age3D020Content-Type3Aapplication2Fx-www-form-urlencoded20Origin3Ahttp3A2F2Fmy-app.appspot.com20Referer3Ahttp3A2F2Fmy-app.appspot.com2F20User-Agent3AMozilla2F5.020(Macintosh3B20U3B20Intel20Mac20OS20X2010_6_43B20en-US)20AppleWebKit2F533.420(KHTML2C20like20Gecko)20Chrome2F5.0.375.9920Safari2F533.420X-Requested-With3AXMLHttpRequest20Form20Data20entity_key3AagprdC1hcjYLEgVLbm93dCIrX09Ea25vd3RfbmV0X19wMQw20Response20Headers20Content-Length3A135020Content-Type3Atext2Fhtml3B20charset3DUTF-820Date3AFri2C203020Jul20201020153A513A5820GMT20Server3AGFE2F2.020The20response20headers20show20that20the20request20never20made20it20to20the20app20engine20servers20(and20my20app20engine20logs20bear20this20out)20-20a20request20which20successfully20makes20it20to20the20app20engine20server20looks20more20like20this20for20response20headers20-20Cache-Control3Ano-cache20Content-Length3A433220Content-Type3Aapplication2Fxml20Date3AFri2C203020Jul20201020113A083A2120GMT20Expires3AFri2C200120Jan20199020003A003A0020GMT20Server3AGoogle20Frontend20X-AppEngine-Estimated-CPM-US-Dollars3A240.00403320X-AppEngine-Resource-Usage3Ams3D57320cpu_ms3D14620api_cpu_ms3D3020I20am20constructing20the20requests20using20jquery27s2024.ajax()20method20and20setting20the20type20as2027DELETE27.20Also2C20these20have20worked20as20recently20as20last20week2C20although20the20problem20was20starting20to20appear20intermittently.20Right20now2C20nothing20I20do20has20any20effect.20At20the20moment20I27m20thinking20this20is20some20sort20of20configuration20error2Fchange20on20google20servers202C20slowly20creeping20across20their20network20-20which20explains20why20it20began20intermittently2C20steadily20increased2C20and20now20happens20all20the20time.20Is20anyone20else20able20to20issue20HTTP20DELETE20requests20to20google20app20engine3F20If20you20are2C20do20your20URL27s20contain20app20engine20entity20keys3F20Can20you20see20anything20dodgy20with20mine3F20Any20other20pointers20would20be20greatly20appreciated.20Cheers2C20Colin20The20full20response20from20the20google20server20is20-20<html><head>20<meta20http-equiv3D"content-type"20content3D"text2Fhtml3Bcharset3Dutf-8">20<title>40020Bad20Request<2Ftitle>20<style><2Fstyle>20<script>20<2Fscript>20<2Fhead>20<body20text3D2300000020bgcolor3D23ffffff>20<table20border3D020cellpadding3D220cellspacing3D020width3D100><tr><td20rowspan3D320width3D120nowrap>20<font20face3Dtimes20color3D230039b620size3D10>G<2Ffont><font20face3Dtimes20color3D23c4120020size3D10>o<2Ffont><font20face3Dtimes20color3D23f3c51820size3D10>o<2Ffont><font20face3Dtimes20color3D230039b620size3D10>g<2Ffont><font20face3Dtimes20color3D2330a72f20size3D10>l<2Ffont><font20face3Dtimes20color3D23c4120020size3D10>e<2Ffont>26nbsp3B26nbsp3B<2Fb>20<td>26nbsp3B<2Ftd><2Ftr>20<tr><td20bgcolor3D"233366cc"><font20face3Darial2Csans-serif20color3D"23ffffff"><b>Error<2Fb><2Ftd><2Ftr>20<tr><td>26nbsp3B<2Ftd><2Ftr><2Ftable>20
20

Bad20Request<2FH1>20Your20client20has20issued20a20malformed20or20illegal20request.20

20<2Fblockquote>20<table20width3D10020cellpadding3D020cellspacing3D0><tr><td20bgcolor3D"233366cc"><img20alt3D""20width3D120height3D4><2Ftd><2Ftr><2Ftable>20<2Fbody><2Fhtml>20google-app-engine20shareimprove20this20question20edited20Dec202920271320at2063A4920Kara2022C9057264120asked20Jul203020271020at20163A5120hawkett2012C0684173820Your20first20suggestion20(clearing20all20data2C20cookies20etc)20worked20thanks20–20Dominic20Tobias20May202220271520at2093A2620add20a20comment20220Answers20active20oldest20votes20up20vote201620down20vote20accepted20With20an20HTTP20DELETE2C20the20URI20should20fully20identify20the20resource20to20be20deleted.20Sending20additional20data20in20the20request20body20is20unexpected2C20and20on20App20Engine2C20unsupported3A20Indeed2C20when20the20appspot20frontends20see20a20DELETE20request20that20includes20an20body2C20such20as20your20app2C20they20return20a20501.20But2C20if20you20remove20the20body20then20it20will20serve20a20200.20Based20on20the20subsequent20discussion2C20it20looks20like20they20decided2040020was20more20appropriate20than20501.20In20any20event2C20if20you20omit20the20body20and20move20your20entity20key20into20the20URI2C20you20should20be20fine.20shareimprove20this20answer20answered20Jul203020271020at20203A2520Drew20Sears2011.7k183620Hi20Drew20-20thanks20for20highlighting20this20-20definitely20looks20like20the20cause20of20the20problem.20It20strikes20me20as20an20incredibly20naive20constraint20-20especially20since20it27s20not20mandated20by20the20spec.20Regardless20of20my20use20case2C20DELETE20is20quite20a20complex20operation20-20e.g.20are20we20performing20a20hard20delete20or20a20soft20delete20-20what20about20archiving3F20Surely20it20should20be20up20to20the20serving20application20(and20not20the20context20unaware20web20server)20to20determine2020020or2040020in20this20situation.20Will20follow20this20up20on20the20google20issue20which20appears20to20have20been20re-opened20based20on20similar20concerns.20Thx.20–20hawkett20Jul203120271020at2003A3120120Why20not20just20follow20the20convention3F20GET2FPUT2FDELETE20should20fetch2C20create2Foverwrite2C20or20remove20the20exact20resource20identified20by20the20URI.20Extra20parameters20for20all20320should20go20on20the20query20string.20Only20PUT20should20have20a20body2C20and20it20should20be20the20resource20contents.20If20you20DELETE20a20URI20and20return20a202002C20a20subsequent20GET20or20DELETE20should20404.20For20everything20else2C20there27s20POST2C20which20just20means20"send20some20stuff20to20this20URI20and20expect20something20to20happen".20If20you20wanted20to20delete20two20resources20at20once2C20it20would20be20more20appropriate20to20do20that20in20a20POST20than20trying20to20stuff20the20logic20into20a20DELETE.20–20Drew20Sears20Jul203120271020at2013A4620A20few20points20-201)20if20data20should20be20encoded20on20the20query20string2C20then20jQuery27s20impl20of20DELETE20is20broken.202)20POST20should20be20used20to20create20an20entity20subordinate20to20the20resource20indicated20in20the20URI20-20I27m20doing20nothing20even20close20to20that20-20POST20would20be20a20big20hack.203)20PUT20doesn27t20use20query20params20by20convention2C20any20more20than20DELETE20doesn27t20have20a20body204)20I20can27t20find20any20official20statement20that20a20request20body20is20unexpected20for20DELETE20-20the20author20at20your20link20seems20to20have20embellished20the20specification.20All20that20said2C20it20looks20like20query20string20params20are20my20best20bet.20Just20not20liking20it203A)20Thx20–20hawkett20Jul203120271020at20113A0720This20post20is20also20useful2C20and20seems20to20come20to20the20conclusion20in20multiple20answers20that20it20should20be20supported20according20to20the20spec.20stackoverflow.com2Fquestions2F2996282F…20–20hawkett20Jul203120271020at20113A2620add20a20comment20up20vote20220down20vote20I27ve20seen20this20happen20when20the20site20authenticating20doesn27t20resolve20multiple20browser20users20properly20or20adequately.20In20ChromeOS20the20fix20is20to20sign20out20entirely2C20and20access20the20site20when20only20the20primary20identity20has20been20authenticated.20ExamplesGmail2C20and20Ingress.20shareimprove20this20answer20answered20Aug20120271420at20213A1620Just20Visiting2031120add20a20comment20Your20Answer20Sign20up20or20log20in20Sign20up20using20Google20Sign20up20using20Facebook20Sign20up20using20Email20and20Password20Post20as20a20guest20Name20Email20required2C20but20never20shown20Post20Your20Answer20By20posting20your20answer2C20you20agree20to20the20privacy20policy20and20terms20of20service.20Not20the20answer20you27re20looking20for3F20Browse20other20questions20tagged20google-app-engine20or20ask20your20own20question.20asked20520years20ago20viewed201634820times20active20120year20ago209920People20Chatting20JavaScript20120hour20ago20-20KarelG20KarelG120hour20agoHatter20is20Mad120hour20agoCaprica20Six120hour20agoSterling20Archer120hour20agossube120hour20agorlemon120hour20agoLoktar120hour20ago20SO20Close20Vote20Reviewers20120hour20ago20-20Andras20Deak20Andras20Deak120hour20agoPraveen20Kumar120hour20agoSmokeDetector120hour20agoKyll120hour20agoJAL220hours20agoMogsdad220hours20agoDrew220hours20ago20Linked2029120Is20an20entity20body20allowed20for20an20HTTP20DELETE20request3F20020Calling20RESTful20API20Using20Python20on20Google20App20Engine20Related207220Deleting20a20Google20App20Engine20application2020320How20to20use20Google20app20engine20with20my20own20naked20domain20(not20subdomain)3F206220Pros20Cons20of20Google20App20Engine20220Google20App20Engine20-20Request20was20aborted20after20waiting20too20long20to20attempt20to20service20your20request201020App20Engine20deployment20fails20with20“Client20Error20(400)20The20request20is20invalid20for20an20unspecified20reason.”2052050320and2040020on20uploading20images20in20Google20App20Engine20020LDAP20Client20in20Google20App20Engine20220google20app20engine20projectServer20Error20The20server20encountered20an20error20and20could20not20complete20your20request20020Google20App20Engine20ErrorSorry20your20request20cannot20be20processed20at20this20time.203F20320App20Engine20silently20fails20on20some20requests20Hot20Network20Questions20Compute20the20histogram20entropy20estimation20of20a20string20What20do20you20call20tiny20underdeveloped20segments20of20an20orange3F20Reverse20positive20runs20Why20is20there20so20much20fear20surrounding20LiPo20batteries3F20I20am20small20yet20Large2C20who20am20I3F20Attire20in20Iran20for20male20travelers20In20the20movie20Contact2C20did20they20get20the20theory20of20relativity20wrong3F20After20Darth20Vader20was20killed2C20did20Luke20tell20anyone20that20he20was20his20father3F20What20is20a20"risk20wafer"3F20Do20I20not20have20the20personality20for20a20PhD3F20notation20to20describe20an20elliptical20orbit3F20(3000km20x2040000km)20Can20I20use20"some"20as20a20synonym20of20"very"3F20More20clicks20while20using20"Noun"20or20"Verb"20for20actions3F20Rewritable20punch20cards20How20do20payroll-deducted20taxes20get20sent20to20the20IRS3F20Two20PhD27s20in20different20UK20universities2C20simultaneously2C20part-timeabsurd20idea3F20Is20it20conceivable20that20President20Obama20might20use20the20word20"queue"3F20Are20there20any20advantages20to20either20DC20barrel20connector20polarity3F20The20index20columns20in20sys.index_columns20different20from20what20are20in20the20index20What20is20the20purpose20of20the20extra20wheel20on20the20XB-7020main20gear3F20Where20did20the20term20"chicken20walker"20come20from3F20How20do20I20encourage20users20to20supply20information20that20might20not20be20available2C20if20it20is20available3F20Decides20the20mechanism20of20organic20chemical20reactions20based20on20user20input20How20do20you20say20"nail"20(as20in20"get20something20right")20in20French3F20question20feed20about20us20tour20help20blog20chat20data20legal20privacy20policy20work20here20advertising20info20mobile20contact20us20feedback20TECHNOLOGY20LIFE202F20ARTS20CULTURE202F20RECREATION20SCIENCE20OTHER20Stack20Overflow20Server20Fault20Super20User20Web20Applications20Ask20Ubuntu20Webmasters20Game20Development20TeX20-20LaTeX20Programmers20Unix20Linux20Ask20Different20(Apple)20WordPress20Development20Geographic20Information20Systems20Electrical20Engineering20Android20Enthusiasts20Information20Security20Database20Administrators20Drupal20Answers20SharePoint20User20Experience20Mathematica20Salesforce20ExpressionEngine®20Answers20more20(13)20Photography20Science20Fiction20Fantasy20Graphic20Design20Movies20TV20Seasoned20Advice20(cooking)20Home20Improvement20Personal20Finance20Money20Academia20more20(9)20English20Language20Usage20Skeptics20Mi20Yodeya20(Judaism)20Travel20Christianity20Arqade20(gaming)20Bicycles20Role-playing20Games20more20(21)20Mathematics20Cross20Validated20(stats)20Theoretical20Computer20Science20Physics20MathOverflow20Chemistry20Biology20more20(5)20Stack20Apps20Meta20Stack20Exchange20Area205120Stack20Overflow20Careers20site20design202F20logo20©20201620Stack20Exchange20Inc3B20user20contributions20licensed20under20cc20by-sa203.020with20attribution20required20rev202016.4.25.3510Stack20Exchange20Inbox20Reputation20and20Badges20sign20up20log20in20tour20help20Search20Q26A20Stack20Overflow20Questions20Jobs20Tags20Users20Badges20Ask20Question20_20Stack20Overflow20is20a20community20of204.720million20programmers2C20just20like20you2C20helping20each20other.20Join20them3B20it20only20takes20a20minute3A20Sign20up20Join20the20Stack20Overflow20community20to3A20Ask20programming20questions20Answer20and20help20your20peers20Get20recognized20for20your20expertise20App20Engine2040020-20Your20client20has20issued20a20malformed20or20illegal20request20up20vote201620down20vote20favorite20320I20have20been20running20into20this20error20for20the20last20320or20420weeks20making20requests20to20app20engine.20Certain20requests20-20especially20HTTP20DELETE20requests2C20are20having20this20error20returned20from20the20google20server.20Others20have20reported20the20same20error20-20with20320outcomes20I20can20locate20It20is20caused20by20stale20cookies20-20clear20your20cookies20and20it20runs20fine20gmail20help20-20It20is20caused20by20a20malformed20url20-20only20cases20I20can20find20relate20to20urlfetch()20-20spaces20in20the20url20-20App20engine20Group202312C20App20Engine20Group2023220No20resolution20-20sporadic20behaiour2C20IE20only.20App20Engine20Group202332C20App20Engine20Group2023420I27m20now20getting20this20behaviour20all20the20time2C20in20every20browser.20I20can20completely20clear20down20the20cache2Fcookies20etc.20in20Chrome2C20Firefox2C20Safari2C20restart20the20browser20and20still20reliably20get20this20error20on20the20same20requests2C20so20I20don27t20think20its20cookie20related.20In20any20case20I20can20issue20GET2C20POST20PUT20requests20no20problem20with20the20same20cookie.20Given20that20it20occurs20reliably20on20specific20DELETE20requests2C20the20malformed20URL20would20seem20the20most20likely2C20however20my20URL20is20really20very20simple2C20and20works20fine20on20the20dev20server20Firebug20shows20the20request20headers20as20(I27ve20munged20the20keys20as20they20contain20identifying20data2C20but20did20so20by20removing20characters20from20the20centre20of20the20key20-20not20either20end20to20guarantee20I20didn27t20inadvertently20remove20any20leading20or20trailing20whitespace)20Request20URL3Ahttp3A2F2Fmy-app.appspot.com2FagprhcjgLEgVLbm93dCItX0RrbV9Ea25vd3RfbmV0X19wccxDA2FTask.xml20Request20Method3ADELETE20Status20Code3A40020Bad20Request20Request20Headers20Accept3A*2F*20Cache-Control3Amax-age3D020Content-Type3Aapplication2Fx-www-form-urlencoded20Origin3Ahttp3A2F2Fmy-app.appspot.com20Referer3Ahttp3A2F2Fmy-app.appspot.com2F20User-Agent3AMozilla2F5.020(Macintosh3B20U3B20Intel20Mac20OS20X2010_6_43B20en-US)20AppleWebKit2F533.420(KHTML2C20like20Gecko)20Chrome2F5.0.375.9920Safari2F533.420X-Requested-With3AXMLHttpRequest20Form20Data20entity_key3AagprdC1hcjYLEgVLbm93dCIrX09Ea25vd3RfbmV0X19wMQw20Response20Headers20Content-Length3A135020Content-Type3Atext2Fhtml3B20charset3DUTF-820Date3AFri2C203020Jul20201020153A513A5820GMT20Server3AGFE2F2.020The20response20headers20show20that20the20request20never20made20it20to20the20app20engine20servers20(and20my20app20engine20logs20bear20this20out)20-20a20request20which20successfully20makes20it20to20the20app20engine20server20looks20more20like20this20for20response20headers20-20Cache-Control3Ano-cache20Content-Length3A433220Content-Type3Aapplication2Fxml20Date3AFri2C203020Jul20201020113A083A2120GMT20Expires3AFri2C200120Jan20199020003A003A0020GMT20Server3AGoogle20Frontend20X-AppEngine-Estimated-CPM-US-Dollars3A240.00403320X-AppEngine-Resource-Usage3Ams3D57320cpu_ms3D14620api_cpu_ms3D3020I20am20constructing20the20requests20using20jquery27s2024.ajax()20method20and20setting20the20type20as2027DELETE27.20Also2C20these20have20worked20as20recently20as20last20week2C20although20the20problem20was20starting20to20appear20intermittently.20Right20now2C20nothing20I20do20has20any20effect.20At20the20moment20I27m20thinking20this20is20some20sort20of20configuration20error2Fchange20on20google20servers202C20slowly20creeping20across20their20network20-20which20explains20why20it20began20intermittently2C20steadily20increased2C20and20now20happens20all20the20time.20Is20anyone20else20able20to20issue20HTTP20DELETE20requests20to20google20app20engine3F20If20you20are2C20do20your20URL27s20contain20app20engine20entity20keys3F20Can20you20see20anything20dodgy20with20mine3F20Any20other20pointers20would20be20greatly20appreciated.20Cheers2C20Colin20The20full20response20from20the20google20server20is20-20<html><head>20<meta20http-equiv3D"content-type"20content3D"text2Fhtml3Bcharset3Dutf-8">20<title>40020Bad20Request<2Ftitle>20<style><2Fstyle>20<script>20<2Fscript>20<2Fhead>20<body20text3D2300000020bgcolor3D23ffffff>20<table20border3D020cellpadding3D220cellspacing3D020width3D100><tr><td20rowspan3D320width3D120nowrap>20<b><font20face3Dtimes20color3D230039b620size3D10>G<2Ffont><font20face3Dtimes20color3D23c4120020size3D10>o<2Ffont><font20face3Dtimes20color3D23f3c51820size3D10>o<2Ffont><font20face3Dtimes20color3D230039b620size3D10>g<2Ffont><font20face3Dtimes20color3D2330a72f20size3D10>l<2Ffont><font20face3Dtimes20color3D23c4120020size3D10>e<2Ffont>26nbsp3B26nbsp3B<2Fb>20<td>26nbsp3B<2Ftd><2Ftr>20<tr><td20bgcolor3D"233366cc"><font20face3Darial2Csans-serif20color3D"23ffffff"><b>Error<2Fb><2Ftd><2Ftr>20<tr><td>26nbsp3B<2Ftd><2Ftr><2Ftable>20

20<H1>Bad20Request<2FH1>20Your20client20has20issued20a20malformed20or20illegal20request.20<p>20<2Fblockquote>20<table20width3D10020cellpadding3D020cellspacing3D0><tr><td20bgcolor3D"233366cc"><img20alt3D""20width3D120height3D4><2Ftd><2Ftr><2Ftable>20<2Fbody><2Fhtml>20google-app-engine20shareimprove20this20question20edited20Dec202920271320at2063A4920Kara2022C9057264120asked20Jul203020271020at20163A5120hawkett2012C0684173820Your20first20suggestion20(clearing20all20data2C20cookies20etc)20worked20thanks20–20Dominic20Tobias20May202220271520at2093A2620add20a20comment20220Answers20active20oldest20votes20up20vote201620down20vote20accepted20With20an20HTTP20DELETE2C20the20URI20should20fully20identify20the20resource20to20be20deleted.20Sending20additional20data20in20the20request20body20is20unexpected2C20and20on20App20Engine2C20unsupported3A20Indeed2C20when20the20appspot20frontends20see20a20DELETE20request20that20includes20an20body2C20such20as20your20app2C20they20return20a20501.20But2C20if20you20remove20the20body20then20it20will20serve20a20200.20Based20on20the20subsequent20discussion2C20it20looks20like20they20decided2040020was20more20appropriate20than20501.20In20any20event2C20if20you20omit20the20body20and20move20your20entity20key20into20the20URI2C20you20should20be20fine.20shareimprove20this20answer20answered20Jul203020271020at20203A2520Drew20Sears2011.7k183620Hi20Drew20-20thanks20for20highlighting20this20-20definitely20looks20like20the20cause20of20the20problem.20It20strikes20me20as20an20incredibly20naive20constraint20-20especially20since20it27s20not20mandated20by20the20spec.20Regardless20of20my20use20case2C20DELETE20is20quite20a20complex20operation20-20e.g.20are20we20performing20a20hard20delete20or20a20soft20delete20-20what20about20archiving3F20Surely20it20should20be20up20to20the20serving20application20(and20not20the20context20unaware20web20server)20to20determine2020020or2040020in20this20situation.20Will20follow20this20up20on20the20google20issue20which20appears20to20have20been20re-opened20based20on20similar20concerns.20Thx.20–20hawkett20Jul203120271020at2003A3120120Why20not20just20follow20the20convention3F20GET2FPUT2FDELETE20should20fetch2C20create2Foverwrite2C20or20remove20the20exact20resource20identified20by20the20URI.20Extra20parameters20for20all20320should20go20on20the20query20string.20Only20PUT20should20have20a20body2C20and20it20should20be20the20resource20contents.20If20you20DELETE20a20URI20and20return20a202002C20a20subsequent20GET20or20DELETE20should20404.20For20everything20else2C20there27s20POST2C20which20just20means20"send20some20stuff20to20this20URI20and20expect20something20to20happen".20If20you20wanted20to20delete20two20resources20at20once2C20it20would20be20more20appropriate20to20do20that20in20a20POST20than20trying20to20stuff20the20logic20into20a20DELETE.20–20Drew20Sears20Jul203120271020at2013A4620A20few20points20-201)20if20data20should20be20encoded20on20the20query20string2C20then20jQuery27s20impl20of20DELETE20is20broken.202)20POST20should20be20used20to20create20an20entity20subordinate20to20the20resource20indicated20in20the20URI20-20I27m20doing20nothing20even20close20to20that20-20POST20would20be20a20big20hack.203)20PUT20doesn27t20use20query20params20by20convention2C20any20more20than20DELETE20doesn27t20have20a20body204)20I20can27t20find20any20official20statement20that20a20request20body20is20unexpected20for20DELETE20-20the20author20at20your20link20seems20to20have20embellished20the20specification.20All20that20said2C20it20looks20like20query20string20params20are20my20best20bet.20Just20not20liking20it203A)20Thx20–20hawkett20Jul203120271020at20113A0720This20post20is20also20useful2C20and20seems20to20come20to20the20conclusion20in20multiple20answers20that20it20should20be20supported20according20to20the20spec.20stackoverflow.com2Fquestions2F2996282F…20–20hawkett20Jul203120271020at20113A2620add20a20comment20up20vote20220down20vote20I27ve20seen20this20happen20when20the20site20authenticating20doesn27t20resolve20multiple20browser20users20properly20or20adequately.20In20ChromeOS20the20fix20is20to20sign20out20entirely2C20and20access20the20site20when20only20the20primary20identity20has20been20authenticated.20ExamplesGmail2C20and20Ingress.20shareimprove20this20answer20answered20Aug20120271420at20213A1620Just20Visiting2031120add20a20comment20Your20Answer20Sign20up20or20log20in20Sign20up20using20Google20Sign20up20using20Facebook20Sign20up20using20Email20and20Password20Post20as20a20guest20Name20Email20required2C20but20never20shown20Post20Your20Answer20By20posting20your20answer2C20you20agree20to20the20privacy20policy20and20terms20of20service.20Not20the20answer20you27re20looking20for3F20Browse20other20questions20tagged20google-app-engine20or20ask20your20own20question.20asked20520years20ago20viewed201634820times20active20120year20ago209920People20Chatting20JavaScript20120hour20ago20-20KarelG20KarelG120hour20agoHatter20is20Mad120hour20agoCaprica20Six120hour20agoSterling20Archer120hour20agossube120hour20agorlemon120hour20agoLoktar120hour20ago20SO20Close20Vote20Reviewers20120hour20ago20-20Andras20Deak20Andras20Deak120hour20agoPraveen20Kumar120hour20agoSmokeDetector120hour20agoKyll120hour20agoJAL220hours20agoMogsdad220hours20agoDrew220hours20ago20Linked2029120Is20an20entity20body20allowed20for20an20HTTP20DELETE20request3F20020Calling20RESTful20API20Using20Python20on20Google20App20Engine20Related207220Deleting20a20Google20App20Engine20application2020320How20to20use20Google20app20engine20with20my20own20naked20domain20(not20subdomain)3F206220Pros20Cons20of20Google20App20Engine20220Google20App20Engine20-20Request20was20aborted20after20waiting20too20long20to20attempt20to20service20your20request201020App20Engine20deployment20fails20with20“Client20Error20(400)20The20request20is20invalid20for20an20unspecified20reason.”2052050320and2040020on20uploading20images20in20Google20App20Engine20020LDAP20Client20in20Google20App20Engine20220google20app20engine20projectServer20Error20The20server20encountered20an20error20and20could20not20complete20your20request20020Google20App20Engine20ErrorSorry20your20request20cannot20be20processed20at20this20time.203F20320App20Engine20silently20fails20on20some20requests20Hot20Network20Questions20Compute20the20histogram20entropy20estimation20of20a20string20What20do20you20call20tiny20underdeveloped20segments20of20an20orange3F20Reverse20positive20runs20Why20is20there20so20much20fear20surrounding20LiPo20batteries3F20I20am20small20yet20Large2C20who20am20I3F20Attire20in20Iran20for20male20travelers20In20the20movie20Contact2C20did20they20get20the20theory20of20relativity20wrong3F20After20Darth20Vader20was20killed2C20did20Luke20tell20anyone20that20he20was20his20father3F20What20is20a20"risk20wafer"3F20Do20I20not20have20the20personality20for20a20PhD3F20notation20to20describe20an20elliptical20orbit3F20(3000km20x2040000km)20Can20I20use20"some"20as20a20synonym20of20"very"3F20More20clicks20while20using20"Noun"20or20"Verb"20for20actions3F20Rewritable20punch20cards20How20do20payroll-deducted20taxes20get20sent20to20the20IRS3F20Two20PhD27s20in20different20UK20universities2C20simultaneously2C20part-timeabsurd20idea3F20Is20it20conceivable20that20President20Obama20might20use20the20word20"queue"3F20Are20there20any20advantages20to20either20DC20barrel20connector20polarity3F20The20index20columns20in20sys.index_columns20different20from20what20are20in20the20index20What20is20the20purpose20of20the20extra20wheel20on20the20XB-7020main20gear3F20Where20did20the20term20"chicken20walker"20come20from3F20How20do20I20encourage20users20to20supply20information20that20might20not20be20available2C20if20it20is20available3F20Decides20the20mechanism20of20organic20chemical20reactions20based20on20user20input20How20do20you20say20"nail"20(as20in20"get20something20right")20in20French3F20question20feed20about20us20tour20help20blog20chat20data20legal20privacy20policy20work20here20advertising20info20mobile20contact20us20feedback20TECHNOLOGY20LIFE202F20ARTS20CULTURE202F20RECREATION20SCIENCE20OTHER20Stack20Overflow20Server20Fault20Super20User20Web20Applications20Ask20Ubuntu20Webmasters20Game20Development20TeX20-20LaTeX20Programmers20Unix20Linux20Ask20Different20(Apple)20WordPress20Development20Geographic20Information20Systems20Electrical20Engineering20Android20Enthusiasts20Information20Security20Database20Administrators20Drupal20Answers20SharePoint20User20Experience20Mathematica20Salesforce20ExpressionEngine®20Answers20more20(13)20Photography20Science20Fiction20Fantasy20Graphic20Design20Movies20TV20Seasoned20Advice20(cooking)20Home20Improvement20Personal20Finance20Money20Academia20more20(9)20English20Language20Usage20Skeptics20Mi20Yodeya20(Judaism)20Travel20Christianity20Arqade20(gaming)20Bicycles20Role-playing20Games20more20(21)20Mathematics20Cross20Validated20(stats)20Theoretical20Computer20Science20Physics20MathOverflow20Chemistry20Biology20more20(5)20Stack20Apps20Meta20Stack20Exchange20Area205120Stack20Overflow20Careers20site20design202F20logo20©20201620Stack20Exchange20Inc3B20user20contributions20licensed20under20cc20by-sa203.020with20attribution20required20rev202016.4.25.3510&oq=Stack20Exchange20Inbox20Reputation20and20Badges20sign20up20log20in20tour20help20Search20Q26A20Stack20Overflow20Questions20Jobs20Tags20Users20Badges20Ask20Question20_20Stack20Overflow20is20a20community20of204.720million20programmers2C20just20like20you2C20helping20each20other.20Join20them3B20it20only20takes20a20minute3A20Sign20up20Join20the20Stack20Overflow20community20to3A20Ask20programming20questions20Answer20and20help20your20peers20Get20recognized20for20your20expertise20App20Engine2040020-20Your20client20has20issued20a20malformed20or20illegal20request20up20vote201620down20vote20favorite20320I20have20been20running20into20this20error20for20the20last20320or20420weeks20making20requests20to20app20engine.20Certain20requests20-20especially20HTTP20DELETE20requests2C20are20having20this20error20returned20from20the20google20server.20Others20have20reported20the20same20error20-20with20320outcomes20I20can20locate20It20is20caused20by20stale20cookies20-20clear20your20cookies20and20it20runs20fine20gmail20help20-20It20is20caused20by20a20malformed20url20-20only20cases20I20can20find20relate20to20urlfetch()20-20spaces20in20the20url20-20App20engine20Group202312C20App20Engine20Group2023220No20resolution20-20sporadic20behaiour2C20IE20only.20App20Engine20Group202332C20App20Engine20Group2023420I27m20now20getting20this20behaviour20all20the20time2C20in20every20browser.20I20can20completely20clear20down20the20cache2Fcookies20etc.20in20Chrome2C20Firefox2C20Safari2C20restart20the20browser20and20still20reliably20get20this20error20on20the20same20requests2C20so20I20don27t20think20its20cookie20related.20In20any20case20I20can20issue20GET2C20POST20PUT20requests20no20problem20with20the20same20cookie.20Given20that20it20occurs20reliably20on20specific20DELETE20requests2C20the20malformed20URL20would20seem20the20most20likely2C20however20my20URL20is20really20very20simple2C20and20works20fine20on20the20dev20server20Firebug20shows20the20request20headers20as20(I27ve20munged20the20keys20as20they20contain20identifying20data2C20but20did20so20by20removing20characters20from20the20centre20of20the20key20-20not20either20end20to20guarantee20I20didn27t20inadvertently20remove20any20leading20or20trailing20whitespace)20Request20URL3Ahttp3A2F2Fmy-app.appspot.com2FagprhcjgLEgVLbm93dCItX0RrbV9Ea25vd3RfbmV0X19wccxDA2FTask.xml20Request20Method3ADELETE20Status20Code3A40020Bad20Request20Request20Headers20Accept3A*2F*20Cache-Control3Amax-age3D020Content-Type3Aapplication2Fx-www-form-urlencoded20Origin3Ahttp3A2F2Fmy-app.appspot.com20Referer3Ahttp3A2F2Fmy-app.appspot.com2F20User-Agent3AMozilla2F5.020(Macintosh3B20U3B20Intel20Mac20OS20X2010_6_43B20en-US)20AppleWebKit2F533.420(KHTML2C20like20Gecko)20Chrome2F5.0.375.9920Safari2F533.420X-Requested-With3AXMLHttpRequest20Form20Data20entity_key3AagprdC1hcjYLEgVLbm93dCIrX09Ea25vd3RfbmV0X19wMQw20Response20Headers20Content-Length3A135020Content-Type3Atext2Fhtml3B20charset3DUTF-820Date3AFri2C203020Jul20201020153A513A5820GMT20Server3AGFE2F2.020The20response20headers20show20that20the20request20never20made20it20to20the20app20engine20servers20(and20my20app20engine20logs20bear20this20out)20-20a20request20which20successfully20makes20it20to20the20app20engine20server20looks20more20like20this20for20response20headers20-20Cache-Control3Ano-cache20Content-Length3A433220Content-Type3Aapplication2Fxml20Date3AFri2C203020Jul20201020113A083A2120GMT20Expires3AFri2C200120Jan20199020003A003A0020GMT20Server3AGoogle20Frontend20X-AppEngine-Estimated-CPM-US-Dollars3A240.00403320X-AppEngine-Resource-Usage3Ams3D57320cpu_ms3D14620api_cpu_ms3D3020I20am20constructing20the20requests20using20jquery27s2024.ajax()20method20and20setting20the20type20as2027DELETE27.20Also2C20these20have20worked20as20recently20as20last20week2C20although20the20problem20was20starting20to20appear20intermittently.20Right20now2C20nothing20I20do20has20any20effect.20At20the20moment20I27m20thinking20this20is20some20sort20of20configuration20error2Fchange20on20google20servers202C20slowly20creeping20across20their20network20-20which20explains20why20it20began20intermittently2C20steadily20increased2C20and20now20happens20all20the20time.20Is20anyone20else20able20to20issue20HTTP20DELETE20requests20to20google20app20engine3F20If20you20are2C20do20your20URL27s20contain20app20engine20entity20keys3F20Can20you20see20anything20dodgy20with20mine3F20Any20other20pointers20would20be20greatly20appreciated.20Cheers2C20Colin20The20full20response20from20the20google20server20is20-20<html><head>20<meta20http-equiv3D"content-type"20content3D"text2Fhtml3Bcharset3Dutf-8">20<title>40020Bad20Request<2Ftitle>20<style><2Fstyle>20<script>20<2Fscript>20<2Fhead>20<body20text3D2300000020bgcolor3D23ffffff>20<table20border3D020cellpadding3D220cellspacing3D020width3D100><tr><td20rowspan3D320width3D120nowrap>20<b><font20face3Dtimes20color3D230039b620size3D10>G<2Ffont><font20face3Dtimes20color3D23c4120020size3D10>o<2Ffont><font20face3Dtimes20color3D23f3c51820size3D10>o<2Ffont><font20face3Dtimes20color3D230039b620size3D10>g<2Ffont><font20face3Dtimes20color3D2330a72f20size3D10>l<2Ffont><font20face3Dtimes20color3D23c4120020size3D10>e<2Ffont>26nbsp3B26nbsp3B<2Fb>20<td>26nbsp3B<2Ftd><2Ftr>20<tr><td20bgcolor3D"233366cc"><font20face3Darial2Csans-serif20color3D"23ffffff"><b>Error<2Fb><2Ftd><2Ftr>20<tr><td>26nbsp3B<2Ftd><2Ftr><2Ftable>20
20<H1>Bad20Request<2FH1>20Your20client20has20issued20a20malformed20or20illegal20request.20<p>20<2Fblockquote>20<table20width3D10020cellpadding3D020cellspacing3D0><tr><td20bgcolor3D"233366cc"><img20alt3D""20width3D120height3D4><2Ftd><2Ftr><2Ftable>20<2Fbody><2Fhtml>20google-app-engine20shareimprove20this20question20edited20Dec202920271320at2063A4920Kara2022C9057264120asked20Jul203020271020at20163A5120hawkett2012C0684173820Your20first20suggestion20(clearing20all20data2C20cookies20etc)20worked20thanks20–20Dominic20Tobias20May202220271520at2093A2620add20a20comment20220Answers20active20oldest20votes20up20vote201620down20vote20accepted20With20an20HTTP20DELETE2C20the20URI20should20fully20identify20the20resource20to20be20deleted.20Sending20additional20data20in20the20request20body20is20unexpected2C20and20on20App20Engine2C20unsupported3A20Indeed2C20when20the20appspot20frontends20see20a20DELETE20request20that20includes20an20body2C20such20as20your20app2C20they20return20a20501.20But2C20if20you20remove20the20body20then20it20will20serve20a20200.20Based20on20the20subsequent20discussion2C20it20looks20like20they20decided2040020was20more20appropriate20than20501.20In20any20event2C20if20you20omit20the20body20and20move20your20entity20key20into20the20URI2C20you20should20be20fine.20shareimprove20this20answer20answered20Jul203020271020at20203A2520Drew20Sears2011.7k183620Hi20Drew20-20thanks20for20highlighting20this20-20definitely20looks20like20the20cause20of20the20problem.20It20strikes20me20as20an20incredibly20naive20constraint20-20especially20since20it27s20not20mandated20by20the20spec.20Regardless20of20my20use20case2C20DELETE20is20quite20a20complex20operation20-20e.g.20are20we20performing20a20hard20delete20or20a20soft20delete20-20what20about20archiving3F20Surely20it20should20be20up20to20the20serving20application20(and20not20the20context20unaware20web20server)20to20determine2020020or2040020in20this20situation.20Will20follow20this20up20on20the20google20issue20which20appears20to20have20been20re-opened20based20on20similar20concerns.20Thx.20–20hawkett20Jul203120271020at2003A3120120Why20not20just20follow20the20convention3F20GET2FPUT2FDELETE20should20fetch2C20create2Foverwrite2C20or20remove20the20exact20resource20identified20by20the20URI.20Extra20parameters20for20all20320should20go20on20the20query20string.20Only20PUT20should20have20a20body2C20and20it20should20be20the20resource20contents.20If20you20DELETE20a20URI20and20return20a202002C20a20subsequent20GET20or20DELETE20should20404.20For20everything20else2C20there27s20POST2C20which20just20means20"send20some20stuff20to20this20URI20and20expect20something20to20happen".20If20you20wanted20to20delete20two20resources20at20once2C20it20would20be20more20appropriate20to20do20that20in20a20POST20than20trying20to20stuff20the20logic20into20a20DELETE.20–20Drew20Sears20Jul203120271020at2013A4620A20few20points20-201)20if20data20should20be20encoded20on20the20query20string2C20then20jQuery27s20impl20of20DELETE20is20broken.202)20POST20should20be20used20to20create20an20entity20subordinate20to20the20resource20indicated20in20the20URI20-20I27m20doing20nothing20even20close20to20that20-20POST20would20be20a20big20hack.203)20PUT20doesn27t20use20query20params20by20convention2C20any20more20than20DELETE20doesn27t20have20a20body204)20I20can27t20find20any20official20statement20that20a20request20body20is20unexpected20for20DELETE20-20the20author20at20your20link20seems20to20have20embellished20the20specification.20All20that20said2C20it20looks20like20query20string20params20are20my20best20bet.20Just20not20liking20it203A)20Thx20–20hawkett20Jul203120271020at20113A0720This20post20is20also20useful2C20and20seems20to20come20to20the20conclusion20in20multiple20answers20that20it20should20be20supported20according20to20the20spec.20stackoverflow.com2Fquestions2F2996282F…20–20hawkett20Jul203120271020at20113A2620add20a20comment20up20vote20220down20vote20I27ve20seen20this20happen20when20the20site20authenticating20doesn27t20resolve20multiple20browser20users20properly20or20adequately.20In20ChromeOS20the20fix20is20to20sign20out20entirely2C20and20access20the20site20when20only20the20primary20identity20has20been20authenticated.20ExamplesGmail2C20and20Ingress.20shareimprove20this20answer20answered20Aug20120271420at20213A1620Just20Visiting2031120add20a20comment20Your20Answer20Sign20up20or20log20in20Sign20up20using20Google20Sign20up20using20Facebook20Sign20up20using20Email20and20Password20Post20as20a20guest20Name20Email20required2C20but20never20shown20Post20Your20Answer20By20posting20your20answer2C20you20agree20to20the20privacy20policy20and20terms20of20service.20Not20the20answer20you27re20looking20for3F20Browse20other20questions20tagged20google-app-engine20or20ask20your20own20question.20asked20520years20ago20viewed201634820times20active20120year20ago209920People20Chatting20JavaScript20120hour20ago20-20KarelG20KarelG120hour20agoHatter20is20Mad120hour20agoCaprica20Six120hour20agoSterling20Archer120hour20agossube120hour20agorlemon120hour20agoLoktar120hour20ago20SO20Close20Vote20Reviewers20120hour20ago20-20Andras20Deak20Andras20Deak120hour20agoPraveen20Kumar120hour20agoSmokeDetector120hour20agoKyll120hour20agoJAL220hours20agoMogsdad220hours20agoDrew220hours20ago20Linked2029120Is20an20entity20body20allowed20for20an20HTTP20DELETE20request3F20020Calling20RESTful20API20Using20Python20on20Google20App20Engine20Related207220Deleting20a20Google20App20Engine20application2020320How20to20use20Google20app20engine20with20my20own20naked20domain20(not20subdomain)3F206220Pros20Cons20of20Google20App20Engine20220Google20App20Engine20-20Request20was20aborted20after20waiting20too20long20to20attempt20to20service20your20request201020App20Engine20deployment20fails20with20“Client20Error20(400)20The20request20is20invalid20for20an20unspecified20reason.”2052050320and2040020on20uploading20images20in20Google20App20Engine20020LDAP20Client20in20Google20App20Engine20220google20app20engine20projectServer20Error20The20server20encountered20an20error20and20could20not20complete20your20request20020Google20App20Engine20ErrorSorry20your20request20cannot20be20processed20at20this20time.203F20320App20Engine20silently20fails20on20some20requests20Hot20Network20Questions20Compute20the20histogram20entropy20estimation20of20a20string20What20do20you20call20tiny20underdeveloped20segments20of20an20orange3F20Reverse20positive20runs20Why20is20there20so20much20fear20surrounding20LiPo20batteries3F20I20am20small20yet20Large2C20who20am20I3F20Attire20in20Iran20for20male20travelers20In20the20movie20Contact2C20did20they20get20the20theory20of20relativity20wrong3F20After20Darth20Vader20was20killed2C20did20Luke20tell20anyone20that20he20was20his20father3F20What20is20a20"risk20wafer"3F20Do20I20not20have20the20personality20for20a20PhD3F20notation20to20describe20an20elliptical20orbit3F20(3000km20x2040000km)20Can20I20use20"some"20as20a20synonym20of20"very"3F20More20clicks20while20using20"Noun"20or20"Verb"20for20actions3F20Rewritable20punch20cards20How20do20payroll-deducted20taxes20get20sent20to20the20IRS3F20Two20PhD27s20in20different20UK20universities2C20simultaneously2C20part-timeabsurd20idea3F20Is20it20conceivable20that20President20Obama20might20use20the20word20"queue"3F20Are20there20any20advantages20to20either20DC20barrel20connector20polarity3F20The20index20columns20in20sys.index_columns20different20from20what20are20in20the20index20What20is20the20purpose20of20the20extra20wheel20on20the20XB-7020main20gear3F20Where20did20the20term20"chicken20walker"20come20from3F20How20do20I20encourage20users20to20supply20information20that20might20not20be20available2C20if20it20is20available3F20Decides20the20mechanism20of20organic20chemical20reactions20based20on20user20input20How20do20you20say20"nail"20(as20in20"get20something20right")20in20French3F20question20feed20about20us20tour20help20blog20chat20data20legal20privacy20policy20work20here20advertising20info20mobile20contact20us20feedback20TECHNOLOGY20LIFE202F20ARTS20CULTURE202F20RECREATION20SCIENCE20OTHER20Stack20Overflow20Server20Fault20Super20User20Web20Applications20Ask20Ubuntu20Webmasters20Game20Development20TeX20-20LaTeX20Programmers20Unix20Linux20Ask20Different20(Apple)20WordPress20Development20Geographic20Information20Systems20Electrical20Engineering20Android20Enthusiasts20Information20Security20Database20Administrators20Drupal20Answers20SharePoint20User20Experience20Mathematica20Salesforce20ExpressionEngine®20Answers20more20(13)20Photography20Science20Fiction20Fantasy20Graphic20Design20Movies20TV20Seasoned20Advice20(cooking)20Home20Improvement20Personal20Finance20Money20Academia20more20(9)20English20Language20Usage20Skeptics20Mi20Yodeya20(Judaism)20Travel20Christianity20Arqade20(gaming)20Bicycles20Role-playing20Games20more20(21)20Mathematics20Cross20Validated20(stats)20Theoretical20Computer20Science20Physics20MathOverflow20Chemistry20Biology20more20(5)20Stack20Apps20Meta20Stack20Exchange20Area205120Stack20Overflow20Careers20site20design202F20logo20©20201620Stack20Exchange20Inc3B20user20contributions20licensed20under20cc20by-sa203.020with20attribution20required20rev202016.4.25.3510Stack20Exchange20Inbox20Reputation20and20Badges20sign20up20log20in20tour20help20Search20Q26A20Stack20Overflow20Questions20Jobs20Tags20Users20Badges20Ask20Question20_20Stack20Overflow20is20a20community20of204.720million20programmers2C20just20like20you2C20helping20each20other.20Join20them3B20it20only20takes20a20minute3A20Sign20up20Join20the20Stack20Overflow20community20to3A20Ask20programming20questions20Answer20and20help20your20peers20Get20recognized20for20your20expertise20App20Engine2040020-20Your20client20has20issued20a20malformed20or20illegal20request20up20vote201620down20vote20favorite20320I20have20been20running20into20this20error20for20the20last20320or20420weeks20making20requests20to20app20engine.20Certain20requests20-20especially20HTTP20DELETE20requests2C20are20having20this20error20returned20from20the20google20server.20Others20have20reported20the20same20error20-20with20320outcomes20I20can20locate20It20is20caused20by20stale20cookies20-20clear20your20cookies20and20it20runs20fine20gmail20help20-20It20is20caused20by20a20malformed20url20-20only20cases20I20can20find20relate20to20urlfetch()20-20spaces20in20the20url20-20App20engine20Group202312C20App20Engine20Group2023220No20resolution20-20sporadic20behaiour2C20IE20only.20App20Engine20Group202332C20App20Engine20Group2023420I27m20now20getting20this20behaviour20all20the20time2C20in20every20browser.20I20can20completely20clear20down20the20cache2Fcookies20etc.20in20Chrome2C20Firefox2C20Safari2C20restart20the20browser20and20still20reliably20get20this20error20on20the20same20requests2C20so20I20don27t20think20its20cookie20related.20In20any20case20I20can20issue20GET2C20POST20PUT20requests20no20problem20with20the20same20cookie.20Given20that20it20occurs20reliably20on20specific20DELETE20requests2C20the20malformed20URL20would20seem20the20most20likely2C20however20my20URL20is20really20very20simple2C20and20works20fine20on20the20dev20server20Firebug20shows20the20request20headers20as20(I27ve20munged20the20keys20as20they20contain20identifying20data2C20but20did20so20by20removing20characters20from20the20centre20of20the20key20-20not20either20end20to20guarantee20I20didn27t20inadvertently20remove20any20leading20or20trailing20whitespace)20Request20URL3Ahttp3A2F2Fmy-app.appspot.com2FagprhcjgLEgVLbm93dCItX0RrbV9Ea25vd3RfbmV0X19wccxDA2FTask.xml20Request20Method3ADELETE20Status20Code3A40020Bad20Request20Request20Headers20Accept3A*2F*20Cache-Control3Amax-age3D020Content-Type3Aapplication2Fx-www-form-urlencoded20Origin3Ahttp3A2F2Fmy-app.appspot.com20Referer3Ahttp3A2F2Fmy-app.appspot.com2F20User-Agent3AMozilla2F5.020(Macintosh3B20U3B20Intel20Mac20OS20X2010_6_43B20en-US)20AppleWebKit2F533.420(KHTML2C20like20Gecko)20Chrome2F5.0.375.9920Safari2F533.420X-Requested-With3AXMLHttpRequest20Form20Data20entity_key3AagprdC1hcjYLEgVLbm93dCIrX09Ea25vd3RfbmV0X19wMQw20Response20Headers20Content-Length3A135020Content-Type3Atext2Fhtml3B20charset3DUTF-820Date3AFri2C203020Jul20201020153A513A5820GMT20Server3AGFE2F2.020The20response20headers20show20that20the20request20never20made20it20to20the20app20engine20servers20(and20my20app20engine20logs20bear20this20out)20-20a20request20which20successfully20makes20it20to20the20app20engine20server20looks20more20like20this20for20response20headers20-20Cache-Control3Ano-cache20Content-Length3A433220Content-Type3Aapplication2Fxml20Date3AFri2C203020Jul20201020113A083A2120GMT20Expires3AFri2C200120Jan20199020003A003A0020GMT20Server3AGoogle20Frontend20X-AppEngine-Estimated-CPM-US-Dollars3A240.00403320X-AppEngine-Resource-Usage3Ams3D57320cpu_ms3D14620api_cpu_ms3D3020I20am20constructing20the20requests20using20jquery27s2024.ajax()20method20and20setting20the20type20as2027DELETE27.20Also2C20these20have20worked20as20recently20as20last20week2C20although20the20problem20was20starting20to20appear20intermittently.20Right20now2C20nothing20I20do20has20any20effect.20At20the20moment20I27m20thinking20this20is20some20sort20of20configuration20error2Fchange20on20google20servers202C20slowly20creeping20across20their20network20-20which20explains20why20it20began20intermittently2C20steadily20increased2C20and20now20happens20all20the20time.20Is20anyone20else20able20to20issue20HTTP20DELETE20requests20to20google20app20engine3F20If20you20are2C20do20your20URL27s20contain20app20engine20entity20keys3F20Can20you20see20anything20dodgy20with20mine3F20Any20other20pointers20would20be20greatly20appreciated.20Cheers2C20Colin20The20full20response20from20the20google20server20is20-20<html><head>20<meta20http-equiv3D"content-type"20content3D"text2Fhtml3Bcharset3Dutf-8">20<title>40020Bad20Request<2Ftitle>20<style><2Fstyle>20<script>20<2Fscript>20<2Fhead>20<body20text3D2300000020bgcolor3D23ffffff>20<table20border3D020cellpadding3D220cellspacing3D020width3D100><tr><td20rowspan3D320width3D120nowrap>20<b><font20face3Dtimes20color3D230039b620size3D10>G<2Ffont><font20face3Dtimes20color3D23c4120020size3D10>o<2Ffont><font20face3Dtimes20color3D23f3c51820size3D10>o<2Ffont><font20face3Dtimes20color3D230039b620size3D10>g<2Ffont><font20face3Dtimes20color3D2330a72f20size3D10>l<2Ffont><font20face3Dtimes20color3D23c4120020size3D10>e<2Ffont>26nbsp3B26nbsp3B<2Fb>20<td>26nbsp3B<2Ftd><2Ftr>20<tr><td20bgcolor3D"233366cc"><font20face3Darial2Csans-serif20color3D"23ffffff"><b>Error<2Fb><2Ftd><2Ftr>20<tr><td>26nbsp3B<2Ftd><2Ftr><2Ftable>20
20<H1>Bad20Request<2FH1>20Your20client20has20issued20a20malformed20or20illegal20request.20<p>20<2Fblockquote>20<table20width3D10020cellpadding3D020cellspacing3D0><tr><td20bgcolor3D"233366cc"><img20alt3D""20width3D120height3D4><2Ftd><2Ftr><2Ftable>20<2Fbody><2Fhtml>20google-app-engine20shareimprove20this20question20edited20Dec202920271320at2063A4920Kara2022C9057264120asked20Jul203020271020at20163A5120hawkett2012C0684173820Your20first20suggestion20(clearing20all20data2C20cookies20etc)20worked20thanks20–20Dominic20Tobias20May202220271520at2093A2620add20a20comment20220Answers20active20oldest20votes20up20vote201620down20vote20accepted20With20an20HTTP20DELETE2C20the20URI20should20fully20identify20the20resource20to20be20deleted.20Sending20additional20data20in20the20request20body20is20unexpected2C20and20on20App20Engine2C20unsupported3A20Indeed2C20when20the20appspot20frontends20see20a20DELETE20request20that20includes20an20body2C20such20as20your20app2C20they20return20a20501.20But2C20if20you20remove20the20body20then20it20will20serve20a20200.20Based20on20the20subsequent20discussion2C20it20looks20like20they20decided2040020was20more20appropriate20than20501.20In20any20event2C20if20you20omit20the20body20and20move20your20entity20key20into20the20URI2C20you20should20be20fine.20shareimprove20this20answer20answered20Jul203020271020at20203A2520Drew20Sears2011.7k183620Hi20Drew20-20thanks20for20highlighting20this20-20definitely20looks20like20the20cause20of20the20problem.20It20strikes20me20as20an20incredibly20naive20constraint20-20especially20since20it27s20not20mandated20by20the20spec.20Regardless20of20my20use20case2C20DELETE20is20quite20a20complex20operation20-20e.g.20are20we20performing20a20hard20delete20or20a20soft20delete20-20what20about20archiving3F20Surely20it20should20be20up20to20the20serving20application20(and20not20the20context20unaware20web20server)20to20determine2020020or2040020in20this20situation.20Will20follow20this20up20on20the20google20issue20which20appears20to20have20been20re-opened20based20on20similar20concerns.20Thx.20–20hawkett20Jul203120271020at2003A3120120Why20not20just20follow20the20convention3F20GET2FPUT2FDELETE20should20fetch2C20create2Foverwrite2C20or20remove20the20exact20resource20identified20by20the20URI.20Extra20parameters20for20all20320should20go20on20the20query20string.20Only20PUT20should20have20a20body2C20and20it20should20be20the20resource20contents.20If20you20DELETE20a20URI20and20return20a202002C20a20subsequent20GET20or20DELETE20should20404.20For20everything20else2C20there27s20POST2C20which20just20means20"send20some20stuff20to20this20URI20and20expect20something20to20happen".20If20you20wanted20to20delete20two20resources20at20once2C20it20would20be20more20appropriate20to20do20that20in20a20POST20than20trying20to20stuff20the20logic20into20a20DELETE.20–20Drew20Sears20Jul203120271020at2013A4620A20few20points20-201)20if20data20should20be20encoded20on20the20query20string2C20then20jQuery27s20impl20of20DELETE20is20broken.202)20POST20should20be20used20to20create20an20entity20subordinate20to20the20resource20indicated20in20the20URI20-20I27m20doing20nothing20even20close20to20that20-20POST20would20be20a20big20hack.203)20PUT20doesn27t20use20query20params20by20convention2C20any20more20than20DELETE20doesn27t20have20a20body204)20I20can27t20find20any20official20statement20that20a20request20body20is20unexpected20for20DELETE20-20the20author20at20your20link20seems20to20have20embellished20the20specification.20All20that20said2C20it20looks20like20query20string20params20are20my20best20bet.20Just20not20liking20it203A)20Thx20–20hawkett20Jul203120271020at20113A0720This20post20is20also20useful2C20and20seems20to20come20to20the20conclusion20in20multiple20answers20that20it20should20be20supported20according20to20the20spec.20stackoverflow.com2Fquestions2F2996282F…20–20hawkett20Jul203120271020at20113A2620add20a20comment20up20vote20220down20vote20I27ve20seen20this20happen20when20the20site20authenticating20doesn27t20resolve20multiple20browser20users20properly20or20adequately.20In20ChromeOS20the20fix20is20to20sign20out20entirely2C20and20access20the20site20when20only20the20primary20identity20has20been20authenticated.20ExamplesGmail2C20and20Ingress.20shareimprove20this20answer20answered20Aug20120271420at20213A1620Just20Visiting2031120add20a20comment20Your20Answer20Sign20up20or20log20in20Sign20up20using20Google20Sign20up20using20Facebook20Sign20up20using20Email20and20Password20Post20as20a20guest20Name20Email20required2C20but20never20shown20Post20Your20Answer20By20posting20your20answer2C20you20agree20to20the20privacy20policy20and20terms20of20service.20Not20the20answer20you27re20looking20for3F20Browse20other20questions20tagged20google-app-engine20or20ask20your20own20question.20asked20520years20ago20viewed201634820times20active20120year20ago209920People20Chatting20JavaScript20120hour20ago20-20KarelG20KarelG120hour20agoHatter20is20Mad120hour20agoCaprica20Six120hour20agoSterling20Archer120hour20agossube120hour20agorlemon120hour20agoLoktar120hour20ago20SO20Close20Vote20Reviewers20120hour20ago20-20Andras20Deak20Andras20Deak120hour20agoPraveen20Kumar120hour20agoSmokeDetector120hour20agoKyll120hour20agoJAL220hours20agoMogsdad220hours20agoDrew220hours20ago20Linked2029120Is20an20entity20body20allowed20for20an20HTTP20DELETE20request3F20020Calling20RESTful20API20Using20Python20on20Google20App20Engine20Related207220Deleting20a20Google20App20Engine20application2020320How20to20use20Google20app20engine20with20my20own20naked20domain20(not20subdomain)3F206220Pros20Cons20of20Google20App20Engine20220Google20App20Engine20-20Request20was20aborted20after20waiting20too20long20to20attempt20to20service20your20request201020App20Engine20deployment20fails20with20“Client20Error20(400)20The20request20is20invalid20for20an20unspecified20reason.”2052050320and2040020on20uploading20images20in20Google20App20Engine20020LDAP20Client20in20Google20App20Engine20220google20app20engine20projectServer20Error20The20server20encountered20an20error20and20could20not20complete20your20request20020Google20App20Engine20ErrorSorry20your20request20cannot20be20processed20at20this20time.203F20320App20Engine20silently20fails20on20some20requests20Hot20Network20Questions20Compute20the20histogram20entropy20estimation20of20a20string20What20do20you20call20tiny20underdeveloped20segments20of20an20orange3F20Reverse20positive20runs20Why20is20there20so20much20fear20surrounding20LiPo20batteries3F20I20am20small20yet20Large2C20who20am20I3F20Attire20in20Iran20for20male20travelers20In20the20movie20Contact2C20did20they20get20the20theory20of20relativity20wrong3F20After20Darth20Vader20was20killed2C20did20Luke20tell20anyone20that20he20was20his20father3F20What20is20a20"risk20wafer"3F20Do20I20not20have20the20personality20for20a20PhD3F20notation20to20describe20an20elliptical20orbit3F20(3000km20x2040000km)20Can20I20use20"some"20as20a20synonym20of20"very"3F20More20clicks20while20using20"Noun"20or20"Verb"20for20actions3F20Rewritable20punch20cards20How20do20payroll-deducted20taxes20get20sent20to20the20IRS3F20Two20PhD27s20in20different20UK20universities2C20simultaneously2C20part-timeabsurd20idea3F20Is20it20conceivable20that20President20Obama20might20use20the20word20"queue"3F20Are20there20any20advantages20to20either20DC20barrel20connector20polarity3F20The20index20columns20in20sys.index_columns20different20from20what20are20in20the20index20What20is20the20purpose20of20the20extra20wheel20on20the20XB-7020main20gear3F20Where20did20the20term20"chicken20walker"20come20from3F20How20do20I20encourage20users20to20supply20information20that20might20not20be20available2C20if20it20is20available3F20Decides20the20mechanism20of20organic20chemical20reactions20based20on20user20input20How20do20you20say20"nail"20(as20in20"get20something20right")20in20French3F20question20feed20about20us20tour20help20blog20chat20data20legal20privacy20policy20work20here20advertising20info20mobile20contact20us20feedback20TECHNOLOGY20LIFE202F20ARTS20CULTURE202F20RECREATION20SCIENCE20OTHER20Stack20Overflow20Server20Fault20Super20User20Web20Applications20Ask20Ubuntu20Webmasters20Game20Development20TeX20-20LaTeX20Programmers20Unix20Linux20Ask20Different20(Apple)20WordPress20Development20Geographic20Information20Systems20Electrical20Engineering20Android20Enthusiasts20Information20Security20Database20Administrators20Drupal20Answers20SharePoint20User20Experience20Mathematica20Salesforce20ExpressionEngine®20Answers20more20(13)20Photography20Science20Fiction20Fantasy20Graphic20Design20Movies20TV20Seasoned20Advice20(cooking)20Home20Improvement20Personal20Finance20Money20Academia20more20(9)20English20Language20Usage20Skeptics20Mi20Yodeya20(Judaism)20Travel20Christianity20Arqade20(gaming)20Bicycles20Role-playing20Games20more20(21)20Mathematics20Cross20Validated20(stats)20Theoretical20Computer20Science20Physics20MathOverflow20Chemistry20Biology20more20(5)20Stack20Apps20Meta20Stack20Exchange20Area205120Stack20Overflow20Careers20site20design202F20logo20©20201620Stack20Exchange20Inc3B20user20contributions20licensed20under20cc20by-sa203.020with20attribution20required20rev202016.4.25.3510&aqs=chrome..69i57.20257j0j7 pode estar temporariamente indisponível ou pode ter sido movida permanentemente para um novo endereço da web. ERR_QUIC_PROTOCOL_ERROR