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.

Error: send timeout

See original GitHub issue

I’m using the plugin in an Ionic 2 app. I configured it and I’m trying to track a view, but the error ‘Uncaught (in promise): Error: send timeout’ is appearing when running in the browser (as a progressive web app, build using ‘ionic build browser’). My piece of code:

GoogleAnalytics.startTrackerWithId(AppConfig.ga)
      .then(() => {
        console.log('Google analytics is ready now');
        GoogleAnalytics.trackView('App').then( () => {
          console.log('sent');
        })
        .catch( () => {
          console.log('rejected');
 });

I don’t understand which catch is not being handled, and why the timeout occurs. When it runs in the device, it works fine.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:13

github_iconTop GitHub Comments

6reactions
jlsuarezscommented, Jun 28, 2017

It’s not ok in my case using v1.8.3 and Ionic 4. Any thoughts?

1reaction
mordkacommented, Mar 30, 2017

Apparently the fix for this issue was released in 1.7.5, although cordova didn’t pull the patched version. I had to install the plugin using cordova plugin add https://github.com/danwilson/google-analytics-plugin.git#1.7.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting timeout error - increase the send timeout value on ...
That error occurs because the send timeout on the client side (not the service side) is timing out. The send timeout is configured...
Read more >
Timeout expired messages when connecting to SQL Server
A timeout error means that a certain operation takes longer than needed. The client application stops the operation (instead of waiting ...
Read more >
408 Request Timeout - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 408 Request Timeout response status code means that the server would like to shut down this unused ...
Read more >
How to Fix a 408 Request Timeout Error
The 408 Request Timeout error means the request you sent to the website server took longer than it was prepared to wait.
Read more >
What Does a Server Connection Timeout Mean?
A server connection timeout means that a server is taking too long to reply to a data request made from another device. Timeouts...
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