Tag: ibm cloud

Cloud Foundry node.js应用程序在iOS Safari移动中加载速度较慢

除Safari Safari之外,我们有一个Bluemix node.js应用程序,可以在所有浏览器中完美加载。 即使在OSX Safari上也能正常工作。 我们已经testing了iPhone 5,6和不同的iPad。 我们已经通过不同的WiFinetworking和3G / 4G做到了这一点。 你可以在这里testing: http : //innowall-debug.eu-gb.mybluemix.net/第一页上的一些资源已经加载非常缓慢。 这个问题在第一页上是可重现的。 奇怪的是当你通过https加载网站时,它会加载/渲染速度很快。 有什么可能导致这个问题缓慢的http只为Safari移动? HTTP(慢入口高亮 – 检查延迟27secs): HTTPS(快速):

CF连接到云控制器

我使用下面的lib连接到云控制器 https://github.com/prosociallearnEU/cf-nodejs-client const endpoint = "https://api.mycompany.com/"; const username = "myuser"; const password = "mypass"; const CloudController = new (require("cf-client")).CloudController(endpoint); const UsersUAA = new (require("cf-client")).UsersUAA; const Apps = new (require("cf-client")).Apps(endpoint); CloudController.getInfo().then((result) => { UsersUAA.setEndPoint(result.authorization_endpoint); return UsersUAA.login(username, password); }).then((result) => { Apps.setToken(result); return Apps.getApps(); }).then((result) => { console.log(result); }).catch((reason) => { console.error("Error: " + reason); }); 我试图运行它对我们的API和它不工作,我没有得到任何错误消息在控制台,它可以是什么? […]

节点js错误:协议“https:”不支持。 预计“http:”

我正在使用IBM Bluemix为学校项目制作Web服务。 我的项目需要从API请求一个JSON,所以我可以使用它提供的数据。 我使用http get方法的数据集,我不知道它是否正常工作。 当我运行我的代码,我得到的消息: 错误:协议“https:”不受支持。 预计“http:” 是什么原因造成的,我该如何解决? 这是我的.js文件: // Hello. // // This is JSHint, a tool that helps to detect errors and potential // problems in your JavaScript code. // // To start, simply enter some JavaScript anywhere on this page. Your // report will appear on the right side. // // […]