Skip to content

Canceled request with slow3g #642

@asamoilich

Description

@asamoilich

During integration of snowplow JS tracker we found out that with slow connection we got canceled status with error : net_error = -3 (ERR_ABORTED) for requests with > 5sec time.(Easy reproduce with first call in browser private mode and turned on slow3g)

I had load https://d1fc8wv8zag5ca.cloudfront.net/2.6.2/sp.js1 and change there timeout to 10seconds.
After this changes our requests got success status.

Question: is it possible to add new param to set timeout ?

For example:
window.snowplow(‘newTracker’, ‘cj’, ‘{TRACKER_PIXEL}', { appId: '{APP_ID}’,
cookieDomain: ‘${COOKIE_DOMAIN}’,
timeout: 10000
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:browserAbout the browser-specific code.priority:mediumOn the roadmap.type:enhancementNew features or improvements to existing features.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions