iOS app keeps trying to reach http://localhost:12448


#1

Hi guys, I need help to get this right. I don’t know why this meteor iOS app keeps trying to connect to http://localhost:12448

This app is on METEOR@1.4.0.1

Please help! I can’t get this to work right and it got rejected in the review of the AppStore because it doesn’t pass the IPv6 test http://www.brianjcoleman.com/tutorial-how-to-test-your-app-for-ipv6-compatibility/

Our server has SSL properly set so it totally shouldn’t need to use http://localhost for anything!

Help!

how I’m building:

ROOT_URL=https://backend.example.com facebookAppName="BlahApp" facebookConsumerKey=blah facebookConsumerSecret=blah twitterConsumerKey=blah twitterConsumerSecret=blah meteor build $destination --server https://backend.example.com:443 --architecture os.linux.x86_64

Then in the server I have node 4.4.7

Packages:

accounts-base@1.2.9 accounts-oauth@1.1.13 accounts-ui@1.1.9 accounts-ui-unstyled@1.1.12 aldeed:template-extension@4.0.0 allow-deny@1.0.5 autoupdate@1.3.11 babel-compiler@6.9.0 babel-runtime@0.1.10 base64@1.0.9 bevanhunt:leaflet@2.0.1 binary-heap@1.0.9 blaze@2.1.8 blaze-html-templates@1.0.4 blaze-tools@1.0.9 boilerplate-generator@1.0.9 btafel:accounts-facebook-cordova@0.0.5 caching-compiler@1.1.6 caching-html-compiler@1.0.6 callback-hook@1.0.9 check@1.2.3 coffeescript@1.2.3 ddp@1.2.5 ddp-client@1.3.0 ddp-common@1.2.6 ddp-rate-limiter@1.0.5 ddp-server@1.3.9 deps@1.0.12 diff-sequence@1.0.6 ecmascript@0.5.7 ecmascript-runtime@0.3.12 ejson@1.0.12 es5-shim@4.6.13 facebook@1.2.8 fastclick@1.0.12 fish:ffmpeg@1.0.0 froatsnook:request@2.74.0 geojson-utils@1.0.9 hot-code-push@1.0.4 html-tools@1.0.10 htmljs@1.0.10 http@1.2.8 id-map@1.0.8 iron:controller@1.0.12 iron:core@1.0.11 iron:dynamic-template@1.0.12 iron:layout@1.0.12 iron:location@1.0.11 iron:middleware-stack@1.1.0 iron:router@1.0.13 iron:url@1.0.11 jaymc:google-reverse-geocode@0.0.5 jquery@1.11.9 launch-screen@1.0.12 less@2.7.4 livedata@1.0.18 localstorage@1.0.11 logging@1.1.14 mdg:camera@1.4.1 mdg:geolocation@1.3.0 meteor@1.2.16 meteor-base@1.0.4 meteorhacks:async@1.0.0 meteorhacks:picker@1.0.3 meteorhacks:ssr@2.2.0 minifier-css@1.2.13 minifier-js@1.2.13 minimongo@1.0.17 mobile-experience@1.0.4 mobile-status-bar@1.0.12 modules@0.7.5 modules-runtime@0.7.5 mongo@1.1.10 mongo-id@1.0.5 mrt:graphicsmagick@1.12.2 npm-mongo@1.5.45 oauth@1.1.11 oauth2@1.1.10 observe-sequence@1.0.12 ordered-dict@1.0.8 percolate:momentum@0.7.2 percolate:momentum-iron-router@0.7.0 percolate:velocityjs@1.2.1_1 promise@0.8.3 random@1.0.10 rate-limit@1.0.5 reactive-dict@1.1.8 reactive-var@1.0.10 reload@1.1.10 retry@1.0.8 routepolicy@1.0.11 service-configuration@1.0.10 session@1.1.6 softwarerero:accounts-t9n@1.3.4 spacebars@1.0.12 spacebars-compiler@1.0.12 standard-minifier-css@1.1.8 standard-minifier-js@1.1.8 stevezhu:fbgraph@2.1.0 templating@1.2.13 templating-tools@1.0.4 tracker@1.1.0 ui@1.0.11 underscore@1.0.9 url@1.0.10 useraccounts:core@1.14.2 useraccounts:iron-routing@1.14.2 useraccounts:ratchet@1.14.2 webapp@1.3.10 webapp-hashing@1.0.9 zendy:segue@1.1.1 zendy:segue-ratchet@1.0.0


#2

Follow up doing a grep -nri "12448" . reveals lots of stuff then an interesting part:

./.meteor/local/cordova-build/config.xml:21:  <content src="http://localhost:12448/"/>
./.meteor/local/cordova-build/platforms/ios/AppName/config.xml:113:    <content src="http://localhost:12448/" />
./node_modules/meteor-node-stubs/package.json:16:    "tmp": "tmp/meteor-node-stubs-0.2.3.tgz_1460124489959_0.682892706245184"```

#3

Sometimes making a reload using Safari’s remote debugger on the phone it brings these stacktraces:

[Log] Exception from Tracker afterFlush function: (fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js, line 3) [Log] Error: Match error: Failed Match.OneOf, Match.Maybe or Match.Optional validation (fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js, line 3) [Log] n@http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:3:3605 (fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js, line 3) check@http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:49:488 http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:186:589 rendered@http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:184:894 http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:91:2195 _withTemplateInstanceFunc@http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:91:5223 n@http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:91:2122 http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:91:3063 http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:89:17566 _withCurrentView@http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:89:22625 http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:89:17546 _runFlush@http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:33:3834 e@http://localhost:12448/fba2c255ed583ba7dfb9811c8e1fbbd8077655e1.js?meteor_js_resource=true:3:2309

It’s quite cryptic, so any help of how to know what this can be is appreciated

Thanks.


#4

I suspect there is something else going on with your app, but it connecting to http://localhost:12448 is definitely not the issue. Meteor runs a local web server on your device to serve your app’s files from (also see the mobile guide article for more details). This happens in addition to the DDP connection to your server.

What specifically is the problem you’re trying to solve?


#5

After fixing an exception it went all good, so I suspect that a stub is making it complain that way