0

Am able to access bigquery api and able to get data by running queries through C#, but when i try the same from other machine am not able to get data. I get access token but while executing query i get exception With Message - "Unable to connect Remote Server" and Inner Exeption as - "The attempted operation is not supported for the type of object referenced".

開発中に複数のマシンから API にアクセスするために必要なことはありますか? 両方のマシンで 2 つの異なる clentId とシークレット キーを使用しようとしましたが、まだ機能しませんでした。

助けてください。

スタックトレース

at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
   at Google.Apis.Requests.Request.EndAttachBody(IAsyncResult asyncResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CaptureOrComplete(ExecutionContext& cachedContext, Boolean returnContext)
   at System.Net.ContextAwareResult.FinishPostingAsyncOp()
   at System.Net.HttpWebRequest.BeginGetRequestStream(AsyncCallback callback, Object state)
   at Google.Apis.Requests.Request.AttachBody(WebRequest request, Action`1 onRequestReady)
   at Google.Apis.Requests.Request.CreateWebRequest(Action`1 onRequestReady)
   at Google.Apis.Requests.Request.ExecuteRequestAsync(Action`1 responseHandler)
   at Google.Apis.Requests.ServiceRequest`1.GetAsyncResponse(Action`1 responseHandler)
   at Google.Apis.Requests.ServiceRequest`1.GetResponse()
   at Google.Apis.Requests.ServiceRequest`1.Fetch()
4

1 に答える 1

1

いいえ - 通常、複数のマシンからテストする場合、何もする必要はありません。

接続できないマシンからhttps://bigquery.cloud.google.comにアクセスしてみてください。これは、同じ基本 API を使用します。または、API エクスプローラー ( https://developers.google.com/apis-explorer/#p/)を使用してみてください。

アクセス トークンの取得とクエリの実行は、別のホストで行われます。最も可能性の高いシナリオは、不明なサーバーへのアウトバウンド要求をブロックするファイアウォールがあることです。

于 2012-09-18T07:10:38.177 に答える