docker-event-log's People
docker-event-log's Issues
Events parsing error
Hi,
when trying to use the library I keep on getting:
"SyntaxError: Unexpected token { in JSON at position 355"
Looking into the code it seems that is tries to parse an object and not a string:
var data = JSON.parse(chunk);
Am I missing something here? It's not clear how the library works.
Is there a way to configure the stream to pass strings instead of objects?
SyntaxError: Unexpected end of input on kubernetes
Hello!
I get this stack trace when using this library with docker-logentries:
undefined:1
"k8s-agent-88b7ec53-1\",\"securityContext\":{},\"imagePullSecrets\":[{\"name\"
SyntaxError: Unexpected end of input
at Object.parse (native)
at DestroyableTransform._transform (/usr/src/app/node_modules/docker-event-log/index.js:69:21)
at DestroyableTransform.Transform._read (/usr/src/app/node_modules/docker-event-log/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:159:10)
at DestroyableTransform.Transform._write (/usr/src/app/node_modules/docker-event-log/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:147:83)
at doWrite (/usr/src/app/node_modules/docker-event-log/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:313:64)
at writeOrBuffer (/usr/src/app/node_modules/docker-event-log/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:302:5)
at DestroyableTransform.Writable.write (/usr/src/app/node_modules/docker-event-log/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:241:11)
at write (/usr/src/app/node_modules/docker-event-log/node_modules/never-ending-stream/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)
at flow (/usr/src/app/node_modules/docker-event-log/node_modules/never-ending-stream/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)
at DestroyableTransform.pipeOnReadable (/usr/src/app/node_modules/docker-event-log/node_modules/never-ending-stream/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)
This runs in Azure in a Kubernetes cluster.
Could you make it a little bit more fault tolerant, for example dropping incomplete messages?
Thanks!
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.