Gateway Timeout for POST Request

4 posts / 0 new
Last post
dgngulcan
Gateway Timeout for POST Request

Hi there, im getting Gateway Timeout faultstring with the following request often

As it seems, if the request is longer than 55 seconds, it gives this error and gives actual results if below 55 seconds.

90% of the time, the request takes longer than 55 seconds hence having the error.

What is there to do about this? 

Sincerely,

 

POST Request

http://open.mapquestapi.com/elevation/v1/profile?key=API_KEY

Post Body

{"inShapeFormat":"cmp6",
"latLngCollection":"ozr}DsuhdV????????????????????????????????????????????????A@?@EDA@C@C??AA?A?A@C@IDE@C@C@C@EBGHEBGDE@CAEAE?A?A@?@A?????????????????????????A?EBC@GBIBE@IDCDCDIDEBCBGHCDEDKJCBCBGBA?AACIACCKCECEKKGGEECEEG?I@Q?IAICIGOCECGGKAGAEAIACEIACIKGOGOCEIOCGIOCGIQCECCCEGOAGAGCGGOCGCMAECOAIAGCOAEACGGAAA?EC?AA?AA?A???@C???A?A?????A?????????????????????w@b@c@_@E?CAA?ECEACAC?C@G@E?C@CAC?GBA?A@C@A?????A?????A???????A???????????????????????????w@l@c@JIDO@MBSBIDQHG@KBIDID]NIDG@MBOFC@GHAFGHG@MFGBC?GDA@I?C?IBEDEBEBEBG@G@O?G?SBSDQBG@QBG@OBG@O?URIHKDG@KFE?OFIDMDGBEBEBKDEBE@EBMDMFE@MFGDGBOFGBMFQFGBMFMFE@IDEBGBC@E@IDC@KBKDE@C@IBKDEBKBEBODIDE@C@IDC@IDC@IBC@C@M@C@GBIBE@IBC@I@C?A@IBGDOFG@GBGBEBGBQFQBO@cJbDG??BKBEBIFI?IBMBC?IJCDGJKFEBGDMHEBCBEBKFE@C@KCKEECGICGAQAG?O?IAGGMEMEGIMEIMQKOGIGKIMEGCGKKCGCGCEAECEACAEAAACAAAC?G?CCKCAECECMIGCCAGIEGEEEGGOAGCGAGGOEEGAA@E@C@K@C@GDGBE@E@KDEBMFE@IBK@C@I@G@OBI?Q?I@]D@AACCFIFGDS?E@G?O@I@G@G?Q@G?I@G?G@K@MAGAQAQ?GAKAMECCCK?EDQBS?I@E@M?M@Q?I@K@IBQ@IBG@GDO@M@E@G?E?CCCA??CAAAAI@C?OBG@OBODODKDC@A??????AC????@??A@@????????@A???@A????A?EDC@EBKDEBE@KBKBM?GAGAOAO?G?OBWBI@WFO@K@K@K@O@[?KDK@O?S?O@yHh@EFEDCBGBMFGBGDEBOFaBt@MLKCI@I?GBS@G?EAK?G?E?M?K?cHo@QAOCGAGACAEAKAKCK?M?EAE?E?EAKACAGCA?GAGA?A@A???????????????????????????AA?EEAACCECA?CAE?CAE@A?G@GDC@GBC@E@I@C?C@G@C@G@C?CAKAE?KAIAEAE?M?E?GAMCI?G?M?E@IBE?M@O?G?IAI?I?Q@G?I?I@Q@G?OAQAG?SAG?O?MAO?O?I?GAI?G?O?G?Q?G?Q@G?G?GAOAGAK@G?E?OAG?EAMAG?G?MCM?C?MBO@O@ECK@O@O@IBMBG?KBE@G@MBE?C@K@KBG@G@GBK@G@E@ODMDE@EBKDMBG@MBM?G@QDQDE@K@C??A???AA????A???EAE?E@GAG?G?GAGCOCEAEGOAGAGAGCOAGAQAG@QAG?ICOCICGCGGQEIEKKSCECGCEEMAEAIAEAKAEAA?A?A??BG?C???C???A?A?????@????????????????????????????????ACAEACCIAEAIAGCK?ECKIQEICCAEAICG?AA??A?C?AAA???AA??A??????????????CCAAEAGAI?C?G?E?I@E@@@?B@BDF@@FFFFH@D@H@CCe@c@AAAACAECA@GDA?@?@B@DLJB@@@@@AFKHMBG@E@IDEBA@CBC@EHEDKNOHMJMJGBGDKHEDEDCFED?@E@A?A?CBIFIJKLEBOHGBIBUFIBI@I@GBSDQDSDG@SH[JAHG@E?K@EAQDMDI@G@OBOBMBG@OFG@EBE@ODGBGBKFE@KFE@EBIBE@EBEBMFEBIBQDOBIBOFOFG@GBOFEBGFGDGDQFYBMBOHGDKBK@G?A?I@UFAAG?OHKFGDGBKHE@IBIBOHGFIHMDM@G@O@GBKBQHQDIDGBIDGBEBIDE@GBA@C?@A??A?@A???@??A???A@A@A?????C?I@E@E@E@EBO@OAg@NQFQHAFONQHCBMJKFEDGDMHGDQFOJEBGDEBEDGBMHEDGBEDOHEBOHMJOJOJGDMHGDGFOJEDMFMDMHGDKHIBOHGBCAKPI?GBKBMFGLMLEBIHEAGDIBEDA??B???@??A????????????????????@???@A@A@???@A???????@?????@??A????????????????????????????????????????????????????????BA?A@?C?A?C?????A@A@C?GBEBCBIHGHEBIJEDABCHIHEDIFEBMFEDIDCBGDGBGDEBEBOFGBGFCBIFMJOHGDGDIDQJGDGD...@EDEBGDEBKHCDEDEBKHEBEBEBEBGJIHKHGFEDGBMHSHIBIBIBQDI@OFEBQFIBQDKDIDGBA?A?C????A??A?AA??????????????????????????????????????????????????????????????????????????DEBA??@A???@A?A?@C?AAA???????????@????????????IDGBMFGBGBOFEBIDC@IFMHGBGBGBOBI?G@GBG@ODQBQBI@I?G@K@O@I@G@MBG?I@Q@S@Q?G?Q@KCI@G?O@I?GBM@K?M?G@G?O?G@E?K@E?E?I?G@G?OBI@OBO@Q?G@G@O@E?G?M@G?G@I@Q@O@O@E@Q?G@K@E@E@MBGAO?G@Q?GAYB[CM?ICMDO?O@GBS@EAK@G?MBK@E@KBO@G?E?K?C?OAM?E?MBK@G@E@GDIDE?O@I@Q?G?I?QAG?G?O?G@K?IACAC?CA??A????A@A@A???A?E?A??A??????????????????????????????C???????????????????????????????????@????????????A?E?I?G?GBG@IBKBOBOBMBEBIDGDMFI@O?GAOBI@G?Q@G@G?M?O?E?GAE@GAO@M@K?CAK?E?M?I?M?G?QAI?G?O@Q?I@O@G@Q@I@S@QDI@OBG@I@QBG@G?MBE?E@K?E?G@O@G?G?M@M@OBM@M@G@Q?E?G@Q?I?G@Q@G?IBKBG?I?E?CAMACACAKCGAUBUBI@I@SBG@G@MDIDC@G@EBCBC@EF??@C@C?AA??AA?A??A??A???A????????A?A??@??A?????A???????????A????????QBS@K@SDODOBOBIBQFGBIBE@QFG@uBDK@KDQFSPMDIEKDSDSAIBIBMFE@KFE@E@M?G?O@G@C@M@G@O@QBE?G@CA??A?IAG?E?IBC@??A?????A?@??@????????@@A???A???A@??????????????????????????????????????????????????A?A???ABA@?@AB??A@??@@AA??????A????@????A????????????????@????A@?????????????????????????????@????????????????A???????C@K@G@MBE?IBE?I@E?Q@G@Q@O@IBO@G?G?G@G?G?OBECG?O@OAOAO@MBG@O@M@OBOBG@OBMDG@EBKBE@M?I?GAOCO?I?K@G@G?I@OBQBI@OBGBG@QDODG@G@G@G@M@C@I?QBS?EAMAC?E?IAI?O@MBG@IBMBG@E@OBMBODEBG@MDKDKBWHQFGBGBQDMDKBGBMBE@E@??BA@AB??A???@C?C@K?C@EF?B@B?D@BADCDCBA@AJBLBJ@DBDFL@B@D?F?D@B?BAFA@A?A@@C?A@A???AA????A??????"}

 

Post Response

{

  "fault": {

    "faultstring": "Gateway Timeout",

    "detail": {

      "errorcode": "messaging.adaptors.http.flow.GatewayTimeout"

    }

  }

}

 


MQBrianCoakley
It looks like the forum didn
It looks like the forum didn't like that compressed string. How long, miles/kilometers, is that route. It may be running into performance issues if it's right up against the length limit.

PVetter
Same for me...

I am getting the same error, but I'm using GET instead of POST.

Here are some URLs that are failing:

http://open.mapquestapi.com/elevation/v1/profile?key=<MYKEY>&useFilter=t...

http://open.mapquestapi.com/elevation/v1/profile?key=<MYKEY>&useFilter=t...

It seems that the requests only fail if I send more than one request in a short time period...

I can give you links from other regions too if you like, it doesn't seem to be related to the region.

Failed requests always return " {"fault":{"faultstring":"Gateway Timeout","detail":{"errorcode":"messaging.adaptors.http.flow.GatewayTimeout"}}} "

 

Is there anything I can do to avoid such error?


MQBrianCoakley
We're looking into it. Thanks
We're looking into it. Thanks for the heads up.