{"action":"created","issue":{"url":"https://api.github.com/repos/meteorhacks/cluster/issues/27","labels_url":"https://api.github.com/repos/meteorhacks/cluster/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/meteorhacks/cluster/issues/27/comments","events_url":"https://api.github.com/repos/meteorhacks/cluster/issues/27/events","html_url":"https://github.com/meteorhacks/cluster/issues/27","id":61077745,"number":27,"title":"cluster and cordova integration","user":{"login":"banglashi","id":942981,"avatar_url":"https://avatars.githubusercontent.com/u/942981?v=3","gravatar_id":"","url":"https://api.github.com/users/banglashi","html_url":"https://github.com/banglashi","followers_url":"https://api.github.com/users/banglashi/followers","following_url":"https://api.github.com/users/banglashi/following{/other_user}","gists_url":"https://api.github.com/users/banglashi/gists{/gist_id}","starred_url":"https://api.github.com/users/banglashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banglashi/subscriptions","organizations_url":"https://api.github.com/users/banglashi/orgs","repos_url":"https://api.github.com/users/banglashi/repos","events_url":"https://api.github.com/users/banglashi/events{/privacy}","received_events_url":"https://api.github.com/users/banglashi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-13T14:34:21Z","updated_at":"2015-03-18T14:45:58Z","closed_at":null,"body":"Hi @arunoda,\r\nfirst of all, thanks for all the great work you are doing for the meteor community ;)\r\n\r\nWe are trying to build an app and would like to use the cluster package for service-discovery.\r\n\r\nAs soon as we run the app in the ios simulator or device we get following error:\r\n```\r\nUncaught Error: SyntaxError: JSON Parse error: Unrecognized token '<':2087:http://meteor.local/packages/ddp.js?41b62dcceb3ce0de6ca79c6aed088cccde6a44d8\r\n```\r\nBasically the ddp call returns the raw html.\r\n\r\nI have created a small demo project here https://github.com/banglashi/meteor-cordova-cluster to reproduce the issue. Just edit the CLUSTER_DISCOVERY_URL in the dev and mobile shell scripts.\r\nThan lunch the ./dev script for the search service and the ./mobile script for the web service.\r\n\r\nIt could be possible that I am doing/setting something wrong. Could it be related to the endpoint being localhost?\r\n\r\nAny hint or suggestions is really appreciated.\r\n\r\nBest regards"},"comment":{"url":"https://api.github.com/repos/meteorhacks/cluster/issues/comments/83003659","html_url":"https://github.com/meteorhacks/cluster/issues/27#issuecomment-83003659","issue_url":"https://api.github.com/repos/meteorhacks/cluster/issues/27","id":83003659,"user":{"login":"banglashi","id":942981,"avatar_url":"https://avatars.githubusercontent.com/u/942981?v=3","gravatar_id":"","url":"https://api.github.com/users/banglashi","html_url":"https://github.com/banglashi","followers_url":"https://api.github.com/users/banglashi/followers","following_url":"https://api.github.com/users/banglashi/following{/other_user}","gists_url":"https://api.github.com/users/banglashi/gists{/gist_id}","starred_url":"https://api.github.com/users/banglashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banglashi/subscriptions","organizations_url":"https://api.github.com/users/banglashi/orgs","repos_url":"https://api.github.com/users/banglashi/repos","events_url":"https://api.github.com/users/banglashi/events{/privacy}","received_events_url":"https://api.github.com/users/banglashi/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T14:45:58Z","updated_at":"2015-03-18T14:45:58Z","body":"Hi @arunoda,\r\nThe DDP call is actually being made to this base_url: \"http://meteor.local/search/sockjs\"\r\nAny idea why it's not using the correct endpoint url? Or is this correct like that? \r\nI am trying to read into it and understand the internals, will let you know if I find something more."}}