holochain / holochain-client-js

A JavaScript client for the Holochain Conductor API
Other
258 stars 16 forks source link

Deserialiation error when calling admin methods #80

Closed andyjessop closed 2 years ago

andyjessop commented 3 years ago

Following the docs here: https://github.com/holochain/holochain-conductor-api#use-adminwebsocket

In ./admin.js:

const { AdminWebsocket } = require('@holochain/conductor-api');

const TIMEOUT = 5000;

console.log(
  AdminWebsocket.connect(`http://localhost:8888`, TIMEOUT)
    .then(admin => admin.listDnas())
    .then(console.log)
    .catch(console.log)
);

Console output:

> node ./admin.js

Promise { <pending> }
{
  type: 'error',
  data: {
    type: 'deserialization',
    data: 'Bytes(Deserialize("unknown variant `list_dnas`, expected one of `app_info`, `crypto`, `zome_call`, `zome_call_invocation`, `signal_subscription`"))'
  }
}

I get similar errors when calling any admin method.

jost-s commented 2 years ago

Closing this. If the issue persists, please post here.