Comments (9)
It's an XHR request from the browser, but it's the response body that is huge - not the request body.
Let me see if I can knock up a quick repo...
from home.
Ok, try this: https://github.com/danielcrisp/glimpse-example
from home.
Thanks @danielcrisp - the repro you put up was perfect. The issue here is those setting values were never getting communicated to our "Browser Agent" - the piece of code that runs in your browser and gathers diagnostic data for what's happening client side. I've got a fix up to address this. We should have this release next week.
Once the fix is available, you'll need to update your repro since you're injecting the browser agent by hand. You'd need some code like the following, note the config-settings
attribute and the values there. They would need to correspond to the values you're using for "server.max.json.body.size"
and "inspector.http.body.capture.maxsize"
. Of course, if you're not hand-injecting the browser agent script, then this should "just work".
<script src="http://localhost:3000/glimpse/agent/agent.js"
id="__glimpse_browser_agent"
data-message-ingress-template="http://localhost:3000/glimpse/message-ingress/"
config-settings="{"server.max.json.body.size":20000,"inspector.http.body.capture.maxsize":10000}">
</script>
Let us know if you have any ?s or feedback.
Thanks,
Mike
from home.
Thanks for opening the issue @danielcrisp. Are you running mongodb? With release 0.22.11 we started capturing data passed to mongo DB (documents on insert commands, queries objects and update objects). We have a bug where we're not truncating captured data & this can result in the errors you describe. We should have a fix out in a few weeks time.
from home.
Hi @mike-kaufman, nope I'm not using mongodb - it's just a simple Express app that mocks our API endpoints with fake JSON data.
I'm familiar with the huge amounts of data that mongodb can expose for a single document though. Is the size the problem? Does your fix address the size for all requests or is it only specific to mongod?
from home.
interesting. What type of request is generating a body with size of 396989 bytes? Is this an XHR or fetch request from browser? Or from a node's HttpClient?
Does your fix address the size for all requests or is it only specific to mongod?
We don't have the fix yet, we just know this is a problem with the mongodb messages we're generating, and we're planning to fix it.
from home.
btw - if you have a simple repro case that we can run, that would be most helpful. Understand if your code isn't public or your environment is too hard to replicate.
from home.
Great! Sounds good - when the fix is released I'll update the repo to give it a go.
Thanks Mike,
Dan
from home.
ok, version 0.22.15 is now up on npm, and it has the fix for this. Please let us know if you have any other problems or feedback.
from home.
Related Issues (20)
- [Hapi] Support roadmap HOT 7
- Support being initialized after imports HOT 4
- [Loopback] support HOT 6
- Glimpse breaks AWS-SDK S3 calls HOT 4
- Lost context reported using socket.io and/or sticky-session HOT 1
- TypeError: Cannot assign to read only property 'createGzip' of object '#<Object>' HOT 3
- Glimpse (Warning OlderUnsupportedPackageRequired): Glimpse does not support version 2.3.3 of debug. HOT 4
- Deep link to https://github.com/Glimpse/Home#package--version-support is broken HOT 1
- TypeError: Cannot assign to read only property 'createGzip' of object '#<Object>' HOT 3
- Use Glimpse with separate frontend and backend procceses? HOT 3
- Initializing Glimpse in projects break aws-sdk S3 HOT 4
- [Home repo]: update screenshot to reflect current UIs HOT 1
- Glimpse crashes acquiring mac address HOT 5
- TypeError: Converting circular structure to JSON at MessageConverter.js:38:43 HOT 1
- create-react-app and Glimpse cause can't resolve module glimpse-agent-node/release
- [restify] support?
- fatal error - ""could not find associated master data
- How can I get Glimpse to work with Vue.js/Nuxt.js ?
- support for mongodb version 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home.