Error: send timeout
See original GitHub issueI’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:
- Created 7 years ago
- Reactions:2
- Comments:13
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s not ok in my case using v1.8.3 and Ionic 4. Any thoughts?
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