osrm-backend: TooBig error code with no message.

I read #5022 but it looks like I’m not running into the same problem. I also receive the TooBig error code, but no message, here’s the returned data:

{  
   "sources":null,
   "destinations":null,
   "durations":null,
   "code":"TooBig",
   "message":null,
   "waypoints":null
}

This is the URL:

http://router.project-osrm.org/table/v1/driving/polyline(hne{Btu}tFghPmdD~loA|bk%40_m_A}_Ufp{%40vsRrHchAyrw%40wca%40ABtfw%40tbc%40fDycAs%40xjAo}eAgoc%40nveA~nb%40sx|%40k{b%40[fD_Na^ne%40j{%40{SozAsLTzm%40f_%40ud%40`BcpJwi%40%3Fh%40eH`e%40hReNrMgIrAhKmJf[r%40cH|CcVdGxAwwC`VnwoAhgg%40wu}%40gai%40e|Mli%40wiAlr%40t~%40eMfhFpA{Iv]b][}t%40}I{oBnAxaCz%40kf%40}DffHa}%40_jP|RbdKlfG_jHkqF`pF}f%40~h%40paH%3F%3F}}Gy|GvvFqgAuwHkp%40vlJzxKkaFscFquCeKdvJvlFgf%40u_Gys%40qaAl{A|bI_`KgwF`_KdyFAaEyeJqkFzeJbsEkqJ{{Jx|HvvBssIaxCrv%40fJv]~sEx~FcpCygIunAfgHvbKo|G}jDer%40slEdv%40rQ~Ge^sm%40zS`_%40nIc[cOr~%40lJjfHdvEkhIwtF}i%40rc%40~BgM|k%40uh%40npAjwBivBw`AreGhbDspAiCsiCm_D{t%40{Y~lAtBh{Cf}C{[v|%40`|Aos%40eBhX_CeA%40hCm_ADfDgb%40rkA|\iVMa%40NapA}F`hCcBgu%40gArk%40xBat%40zIr}%40gI}oCyTtmAv[umAw[pd%40yB~nA|c%40pSoNcfBgFun%40|KbKwAd{BmBud%40`PcsAyCfn%40cDan%40mFEpKxfJmpAa_C}{%40`_C|{%40sg%40jRkuAcrA~}Bv~%40ioA}UorJxsAxtC|KsDbB}iArT|iAsTu}AwLldBbPxyAprAyqBcoBzcIws%40%3F%3Fq_Aea%40dNjPsrBlgBpjEqrAqiE~jAxcE}kAmlLzu%40bdFzDhaFw}%40%3F%3Fc_GyGkaEpi%40dmKm^iqJls%40dqHepAacC~VwcEvf%40apJoyA|gQjhB%3F%3F_~Ex%40~}Ey%40mx^kdJ|tg%40tjOyhk%40o}Mj}j%40ztTugg%40_jUlyc%40fyUozOp_MzhLyqN{StXcAyw%40{xAinHyXdY%3F%3FtqEqkB_iEr~AlqEg{Afs%40jZnmD~jB_qM{jAntMf_DicDgbEteDfzBym%40eb%40ahLgt%40z~KfcApnAdX{gDu{Bpb%40dDuX_Dg|Ixd%40nrN~eC{tMwxBrpKxZomAelAxn`%40foOyn`%40goOr}s%40~l`%40acv%40sz`%40nav%40lqb%40u}u%40_bb%40~FoJxt_%40pbRrzZzuRgcBqaIm{A`yClhE||Dgrb%40ioZ|c\`oVugYgwUjy_%40bzYgo`%40wyY~BpDpg`%40rwYkgb%40ijZjgb%40hjZz}BdlAjaK|nGihJudFem|Am_p%40b}zAlrn%40uxAm[omxAc{m%40xsyAhaq%40_uyA{nq%40_Mqe%40rSuQmPbHk%40p~%40hk%40rk%40wa%40kmAzB{Rw%40B`Kje%40e^oqBetH_wHx^jH|qGzhH}sZmlFlb%40mg%40llYtuF}iZ}iEwt%40`Qz|y%40r~TjVha%40yG|gErd%40mxGoeAvf%40p~B_lAyBmA)

I’m sending about 300 pairs of lat/long in the URL. I’m not sure what’s going on here, is it the amount of pairs or the size of the URL, or maybe even something else?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

@eestein Here’s a little Javascript tool I wrote to do just that: https://gist.github.com/danpat/83eaed80b6241310ebdf1c0bef04a524

This tool is written to hit the Mapbox Matrix API, but the interface is very similar to OSRM - adapting this script to hit the OSRM demo server should be fairly easy.

Note that the demoserver can return a HTTP 429 response at any time (rate limiting) - you may need to adapt the script to handle this error and re-try if necessary.