iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
623 stars 211 forks source link

iModel.js 2.5.3 bug reporting (about SnapshotIModelRpcInterface ...) #111

Closed Myzik-Dev closed 4 years ago

Myzik-Dev commented 4 years ago

iModel.js 2.5.3 library seems to have bugs.

There is no problem in the old version, but in that version, an error message [An RPC interface impression class for "SnapshotIModelRpcInterface" is not registered.] appears. (runtime error)

kabentley commented 4 years ago

As to the error you're seeing, make sure you have the correct version of @bentley/imodeljs-backend installed, and that you've called IModelHost.startup(). If you want to debug it, you can see that interface getting registered here

Yes you should be able to render reality meshes from a desktop app using a local snapshot iModel, as long as you have a network connection and are authenticated to the reality data server. That is quite common.

kabentley commented 4 years ago

are you using Electron or a web app with localhost?

swbsi commented 4 years ago

@Myzik-Dev The core RPC implementations are registered during IModelHost.startup. The error you are experiencing is often a sign that something went wrong during that function call.

Can you put a try/catch around your awaited call to startup and verify if any errors occur?

Myzik-Dev commented 4 years ago

are you using Electron or a web app with localhost?

Only web app

calebmshafer commented 4 years ago

@Myzik-Dev can you try iModel.js 2.6.0 that was just released and see if you're still able to reproduce the issue?

Myzik-Dev commented 4 years ago

iModel.js 2.6.0

It works well in iModel.js 2.6.0. 👍 Thank you for taking care of it quickly.