MVC web sitemde google analytics API'sini kullanmak istiyorum, api servis hesabı ve oauth2'yi kullanarak localhost'umda sorun yok, ancak Azure'a dağıttığım anda bir 502 hatası alıyorum :Google Analytics Azure'da Api
"502 - Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server."
heres kodum: buna neden neyin
const string ServiceAccountUser = "[email protected]count.com";
AssertionFlowClient client = new AssertionFlowClient(
GoogleAuthenticationServer.Description,
new X509Certificate2(System.Web.Hosting.HostingEnvironment.MapPath("/Areas/Admin/xxxxxxxxxxxxxxxxxx-privatekey.p12"),
"notasecret", X509KeyStorageFlags.Exportable))
{
Scope = AnalyticsService.Scopes.AnalyticsReadonly.GetStringValue(),
ServiceAccountId = ServiceAccountUser //Bug, why does ServiceAccountUser have to be assigned to ServiceAccountId
//,ServiceAccountUser = ServiceAccountUser
};
OAuth2Authenticator<AssertionFlowClient> authenticator = new OAuth2Authenticator<AssertionFlowClient>(client, AssertionFlowClient.GetState);
ben çözemiyorum? Azure'da bir şey eksik mi?
Yardımlarınız için teşekkür ederiz.
Şaşırtıcı mükemmel çalıştı! Çok teşekkür ederim, yardımın olmadan bunu asla elde edemezdim. –
Goodone Martyn İşte Google Analytics api uygulamasında çok fazla yardımımız yok ve nihayetinde problemi kendimiz çözmek zorundayız. –