1

サーバー側関数で Meteor.http.call() を使用するアプリケーションがあります。

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

これは、localhost meteor サーバーを使用して機能します。データを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.

これは役に立ちませんでした。

4

2 に答える 2

0

すみません、私のせいです。私は使用していた

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

書き込み禁止のフォルダに*.meteor.com
これにより、HTTP ステータス コードが発生しました503

于 2015-10-21T19:42:29.907 に答える
-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
于 2015-10-20T22:42:14.977 に答える