Giter Club home page Giter Club logo

codem-client's People

Contributors

birme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codem-client's Issues

Error on write the SMIL

The error generated by the manager:

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:28:11)
    at Object.join (path.js:1236:7)
    at Object.writeSMIL (/srv/manager/lib/smil.js:31:25)
    at model.tcd_jobSchema.methods.update_tcd (/srv/manager/lib/job.js:167:14)
    at Function.tcd_jobSchema.statics.update_tcd (/srv/manager/lib/job.js:150:17)
    at Object.getCodemNotification (/srv/manager/lib/manager.js:46:9)
    at /srv/manager/routes/codem.js:7:9
    at Layer.handle [as handle_request] (/srv/manager/node_modules/express/lib/router/layer.js:82:5)
    at next (/srv/manager/node_modules/express/lib/router/route.js:100:13)
    at Route.dispatch (/srv/manager/node_modules/express/lib/router/route.js:81:3)
    at Layer.handle [as handle_request] (/srv/manager/node_modules/express/lib/router/layer.js:82:5)
    at /srv/manager/node_modules/express/lib/router/index.js:234:24
    at Function.proto.process_params (/srv/manager/node_modules/express/lib/router/index.js:312:12)
    at /srv/manager/node_modules/express/lib/router/index.js:228:12
    at Function.match_layer (/srv/manager/node_modules/express/lib/router/index.js:295:3)
    at next (/srv/manager/node_modules/express/lib/router/index.js:189:10)

Adding some code to check from the console what happens from the logs to the route/codem:

const util = require('util')

router.route('/').put( function(req, res) {
    console.log("NOTIFY -> Body: " + util.inspect(req.body, false, null));
    ...

The body received from route/codem:


Answer on job post {"message":"The transcoder accepted your job.","job_id":"fbeaa3b48d3b4013d14b16a8565b618a4c50fa84"}
Started codem job fbeaa3b48d3b4013d14b16a8565b618a4c50fa84 belonging to job 5af95d393ce5193453a8cd56

NOTIFY -> Body: { id: 'fbeaa3b48d3b4013d14b16a8565b618a4c50fa84',
  status: 'processing',
  progress: 0,
  duration: 15,
  filesize: 2498125,
  message: null }
PUT /codem_notify 200 3.644 ms - 22
NOTIFY -> Body: { id: 'fbeaa3b48d3b4013d14b16a8565b618a4c50fa84',
  status: 'success',
  progress: 1,
  duration: 15,
  filesize: 2498125,
  message: 'ffmpeg finished succesfully.' }
UPDATE TCD -> BasePath: /srv/manager/public/serve/
UPDATE TCD -> BaseName: undefined
WRITE SMIL -> BasePath: /srv/manager/public/serve/
WRITE SMIL -> BaseName: undefined
PUT /codem_notify 500 5.177 ms - 1420

I receive two different notifications at the same time, at the success the manager tries to write the SMIL, but does not find the BaseName value in the job.

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.