Cloud Development Kit

Bad request on Isolated input

Hello.

I'm sending a request as follow: 

?applicationKey=-----------&textInput={"textParameter":{"language":"pl_PL","textInputMode":"ISOLATED","resultDetail":"TEXT","contentTypes":["text"],"subsetKnowledges":["lower","upper","symbol"],"textProperties":{"textCandidateListSize":4}},"inputUnits":[{"textInputType":"CHAR","components":[{"type":"stroke","x":[222.8367,218.7101,210.4568,210.1621,211.0464,214.5835],"y":[816.0537,826.6748,844.6716,845.2617,842.0164,832.5754]},{"type":"stroke","x":[228.1423,229.0266,229.9108,242.5854,258.5023],"y":[795.4016,794.2215,794.5165,802.7773,802.1873]},{"type":"stroke","x":[229.9108,229.0266,229.6161,242.2906,252.0177,267.345],"y":[818.119,817.2338,817.2338,818.4139,817.8239,813.1034]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[288.8623,287.9781,298.2946,306.8425,309.7901,309.7901,307.4321,303.3055,296.526,288.8623],"y":[811.9233,825.7897,833.7556,822.5444,815.4637,810.1531,807.4979,806.6127,810.4481,819.5941]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[344.5715,337.4973,335.434,336.0235,346.9296,355.4775,359.3094,361.3727,361.3727,359.0146,349.8771,344.2767,343.3925,352.2352,361.9622],"y":[801.8923,831.3953,838.476,840.2462,806.9078,793.3364,791.5662,792.7463,796.8768,803.6624,818.709,824.9046,824.3146,827.8549,826.9698]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[388.7851,391.1432,396.1541,402.0492,407.0601,409.4182,411.1867,410.0077,410.8919,413.8395,427.9879,426.2193,428.2826,432.4092],"y":[838.181,831.1003,820.7742,809.8581,802.1873,799.827,806.3177,826.0847,826.3798,823.7245,801.5972,824.3146,828.15,827.5599]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[458.0531,456.2846,454.5161,453.6318,455.1056,458.3479,463.064,470.1382,478.0966,484.5813,488.1184,487.5289],"y":[800.7122,806.3177,816.3488,826.9698,834.0505,836.4108,835.2307,828.445,817.8239,807.2028,798.0569,789.2059]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[523.4893,506.6881,508.7514,510.8147,518.7732,524.0788,531.7425,542.059],"y":[808.0879,835.2307,825.1996,823.4294,827.5599,831.9854,834.6406,832.5754]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[551.786,552.0807,553.8493,566.5239,578.6089,582.7355,585.0936,586.2726,584.5041,577.4299,573.0085,571.24,570.3557,567.9977,568.882,576.8404,595.9996],"y":[837.0009,834.3456,830.2151,811.0382,801.3022,800.7122,802.7773,807.2028,816.6438,829.035,834.0505,834.9357,834.0505,827.5599,822.5444,822.2493,821.3643]},{"type":"stroke","x":[606.9056,606.0214,602.7791,603.3686,613.6851,617.2222,623.7068,626.3597,628.1282,628.423,626.9492,621.3488,617.8117,618.1064,626.6544,631.96,636.9709],"y":[813.1034,816.3488,831.9854,831.3953,806.3177,800.7122,795.4016,795.6967,797.4668,801.3022,806.0227,817.5289,821.3643,820.1841,825.4947,826.6748,824.9046]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[641.0975,641.3923,650.8245,653.7721,654.6564,652.5931,644.0451,652.8878,658.4882,663.7939],"y":[802.7773,802.1873,799.532,800.4171,802.1873,810.4481,824.3146,824.3146,822.5444,818.4139]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[745.7365,737.4832,728.9352,741.9046,746.0312,751.0421,753.9896,754.8739,752.8106,744.5574,736.5989,735.1252,734.5356,741.9046,747.7997,756.053,767.2537,777.865],"y":[800.4171,819.2991,828.445,799.827,793.3364,789.2059,788.9109,791.8612,797.4668,812.5134,821.9543,822.5444,820.7742,822.5444,823.1345,821.3643,816.3488,808.973]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[788.1815,784.9392,776.0964,766.0747,768.7275,780.8126,785.2339,789.3605],"y":[799.237,802.4823,814.5786,828.15,824.9046,824.9046,824.0195,821.0692]},{"type":"stroke","x":[786.1182,779.044,777.865,781.1074,784.3497],"y":[810.7432,810.1531,810.7432,810.7432,809.8581]},{"type":"stroke","x":[797.319,795.2557,794.9609,817.0677,832.1004,848.0173],"y":[794.8115,793.0414,792.7463,786.5507,782.4203,778.5849]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[812.0569,817.6573,823.2576,829.4476,835.6375,840.3536,842.4169,841.8274,839.1746,834.7532,825.0262,820.6049,817.952,816.773,817.952,822.0786,831.2161,844.1854,858.9233],"y":[832.8704,816.0537,806.9078,800.1221,796.8768,797.7618,802.4823,809.563,818.4139,826.0847,837.2959,839.6561,839.3611,836.7058,831.9854,826.9698,822.5444,816.6438,810.1531]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[899.3051,895.768,890.4623,859.2181,860.3971,866.8818,884.862,887.22,886.9253,882.7986,890.7571,894.8837,899.5999,902.8422,903.137],"y":[791.8612,793.9265,798.3519,831.9854,829.9202,826.9698,826.9698,823.1345,820.1841,814.8736,816.0537,813.9885,810.1531,805.7277,802.4823]},{"type":"stroke","x":[897.5366,893.9995,891.3466,893.7047,910.8007,924.3595],"y":[798.0569,797.1718,796.2867,795.9916,794.5165,792.7463]},{"type":"stroke","x":[934.9708,931.1389,927.8965,926.4228,929.9598,936.7393,936.4445,932.3179,926.7175,916.1063,905.495,899.3051],"y":[806.6127,806.0227,807.4979,810.4481,819.004,829.6251,833.4605,836.1158,837.0009,836.4108,833.4605,828.445]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[985.9638,985.9638,982.132,977.7106,972.9944,970.6364,969.7521,968.2783],"y":[790.3861,791.8612,805.7277,815.1686,822.8394,825.7897,825.1996,820.4792]},{"type":"stroke","x":[966.215,965.036,964.7413,965.6255,979.1844,994.5118,1014.85,1034.894],"y":[805.4326,801.3022,798.6469,797.4668,796.2867,792.7463,787.1407,779.1749]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[1023.398,1022.808,1018.092,1009.544,1011.608,1023.103,1028.998,1031.356,1032.83,1032.83,1030.472,1022.514,1018.977,1017.503,1018.387,1023.398,1026.935,1030.177,1032.241,1033.125,1033.125,1033.714,1034.599,1036.957,1045.21,1050.516,1062.011,1065.548,1068.201,1069.085,1068.496,1065.548,1062.306,1060.832,1059.653],"y":[796.8768,798.942,812.5134,831.1003,824.3146,799.532,793.9265,794.8115,797.4668,804.2525,809.8581,822.2493,826.3798,826.6748,821.3643,821.9543,824.0195,827.2649,830.8052,834.0505,835.8207,835.2307,831.6903,824.3146,807.4979,800.7122,793.0414,793.9265,797.4668,803.6624,811.6282,819.5941,824.6096,825.7897,824.0195]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[1055.821,1053.463,1052.579,1053.463,1074.981,1092.371,1112.709],"y":[819.2991,816.6438,813.9885,812.5134,810.4481,806.3177,800.1221]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[1113.594,1110.057,1106.814,1103.867,1105.93,1109.467,1115.657,1129.805,1133.637,1135.111,1134.816,1133.343,1134.522,1136.88,1142.48,1150.144,1164.587,1164.292,1152.207,1148.965,1148.67],"y":[799.827,802.1873,806.6127,819.2991,823.4294,825.4947,824.0195,812.8084,807.4979,803.3674,799.532,805.4326,811.0382,812.5134,811.6282,808.0879,799.237,801.3022,817.8239,822.5444,823.7245]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[1179.914,1183.746,1186.988,1190.231,1192.884,1194.357,1191.704,1186.399,1181.093,1184.63,1193.473,1204.969,1216.169],"y":[816.3488,809.8581,805.7277,803.6624,803.9575,807.7928,817.8239,826.9698,832.8704,825.7897,815.7587,805.7277,799.237]},{"type":"stroke","x":[1214.696,1214.696,1215.58,1219.117,1228.549,1231.497,1233.855,1235.623,1236.508,1236.508,1243.582,1245.35,1247.414],"y":[829.9202,829.035,826.0847,818.119,803.3674,801.8923,802.1873,804.2525,807.4979,820.1841,809.563,807.7928,805.7277]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[1264.215,1263.92,1263.036,1263.625,1265.689,1270.699,1282.49,1249.182,1244.761,1247.119],"y":[793.3364,795.4016,804.8426,808.0879,809.268,807.4979,799.237,842.6064,848.212,839.3611]}]},{"textInputType":"CHAR","components":[{"type":"char","boundingBox":{"y":785,"x":1314,"height":63,"width":62},"character":" "}]},{"textInputType":"CHAR","components":[{"type":"char","boundingBox":{"y":785,"x":1376,"height":63,"width":62},"character":" "}]}]}

and I'm always receiving 400 Bad Request.

If I omit the last 7 inputs and send 

applicationKey=-----------&textInput={"textParameter":{"language":"pl_PL","textInputMode":"ISOLATED","resultDetail":"TEXT","contentTypes":["text"],"subsetKnowledges":["lower","upper","symbol"],"textProperties":{"textCandidateListSize":4}},"inputUnits":[{"textInputType":"CHAR","components":[{"type":"stroke","x":[222.8367,218.7101,210.4568,210.1621,211.0464,214.5835],"y":[816.0537,826.6748,844.6716,845.2617,842.0164,832.5754]},{"type":"stroke","x":[228.1423,229.0266,229.9108,242.5854,258.5023],"y":[795.4016,794.2215,794.5165,802.7773,802.1873]},{"type":"stroke","x":[229.9108,229.0266,229.6161,242.2906,252.0177,267.345],"y":[818.119,817.2338,817.2338,818.4139,817.8239,813.1034]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[288.8623,287.9781,298.2946,306.8425,309.7901,309.7901,307.4321,303.3055,296.526,288.8623],"y":[811.9233,825.7897,833.7556,822.5444,815.4637,810.1531,807.4979,806.6127,810.4481,819.5941]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[344.5715,337.4973,335.434,336.0235,346.9296,355.4775,359.3094,361.3727,361.3727,359.0146,349.8771,344.2767,343.3925,352.2352,361.9622],"y":[801.8923,831.3953,838.476,840.2462,806.9078,793.3364,791.5662,792.7463,796.8768,803.6624,818.709,824.9046,824.3146,827.8549,826.9698]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[388.7851,391.1432,396.1541,402.0492,407.0601,409.4182,411.1867,410.0077,410.8919,413.8395,427.9879,426.2193,428.2826,432.4092],"y":[838.181,831.1003,820.7742,809.8581,802.1873,799.827,806.3177,826.0847,826.3798,823.7245,801.5972,824.3146,828.15,827.5599]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[458.0531,456.2846,454.5161,453.6318,455.1056,458.3479,463.064,470.1382,478.0966,484.5813,488.1184,487.5289],"y":[800.7122,806.3177,816.3488,826.9698,834.0505,836.4108,835.2307,828.445,817.8239,807.2028,798.0569,789.2059]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[523.4893,506.6881,508.7514,510.8147,518.7732,524.0788,531.7425,542.059],"y":[808.0879,835.2307,825.1996,823.4294,827.5599,831.9854,834.6406,832.5754]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[551.786,552.0807,553.8493,566.5239,578.6089,582.7355,585.0936,586.2726,584.5041,577.4299,573.0085,571.24,570.3557,567.9977,568.882,576.8404,595.9996],"y":[837.0009,834.3456,830.2151,811.0382,801.3022,800.7122,802.7773,807.2028,816.6438,829.035,834.0505,834.9357,834.0505,827.5599,822.5444,822.2493,821.3643]},{"type":"stroke","x":[606.9056,606.0214,602.7791,603.3686,613.6851,617.2222,623.7068,626.3597,628.1282,628.423,626.9492,621.3488,617.8117,618.1064,626.6544,631.96,636.9709],"y":[813.1034,816.3488,831.9854,831.3953,806.3177,800.7122,795.4016,795.6967,797.4668,801.3022,806.0227,817.5289,821.3643,820.1841,825.4947,826.6748,824.9046]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[641.0975,641.3923,650.8245,653.7721,654.6564,652.5931,644.0451,652.8878,658.4882,663.7939],"y":[802.7773,802.1873,799.532,800.4171,802.1873,810.4481,824.3146,824.3146,822.5444,818.4139]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[745.7365,737.4832,728.9352,741.9046,746.0312,751.0421,753.9896,754.8739,752.8106,744.5574,736.5989,735.1252,734.5356,741.9046,747.7997,756.053,767.2537,777.865],"y":[800.4171,819.2991,828.445,799.827,793.3364,789.2059,788.9109,791.8612,797.4668,812.5134,821.9543,822.5444,820.7742,822.5444,823.1345,821.3643,816.3488,808.973]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[788.1815,784.9392,776.0964,766.0747,768.7275,780.8126,785.2339,789.3605],"y":[799.237,802.4823,814.5786,828.15,824.9046,824.9046,824.0195,821.0692]},{"type":"stroke","x":[786.1182,779.044,777.865,781.1074,784.3497],"y":[810.7432,810.1531,810.7432,810.7432,809.8581]},{"type":"stroke","x":[797.319,795.2557,794.9609,817.0677,832.1004,848.0173],"y":[794.8115,793.0414,792.7463,786.5507,782.4203,778.5849]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[812.0569,817.6573,823.2576,829.4476,835.6375,840.3536,842.4169,841.8274,839.1746,834.7532,825.0262,820.6049,817.952,816.773,817.952,822.0786,831.2161,844.1854,858.9233],"y":[832.8704,816.0537,806.9078,800.1221,796.8768,797.7618,802.4823,809.563,818.4139,826.0847,837.2959,839.6561,839.3611,836.7058,831.9854,826.9698,822.5444,816.6438,810.1531]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[899.3051,895.768,890.4623,859.2181,860.3971,866.8818,884.862,887.22,886.9253,882.7986,890.7571,894.8837,899.5999,902.8422,903.137],"y":[791.8612,793.9265,798.3519,831.9854,829.9202,826.9698,826.9698,823.1345,820.1841,814.8736,816.0537,813.9885,810.1531,805.7277,802.4823]},{"type":"stroke","x":[897.5366,893.9995,891.3466,893.7047,910.8007,924.3595],"y":[798.0569,797.1718,796.2867,795.9916,794.5165,792.7463]},{"type":"stroke","x":[934.9708,931.1389,927.8965,926.4228,929.9598,936.7393,936.4445,932.3179,926.7175,916.1063,905.495,899.3051],"y":[806.6127,806.0227,807.4979,810.4481,819.004,829.6251,833.4605,836.1158,837.0009,836.4108,833.4605,828.445]}]},{"textInputType":"CHAR","components":[{"type":"stroke","x":[985.9638,985.9638,982.132,977.7106,972.9944,970.6364,969.7521,968.2783],"y":[790.3861,791.8612,805.7277,815.1686,822.8394,825.7897,825.1996,820.4792]},{"type":"stroke","x":[966.215,965.036,964.7413,965.6255,979.1844,994.5118,1014.85,1034.894],"y":[805.4326,801.3022,798.6469,797.4668,796.2867,792.7463,787.1407,779.1749]}]}]}

then everything is fine. It also works when I omit other inputs (even smaller number) leaving the last 7.


Are there some limitations for isolated input that aren't specified on Web?

1 Comment

Dear Adam,

Currently, fields must be set in the body with "x-www-form-urlencoded" format, otherwise if the request exceeds a certain size, the server will rejects.

This way, we could replay your request.

Best regards,

Olivier
Login or Signup to post a comment