Discussions

Ask a Question
Back to All

Error 414 - Solicitud demasiado larga.

Hola,

Me asignaron un proyecto que se encuentra integrado con Tokko, y se encontró con el problema que si el usuario busca zona norte, zona sur, zona oeste o zona este, no se mostraban resultados.

Haciendo una análisis del código, encontré que el problema esta en la url que se utiliza en la solicitud a Tokko.

La url es:
https://tokkobroker.com/api/v1/property/search/?order_by=price&order=desc&format=json&key=OOO&lang=es_ar&limit=20&offset=0&data={"current_localization_id":[25793,102531,25374,81915,24782,82449,25044,25375,24933,82451,55592,24822,24934,25512,25513,25514,25515,25516,25517,25518,25511,55991,80737,25874,82417,25376,24823,25622,82450,52020,25045,24783,25313,25623,25129,52120,25853,24960,25718,239718,239738,25130,24824,25046,25471,25472,25131,51409,25132,25624,24825,25006,51961,25134,102487,25135,51897,25377,25133,51898,82612,25351,25378,80743,25768,51290,25769,82469,52005,25136,24826,24827,55597,25379,51426,81338,210571,51899,51889,51890,24784,51900,25137,253324,25380,25854,24770,25855,24889,24771,82668,82480,24987,24772,82481,82419,82410,82418,24773,24774,24890,24775,25856,24776,25857,24777,24778,24779,25771,51410,24895,25875,51901,25858,25138,25729,25473,25625,51406,25139,51417,51494,51973,240217,25876,239353,25758,25742,25719,25743,25720,51411,25015,82671,25438,51300,51328,25730,25731,25584,25732,25772,25626,25773,82551,24896,51974,51975,25628,51327,51962,25667,25474,25877,25878,25879,239813,25880,240326,25629,102381,25721,24891,25722,24998,24892,102527,239418,52106,239666,25140,51963,239417,24893,24761,24828,51891,25041,25630,24842,240325,25314,51902,25859,25846,25416,24762,25520,25521,25522,51976,51977,25523,25524,25525,24894,24897,25575,52009,25585,25717,52010,82304,25631,25141,52021,25016,24780,51293,24935,25632,25475,52011,25143,25381,82452,82567,51418,80452,24829,25527,25528,80744,51322,25144,25526,51978,102454,240221,24898,25774,24899,25145,51964,25146,51965,25562,52006,240220,25881,25142,24830,24831,25668,25576,25147,25476,24759,24781,82273,24832,25580,25148,24988,24927,240367,52121,82432,82433,82434,82435,25775,82455,82568,82421,25770,82414,82453,82454,82672,82456,82402,52012,25784,82401,82426,82460,25860,24811,24812,82408,25797,25807,82422,25882,24989,25776,82478,82436,25382,25777,82409,82613,82431,25778,25767,25819,24763,24993,51979,25149,82618,25103,25150,25477,25478,80473,80477,80475,80476,85602,25151,51903,82268,55990,25152,25479,51298,51325,52013,25153,82458,25383,25154,55596,24900,25883,51331,24936,24785,25586,25884,82107,52007,25155,25156,24969,210544,24970,25157,51858,24971,82691,52107,24972,25158,82423,82424,51281,51826,24994,25352,25035,52014,25633,52108,24973,25759,51870,56016,210557,51904,25159,253295,51407,25587,24764,51412,24974,24786,51966,24787,24788,81916,51404,51419,240854,25160,24833,51420,80453,80454,80455,51324,55600,25588,24901,52022,51888,82457,51316,82412,25779,25589,25590,81967,253343,24760,24821,24968,25040,25073,253293,25128,25437,25470,25561,25621,51429,25161,25563,25885,25780,25781,25782,82420,80499,51892,25162,25074,51859,51905,25783,24789,24790,24791,51906,25104,25316,25317,25007,51285,24792,25315,56033,52015,25785,82425,82438,56017,24995,25727,25760,56020,25384,25591,24793,24794,25728,24902,82459,25786,51967,82430,82437,25163,239436,25634,24834,25164,24835,25635,82148,25165,25385,24765,51413,51907,80506,210560,52056,24903,24836,24837,24838,24839,24840,25886,25744,25166,24841,52016,24975,25105,25090,24937,25358,25359,24795,25386,25636,25167,25168,25318,51314,24813,51893,51333,25669,25169,24938,25637,25170,25091,24766,25592,25564,51908,24843,25387,25171,25172,82147,82146,82145,51273,25319,25047,25745,25106,240205,51254,25173,25565,51860,25092,25320,51255,25480,25174,24844,51909,25723,51910,24845,24939,51307,82144,82143,24977,25321,82382,210539,25175,25322,51296,25176,25577,25093,24978,25481,25740,25746,25638,25593,25861,25177,25323,25439,82142,25324,25482,51341,24846,25639,51252,25178,25008,25348,25747,51332,24904,24905,24906,24907,24908,24909,24910,25862,24820,51980,25787,25788,80785,51294,25349,25370,25640,25566,25179,25180,25181,82427,25084,82428,81423,55601,24996,102426,24997,24967,25107,24940,25325,25388,25182,51911,240324,25350,82550,25789,25748,24911,24847,81925,24848,24912,25820,25821,25822,25828,25823,25824,25825,25826,25827,81416,25887,82429,51912,25863,25048,25183,82462,24928,24929,24930,24931,51981,82461,25790,25741,25013,25014,24999,52023,25042,25184,25185,25594,25083,24941,25483,25641,102132,240349,51982,25440,25791,82447,25186,82463,25733,25326,25187,25642,82464,82372,51983,25188,25189,24976,24979,25190,24849,102309,240817,82272,25191,25643,25734,240206,51323,51278,51279,51430,51984,25735,24980,51968,25049,25595,51284,25088,24932,51280,25085,25794,25050,25644,25645,25753,25646,51256,81403,24850,51985,24851,25484,253323,253280,51986,25039,25043,25030,25888,25000,56018,56019,56010,56011,25355,56012,25356,56014,24814,25389,25422,25353,25327,25749,25108,25017,24942,24943,24944,24945,25094,25750,25192,80458,25672,51987,25423,24852,25193,25647,51408,51913,51988,25724,25736,24853,24796,82374,25795,24854,25051,25390,24946,51914,25194,25195,25196,25197,24855,25485,25198,25199,25200,25052,25201,24856,25202,25441,51424,51989,51421,52122,25648,25486,25649,25391,25203,25431,25442,25204,25432,25487,25205,25206,25650,25424,25392,25889,51915,24797,51990,25596,25890,25109,24947,24957,25597,52017,25598,25207,25208,82465,81254,210561,24815,25673,24798,25651,25001,25209,51991,25328,24913,25210,25393,25360,25829,25837,25830,25831,25832,24981,25211,240360,51849,25212,25213,25488,82271,25354,25214,51824,25110,253326,25215,25394,51916,25216,25599,25864,25217,25053,51917,24948,25489,25095,25567,25218,25219,25220,239338,25111,25371,25221,52109,25222,25223,25224,51918,25002,25490,25225,25395,25226,25112,24990,24914,25396,25227,51299,51253,81340,51317,25652,82443,25653,55602,25792,24949,24915,25228,51919,25568,25096,25229,25491,51894,55967,51920,25230,25492,82141,25231,25674,24799,51921,82448,82466,51992,25493,25232,24950,25654,25671,25054,25233,52123,51414,82140,24916,80472,25537,25538,25539,25540,25541,25542,25543,25544,51818,25545,25546,25547,25075,25725,25234,25494,51922,25235,25236,25600,25655,25865,82373,82403,239355,25397,51923,82405,82416,51924,51993,51257,25443,25656,24982,82413,102458,25866,25398,51925,51305,24857,24958,25657,25237,52044,25578,51926,52110,253328,25076,25113,51895,51896,82139,25238,25658,25239,25675,24858,82303,25495,82305,25579,25240,24859,24767,25003,102530,51851,25670,25601,25659,25241,51927,24917,52018,51994,51928,82138,25496,51929,51995,25097,25242,25602,25497,239431,25243,25569,25244,25399,24860,82267,25245,25246,25676,24861,51930,51931,102528,102529,25247,25737,80461,24862,24768,25603,25077,25660,25661,51932,25361,25604,25248,24983,25009,25605,25570,25089,25249,25250,25362,51274,82137,25498,24863,80397,51969,25251,25677,51933,25252,25253,24864,51934,25254,81913,51996,25363,25329,25255,25256,25400,25018,24800,82415,25805,25891,25606,25571,25036,25892,82467,25072,25357,25607,25369,25257,25372,25258,24961,51935,24959,51936,25098,25444,51970,25445,55595,51309,51937,51313,51971,51495,25662,82377,51861,25530,25531,25532,25533,25534,25535,25330,52024,25259,25529,25331,24865,24866,24867,25893,24962,51938,25260,25261,56021,25364,82442,25894,25019,25663,25664,25055,51308,24868,25262,25114,25263,25608,25895,24991,25264,25332,25425,51415,55598,25581,25833,25834,25835,51939,82444,52031,24869,82404,25665,25666,52025,52026,52029,51441,51289,25265,25499,25796,52030,25266,25582,24801,82270,25836,25078,25838,25839,25840,25841,25842,25843,25844,25845,25004,25896,24802,24816,25115,25333,25020,25101,25682,25751,25752,25798,82569,82441,25799,51940,25267,52032,25268,24870,51297,25269,25005,82407,82411,82446,25800,25801,82445,82406,24918,25802,82570,25803,24919,25056,25519,51862,25099,24984,24920,51399,51836,25270,25057,25609,25610,51416,56015,25726,24985,25611,25334,51301,51302,81402,210542,82468,24992,25010,25804,51941,25116,25897,25401,25271,25402,52027,25272,51942,25127,25373,25403,25273,82101,25274,82269,25275,25276,25277,25278,25279,25280,25281,51422,25404,25683,25335,25336,25058,25086,25031,25898,24951,55997,51310,25572,25679,55960,51283,25117,25118,25119,24921,51312,210543,51943,25421,25059,82474,25282,25899,25900,24922,82163,51287,24963,82675,51291,52111,51863,24871,25452,25446,24964,24875,80393,51295,51276,81336,84718,51286,239360,25500,25501,25337,25283,82471,82470,253281,25120,51944,25502,82472,51326,80738,25755,25060,25684,82162,24876,80474,25284,25285,25286,51945,51946,25121,25447,25405,24817,24923,24877,52028,52033,51277,25406,25287,253325,25365,25685,25288,24803,25407,24818,25021,25612,25338,25453,25454,25455,25456,25457,25458,25459,25460,82161,25548,25549,25550,25551,25552,25553,25554,25555,25022,25901,82473,25289,25061,51268,25408,82266,25613,52008,51866,25687,25033,51833,25614,25808,24878,25062,25615,51265,51998,82479,25079,239437,81252,24804,25436,25451,25290,51262,253319,25063,51261,51947,52034,51405,25616,25469,25536,25503,51999,25504,25505,51425,51259,52000,52001,25692,24805,25902,24986,51948,24769,25693,25809,25080,25507,25291,51269,25508,24952,24953,24879,24924,25292,51264,24880,51867,25560,25583,24954,25903,25573,82160,82677,51260,82265,82264,253273,253322,82439,52036,51831,25697,51832,51263,81337,25448,51266,81963,80745,52037,82263,239435,81251,24882,80746,82262,52038,24883,25700,25409,25081,25701,51949,51321,25702,25122,51850,25366,25064,25065,25293,25810,52039,25294,51267,51950,82159,102443,25806,25367,24806,25066,25617,25295,82475,25296,24884,25297,25618,24807,240219,25904,25298,51951,25704,25123,25067,102310,52045,52002,52040,239681,51952,51953,82378,51311,25705,25299,51954,25300,51955,82508,82509,24925,51956,82476,24926,25706,52046,25509,25707,25708,25811,24808,51957,240218,25301,51303,51320,52041,25302,24885,25303,51958,25304,25449,52003,82690,25812,25813,25620,25757,25709,25710,25762,55580,25814,82477,25815,25426,52042,25305,25306,25307,240361,240352,24886,25102,51402,51834,25082,25450,25711,25816,25738,25763,25765,25023,25410,25619,82440,51959,56013,25817,25557,25558,25559,25068,25024,25339,25340,25032,25341,25342,25025,102420,25847,25848,25849,25026,25027,25851,25739,25028,25029,25087,25037,25411,25412,25413,25414,25415,25712,240202,25818,25462,25463,25464,25461,51288,51318,51427,81401,51428,51329,55920,239357,85604,25556,25427,25417,25418,25867,25905,25428,51871,25034,51872,25713,25429,25868,25906,51873,51874,25126,51423,25907,25869,25908,25870,25909,51875,51876,51877,51878,25069,51879,51880,51881,25070,25071,51882,24965,25764,52043,25038,25368,25100,51837,51884,82669,51883,25850,25871,25910,25419,25420,25872,25911,25912,24887,25714,51885,51886,25011,25012,25308,25430,25433,24966,25434,25574,51887,25309,25124,51960,25310,25510,51488,24809,80507,56036,25466,25467,25465,51306,55594,25716,24810,82158,82261,52004,24888,51868,51972,25311,81914,51304,25312,25125,51869,51315,51292,25852,25873,24955,24956,25435,51282,51835,24819,82383,25468,25766,25913,25343,25344,25345,49225,41525,102315,82556,51347,56003,25346,25347],"current_localization_type":"","operation_types":[1,2,3],"price_from":"0","price_to":"9999999999","property_types":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],"filters":[]}

Como verán, realmente es muy larga la solicitud pero son las localidades que el usuario desea mostrar como "Zona norte".

Existe la posibilidad de que aumente la cantidad de caracteres que reciben para el endpoint api/v1/property/search/?

Saludos,