Coder Social home page Coder Social logo

uicapturesdk-modules's Introduction

UICaptureSDK-Modules

Optional modules which extend the Tealeaf UI Capture SDK functionality.

uicapturesdk-modules's People

Contributors

cherry-czhang avatar mpunjabi-aco avatar mpunjabi-ibm avatar ohernandezibm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

uicapturesdk-modules's Issues

Cannot set property 'end' of undefined errors for older versions of Chrome and Samsung Browser

We recently deployed this module to our production website and it started logging thousands of "Cannot set property 'end' of undefined" errors in our logs. Further investigation showed that the error was enough to block users from continuing on the site. I was able to trace the issue back to some really old browser versions. Predominantly users with Chrome 30x and Samsung browser 2.x.

We are using SDK 5.6 with all add-on modules disabled and useFetch: true.

Observation: At first glance, it may be an unexpected condition for earlier versions of Chrome and Samsung that do not support fetch.

Negative result when response data enabled on some calls

Current Behavior:
When responseData is enabled, some calls result in a console error: "Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'json')."

We've observed that the application is prevented from rendering fully in this scenario.

Expected Behavior:
Even with an unexpected result received by ajaxListener, the application rendering should not be held up.

Casually searching the internet it seems that the "Response" property vs "Responsetext" should be used when malformed JSON is returned . Not suggesting this is a solution, but just passing along the little information I could garner.

Selective Response/Request capture based on payload and/or field size

The Ajaxlistener needs the ability to disable capture of the request or the response based on the payload size. E.g: If response payload is larger than 1MB, disable response capture for that call.

Also, individual headers, etc. need to be able to be filtered based on length.

Works on every browser?

I remember with the old version (ajaxIntercept) it was necessary to check wether the browser was not IE or Safari (old).
Is this still mandatory or can it be set active to every user?

Original and request URLs formatted strangely

Not sure if this is just when a port number is included or if it's something specific to our environment but it seems the slash between the URL an URI portions of the original and request URLs is missing. When viewing headers in developer tools none are presented in this way. It is captured correctly for the "description" field
"originalURL": "api-gw.cigna.com:443my/curated-moments/v1/curated-moments",
"requestURL": "api-gw.cigna.com:443my/curated-moments/v1/curated-moments",
"description": "Full Ajax Monitor https://api-gw.cigna.com/my/curated-moments/v1/curated-moments?_ts=1565615981924",

Uncaught TypeError: Cannot read property 'body' of undefined at window.fetch

Getting syntax error when testing the new ajax listener 1.2.0 with fetch support. In my test page I make a fetch request to 404 missing JSON file but 1.2.0 throws this error: AcousticExperience(TL)UIC-CLIENT-servicesTemplate.js:79 Uncaught TypeError: Cannot read property 'body' of undefined at window.fetch (https://127.0.0.1/tealeaf-libs/AcousticTealeaf_UICaptureSDK_5.6.0/AcousticExperience(TL)UIC-CLIENT-servicesTemplate.js:79:4638)

That is line "if (B.body) {" in the chrome-prettyprinted source of ajax listener:

function i() {
p = window.fetch;
window.fetch = function(C, B) {
var A = {}, D;
if (typeof C === "object") {
A.initData = C;
A.url = C.url;
A.initData.clone().text().then(function(E) {
if (E.length > 0) {
A.body = E
}
})
} else {
A.initData = B || {};
A.url = C;
if (B.body) {
A.body = B.body
}
}

If I comment out the 1.2.0 ajax listener, UIC works OK and I see my fetch 404 result:
Request URL: https://127.0.0.1/tealeaf-libs/AcousticTealeaf_UICaptureSDK_5.6.0/doesnotexist.json
Request Method: GET
Status Code: 404 Not Found

here's the fetch I am making in my test page:

fetch('https://127.0.0.1/tealeaf-libs/AcousticTealeaf_UICaptureSDK_5.6.0/doesnotexist.json')
.then((response) => {
return response.json();
})
.then((data) => {
console.log(data);
});

Here's my test session showing the error:

https://us.tealeaf.ibmcloud.com/webapp/home#/session-replay-timeline?org=tealeaf-com&sid=67765520185409338299540974149729_20200306095828&tltsid=67765520185409338299540974149729&saved=false&reportName=Report&appKey=2508cb55cf0a4b94be3d2679275b1c61

Ajaxlistener1 2 0_error_20200306

Negative interaction with app code

Seeing an issue where ajax listener is interacting negatively with the application it's enabled on. It appears to cause the code to execute in some way. This is also causing performance impact. This is the 1.1.4 version. This problem did not seem to exist prior to 1.1.4.

Issue with 1.1.1

My previous confirmation that 1.1.1 resolved the error was incorrect. We are still seeing the exact same issue.

Need masking solution for ajaxListener

The ajaxlistener has a glaring gap for masking.

Need to be able to filter or replace header content or specific request/response payload content for security purposes.

Problem if Dynatrace Javascript is Running

If the Dynatrace Javascript library is running in an application, the Tealeaf Ajax Listener isn't able to record any ajax calls. Tested multiple times. It doesn't prevent the Tealeaf POSTs from being received but is apparently preventing visibility from other Javascript.

Using 1.2.2,

1.1.2 Error

No matter what I do I just get console errors for the 1.1.2 version:

TypeError: b.normalizeUrl is not a function

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.