epsagon / epsagon-browser Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
This issue is reproducible if fe use fetch
with Request
object
Here https://github.com/epsagon/epsagon-browser/blob/main/packages/web/src/instrumentation/fetchInstrumentation.js#L36 we can see that fetch
function is called with url
and options
params: original.apply(this, [url, options]);
But since options
is just copy of Request
instance, and request instance does not allow to read body
property directly, only by calling certain methods link, body
property in options
variable becomes undefined and fetch
call occurs without body
Current behaviour: body for PATCH
, POST
etc requests is lost
Expected behaviour: body should be send with query
Hi Epsagon team, I am opening this issue to get your advice on using Epsagon with Typesscript React projects created via CRA.
There are several problems with my current setup:
Could you please point me to a document that explains how to setup CRA Typescript projects? An example project will also be very useful.
Example of errors:
2022-09-06T14:30:52.786+01:00CopyFailed to parse source map from '/codebuild/output/src751190034/src/github.com///node_modules/@opentelemetry/api/src/internal/semver.ts' file: Error: ENOENT: no such file or directory, open '/codebuild/output/src751190034/src/github.com///node_modules/@opentelemetry/api/src/internal/semver.ts' | Failed to parse source map from '/codebuild/output/src751190034/src/github.com///node_modules/@opentelemetry/api/src/internal/semver.ts' file: Error: ENOENT: no such file or directory, open '/codebuild/output/src751190034/src/github.com///node_modules/@opentelemetry/api/src/internal/semver.ts' |
---|
We're using Amplify to submit login credentials to Cognito and we're seeing some errors.
When epsagon web is enabled we see the login request to:
https://cognito-identity.us-west-1.amazonaws.com fail with HTTP 400
In the console we see:
zone.js:372 Uncaught (in promise) SerializationException: SerializationException
We have tried setting:
urlPatternsToIgnore: ['.*cognito-identity.*', '.*cognito-idp.*'],
@epsagon/web: 1.3.1
Edit
This is using the aws-amplify library v4.2.6 and the errors are client side (browser console)
As there is a specific package for React, I don't think the web version should have a dependency on React. This is listed as a peerDependency here
This causes an erroneous warning on install
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.