Hi,
I'm using FME to query an API. I'm passing long-lats as a comma separated value to the API, but FME is turning the comma into a url character (%2C) so the request is failing. Is there a workaround for this?
Thanks
N
Hi,
I'm using FME to query an API. I'm passing long-lats as a comma separated value to the API, but FME is turning the comma into a url character (%2C) so the request is failing. Is there a workaround for this?
Thanks
N
Try %2C instead of comma in the url definition. I know it sound stupid but it usually works 😊
Try %2C instead of comma in the url definition. I know it sound stupid but it usually works 😊
Ah - thank you! Yes that is wierd but as long as it works...:-)
You can use a TextEncoder set to URL(Percent Encoding) to do this automatically
Apologies both but still having problems with this. Whether I use the stringReplacer or TextEncoder there's still an issue.
When I pass my list into the api as
3701,3707,3710,3808,3809,3810,3817,3820,3823,3824,3827,3831,3837,3839,3840,3844,99001,99081,99085,99094,99190,2003806,2003839,2003920,2003933,3203069,3203075,3603006,3603007,3603033,3603051,4603039,4603042,4603043,4603044,4603045,4603046,4603047,4603048,4603049,4603050,4603051,4603052,4603053,4603054,4603055,4603056,4603057,4603058,4603126,4603127,4603128,4603129,4603164,4603165,4603166,4603167,4603168,4603169,4603170,4603171,4603172,4603173,4603174,4603175,4603176,4603177,4803028,6103021,6103026,6103034,6103050,6103051,6103063,6103066,6103072,6103077,6103080,6103093,6103099,6103100,6103104,6103129,6103154,6103155,6103161,6103162,6103170,6103173,6103187,6103193,6103211,6103215,6103244,6103274,6103286,6103293,6103302,6103303,6103314,6103317,6103335,6103348,6103351,6103353,6103355,6103364,6103367,6103369,6103392,6103395,6103400,6103402,6103406,6103415,6103430,6103433,6103475,6103507,6103519,6103520,6103532,6103539,6103568,6103574,6103578,6103594,6103621,6103623,6103646,6103647,6103651,6103695,6103696,6103702,6103704,6103709,6103732,6103754,6103759,6103760,6103762,6103780,6103785,6103795,6103802,6103806,6103808,6103813,6103823,6103825,6103828,6103838,6103839,6103840,6103857,6103859,6103866,6103869,6103873,6103880,6103887,6103888,6103889,6103894,3862,3203067,3203073,4603003,4603004,4603005,4603009,4803026,6103471,6103625,6103779
its parsed as
Can't find a way so far to prevent this from happening!
Apologies both but still having problems with this. Whether I use the stringReplacer or TextEncoder there's still an issue.
When I pass my list into the api as
3701,3707,3710,3808,3809,3810,3817,3820,3823,3824,3827,3831,3837,3839,3840,3844,99001,99081,99085,99094,99190,2003806,2003839,2003920,2003933,3203069,3203075,3603006,3603007,3603033,3603051,4603039,4603042,4603043,4603044,4603045,4603046,4603047,4603048,4603049,4603050,4603051,4603052,4603053,4603054,4603055,4603056,4603057,4603058,4603126,4603127,4603128,4603129,4603164,4603165,4603166,4603167,4603168,4603169,4603170,4603171,4603172,4603173,4603174,4603175,4603176,4603177,4803028,6103021,6103026,6103034,6103050,6103051,6103063,6103066,6103072,6103077,6103080,6103093,6103099,6103100,6103104,6103129,6103154,6103155,6103161,6103162,6103170,6103173,6103187,6103193,6103211,6103215,6103244,6103274,6103286,6103293,6103302,6103303,6103314,6103317,6103335,6103348,6103351,6103353,6103355,6103364,6103367,6103369,6103392,6103395,6103400,6103402,6103406,6103415,6103430,6103433,6103475,6103507,6103519,6103520,6103532,6103539,6103568,6103574,6103578,6103594,6103621,6103623,6103646,6103647,6103651,6103695,6103696,6103702,6103704,6103709,6103732,6103754,6103759,6103760,6103762,6103780,6103785,6103795,6103802,6103806,6103808,6103813,6103823,6103825,6103828,6103838,6103839,6103840,6103857,6103859,6103866,6103869,6103873,6103880,6103887,6103888,6103889,6103894,3862,3203067,3203073,4603003,4603004,4603005,4603009,4803026,6103471,6103625,6103779
its parsed as
Can't find a way so far to prevent this from happening!
The API should work regardless of the encoding of commas.
What error message are you getting?
Maybe you got the parameters order wrong. You should see more examples here