question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Analytics API - Error occurred while sending the request

See original GitHub issue
Hello,

What steps will reproduce the problem?
1.I am using a windows service (c# code) to pull the google analytics data. 
(everything works on my local machine but I am getting an error when I deploy 
the windows service on a test server).
2.The error I am getting:
ErrorMessage: An error occurred while sending the request
StackTrace: at Google.Apis.Requests.ClientServiceRequest`1.Execute() in 
c:\code\google.com\google-api-dotnet-client\default\Tools\Google.Apis.Release\bi
n\Debug\test\default\Src\GoogleApis\Apis\Requests\ClientServiceRequest.cs line 
96


What version of the product are you using?
 <package id="Google.Apis" version="1.9.0" targetFramework="net451" />
  <package id="Google.Apis.Analytics.v3" version="1.9.0.1000" targetFramework="net451" />
  <package id="Google.Apis.Auth" version="1.9.0" targetFramework="net451" />
  <package id="Google.Apis.Core" version="1.9.0" targetFramework="net451" />
What is your operating system?
Windows 7
What is your IDE?
Microsoft Visual Studio 2013

Thank you!




Original issue reported on code.google.com by alz.anal...@gmail.com on 4 Dec 2014 at 5:23

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
amanda-tarafacommented, Feb 2, 2021

@LindaLawton this was an automated task that was modified to assigned old closed issues, and have ended up erronously assigning to some users. The automation team and @JustinBeckwith are aware of the surprise this is causing. Sorry for any inconvenience, but please just ignore.

0reactions
LindaLawtoncommented, Feb 2, 2021

@JustinBeckwith you know i don’t work for google right? (Not for lack of trying.) That being said I am not sure assigning it to me is your best option.

that being said

everything works on my local machine but I am getting an error when I deploy the windows service on a test server

The user is probably using GoogleWebAuthorizationBroker.AuthorizeAsync which is designed for installed applications and will not work when deployed to a webserver as its trying to open the authorization browser window on the server rather then on the client machine.

Recommend close as this nothing to fix especially without seeing code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Responses | Analytics Core Reporting API
If a Core Reporting API request is successful, the API returns a 200 status code. If an error occurs with a request, the...
Read more >
Google Analytics Errors - Tag Assistant Help
This error denotes that the call to google-analytics.com/urchin.js was not made and the request is missing from the JavaScript. Omitting the call to...
Read more >
400 Bad Request when using Google.Apis.Analytics.v3
The error itself is: Error occurred while sending a direct message or getting the response. Google's API documentation says that a 400:Bad ...
Read more >
Quota Error: The number of recent reporting API requests ...
This error which you're encountering is similar to a Google Analytics API quota limit, which can occur if you've been making a number...
Read more >
(500) There was an internal error - For Most of the time
to Google Analytics Reporting API. Hello Members,. I am getting (500) There was an internal error. For all my requests.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found