Code Monkey home page Code Monkey logo

node-red-contrib-tak's People

Contributors

ampledata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-red-contrib-tak's Issues

"TypeError: Cannot set property 'TAKFormat' of undefined"

Line: 8
Column: 97
Char: @
    at error (/Users/gba/node_modules/sax/lib/sax.js:651:10)
    at strictFail (/Users/gba/node_modules/sax/lib/sax.js:677:7)
    at SAXParser.write (/Users/gba/node_modules/sax/lib/sax.js:1035:15)
    at Object.module.exports [as xml2js] (/Users/gba/node_modules/xml-js/lib/xml2js.js:346:12)
    at Object.exports.xml2js (/Users/gba/node_modules/@vidterra/tak.js/src/xml2js.js:12:15)
    at decodeCOT (/Users/gba/Dropbox/Projects/TAK/src/node-red-contrib-tak/cotLib.js:90:27)
    at handlePayload (/Users/gba/Dropbox/Projects/TAK/src/node-red-contrib-tak/cotLib.js:117:22)
    at tak._inputCallback (/Users/gba/Dropbox/Projects/TAK/src/node-red-contrib-tak/cot.js:36:23)
    at /Users/gba/.nvm/versions/node/v14.16.1/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:210:26
    at Object.trigger (/Users/gba/.nvm/versions/node/v14.16.1/lib/node_modules/node-red/node_modules/@node-red/util/lib/hooks.js:166:13) {
  note: [Circular *1]
}
20 Sep 22:17:32 - [error] [tak:TAK] TypeError: Cannot set property 'TAKFormat' of undefined```

"Invalid Char" error when passing an event.detail.link.url tag if the url contains an "="

When passing a link () that has at least one โ€œ=โ€ in the url attribute, the tak node provides the following error.

{"message":"Could not encode TAK payload.","exception":"Error: Invalid character in entity name\nLine: 0\nColumn: 426\nChar: ="}

One way to work around it is to use encodeURIComponent(url) to pass the JSON object through the node and after passing through the tak node's output 1, use a change node to convert the ASCII values back to text before it passes through a tcp out node.

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.