This is in a Paid org and while trying to use Google's bloated phone number library
To be more clear, I'm trying to use this JS library in Apigee.
https://github.com/albeebe/phoneformat.js
Among the errors I get, hitting some kind of compile size limit of 64k is the one I can't get around.
If it's bloated, .... is it possible to use a different library? I don't have a solution to your problem, but maybe a work-around for the problem.
Sadly, I can't find another JS lib that validates and formats e164 phone numbers. I open to suggestions.
Answer by Dino
·
Mar 14, 2016 at 10:15 PM
Hi Karthik
The limit of 64k is inherent to the Rhino support in Java. Apigee cannot remove that limit.
Maybe the best approach is to host the phoneFormat.js inside a nodejs target, in an Apigee Edge proxy.
For example, see here.
Then you can invoke it like this:
$ curl https://deecee-test.apigee.net/e164/formatLocal/us/+393123456789 {"number":"+39 312 345 6789"}