{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
1
Question by Karthik · Mar 02, 2016 at 09:16 PM · 425 Views apigee edgeapi proxy

it is possible to increase the compile size limit (64k) of JavaScript to 1024k ?

This is in a Paid org and while trying to use Google's bloated phone number library

Comment
Add comment Show 4
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Patrick Martin · Mar 02, 2016 at 09:29 PM 0
Link

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.

avatar image Dino ♦♦ Patrick Martin   · Mar 03, 2016 at 03:19 AM 0
Link

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.

avatar image Patrick Martin Dino ♦♦ · Mar 03, 2016 at 04:27 PM 0
Link

Sadly, I can't find another JS lib that validates and formats e164 phone numbers. I open to suggestions.

Show more comments

Close

1 Answer

  • Sort: 
avatar image
0

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"}
Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

41 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to override default behaviour of importing API Proxy's revision automatically incremented every time 4 Answers

How to deploy multiple proxy End points in one proxy? 1 Answer

Oauth 2.0 password grant type is penetrated 0 Answers

net::ERR_INCOMPLETE_CHUNKED_ENCODING 1 Answer

Access callback URL using apikey of different Developer App 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges