BIMsurfer-before2019 icon indicating copy to clipboard operation
BIMsurfer-before2019 copied to clipboard

Model class is sometimes null in JS Client API

Open xeolabs opened this issue 9 years ago • 3 comments

Getting this bug with the JS API that's downloaded from the experimental server, where 'Model' is sometimes null. This comes and goes - sometimes Model is null and sometimes it's defined.

https://thisisanexperimentalserver.com/apps/bimserverjavascriptapi/js/bimserverclient.js

Would that be due to somebody working on the API, redeploying it?

xeolabs avatar Oct 12 '16 13:10 xeolabs

There have been a few times I have seen this as well. The way those files are being loaded has been changed last week, so let's keep this open for a while, if nobody sees it again in a few weeks we can close this one.

rubendel avatar Oct 17 '16 07:10 rubendel

I've had this bug as well. It seems to happen when model.js is loaded before bimserverclient.js. At the top of bimserverclient.js, commenting var Model = null fixes the issue in this case.

bastienmenis avatar Oct 17 '16 08:10 bastienmenis

I am also seeing this.

aothms avatar Nov 06 '16 16:11 aothms