GithubHelp home page GithubHelp logo

docker-event-log's People

Contributors

pelger avatar

Stargazers

 avatar

Watchers

 avatar

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 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.