2015-10-20 22 views
1

我有一個應用程序,我在服務器端函數中使用Meteor.http.call()。Meteor.http.call()從我的app.meteor.com

var ret = Meteor.http.call("GET", "https://www.quandl.com/api/v1/datasets/SF1/<...>"); 

這個工程使用本地主機流星服務器:我有我的數據傳回在ret變量。
我將應用程序部署到ruleoneinvesting.meteor.com,現在我使用同一個呼叫出現此錯誤:

XMLHttpRequest cannot load https://ddp--4645-ruleoneinvesting.meteor.com/sockjs/info?cb=p7czcbhqun. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://ruleoneinvesting.meteor.com' is therefore not allowed access. The response had HTTP status code 503. 

This沒有幫助。

回答

-1

既然你得到了「HTTP狀態碼503」,這可能不是你可以或需要修復的東西。

wicked peter,該問題可能不是你的,但服務器的:

503 Service Unavailable 
The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state 
0

對不起,我的錯。我的文件夾中使用

fs.writeFile('../../../../../../data/') 

,這是不允許在*.meteor.com寫。
導致HTTP狀態碼503