Skip to content
CCPEDIAby Unity Nodes
App Development

Projectdable error - Uncaught TypeError: e.keyDecoder is not a function

5 posts513 viewsLast activity Aug 2020

  1. bartcantOP

    I am experiencing a new issue in projectdable

    Any suggestions on what this could be ?

    I recently upgraded to SDK 1.4.0 but not sure if this has anything to do with this…

    Upon Logon- I get the following console.log output.
    Will try in local environment and see if I get the same problem

    Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:SupplyImmunityVC.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Covid19Vaccine.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Covid19Test.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:VaccineAppointment.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:TestAppointment.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:TestRequest.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:AliasCitizen.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:InsuranceCompanyRole.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:StateAgencyRole.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:CitizenRole.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:HealthClinicRole.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:PartyInvitation.
    2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Network.
    UserContext.js:114 insidefetch
    UserContext.js:154 roleOperator
    UserContext.js:114 insidefetch
    UserContext.js:154 roleOperator
    2.66735d89.chunk.js:2 mount useStreamQuery(87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Network, …) undefined
    72.66735d89.chunk.js:2 Uncaught TypeError: e.keyDecoder is not a function
    at h (2.66735d89.chunk.js:2)
    at 2.66735d89.chunk.js:2
    at WebSocket._ (2.66735d89.chunk.js:2)
    h @ 2.66735d89.chunk.js:2
    (anonymous) @ 2.66735d89.chunk.js:2
    _ @ 2.66735d89.chunk.js:2

  2. bartcant

    Same problem in local environment

    mount useStreamQuery(87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Network, …) undefined
    44index.js:76 Uncaught TypeError: template.keyDecoder is not a function
    at decodeCreateEvent (index.js:76)
    at decodeEvent (index.js:101)
    at WebSocket.onMessage (index.js:497)
    decodeCreateEvent @ index.js:76
    decodeEvent @ index.js:101
    onMessage @ index.js:497

  3. cocreature

    Looks like something got out of sync and you ended up with generated code that assumes that the template doesn’t have key when it actually has a key. Did you already try blowing away node_modules and friends?

    If that doesn’t help, can you share the project?

  4. bartcant

    OK. Will rebuild and retry

  5. bartcant

    Rebuilt and solved it. Thanks @cocreature