kazuemon / asn1

TypeScript friendly ASN.1 schema definition, encoding and decoding library
MIT License
1 stars 0 forks source link

Make easier to identify where Error was thrown #10

Open kazuemon opened 5 months ago

kazuemon commented 5 months ago

Problem

[01:45:27.184] ERROR (ldap/16312): AsnParseError
    err: {
      "type": "o",
      "message": "",
      "stack":
          Error: 
              at C.decode ([...]/node_modules/@kazuemon/asn1/dist/index.js:120:13)
              at LDAPServer.onData ([...])
              at Socket.<anonymous> ([...])
              at Socket.emit (node:events:519:28)
              at addChunk (node:internal/streams/readable:559:12)
              at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
              at Socket.Readable.push (node:internal/streams/readable:390:5)
              at TCP.onStreamRead (node:internal/stream_base_commons:191:23)
    }

Solution

kazuemon commented 3 months ago

Need for Encode error 😢