opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
173 stars 87 forks source link

SyntaxError: Unexpected token N in JSON while loading the model in BIMvie.ws #129

Closed sameepkaranjkar closed 1 year ago

sameepkaranjkar commented 5 years ago

Operating system : Windows 8 Bimserver version : 1.5.117 Browser : Chrome Version 73.0.3683.103 (Official Build) (64-bit) The same IFC file worked earlier but when checked in with another project getting same error with both project. While viewing the simple IFC file getting JSON error.

The IFC file used for checkin is as follows : PS_SAMPLE_FILE.txt

Attached parsed json file where coordinates have NaN : {"_t":"Bounds","min":{"_t":"Vector3f","x":NaN,"y":NaN,"z":NaN} Parsed_NaN_Json.txt

Error details as follows : bimserverclient.js:571 SyntaxError: Unexpected token N in JSON at position 23009 at JSON.parse () at XMLHttpRequest.xhr.onload (bimserverclient.js:564) xhr.onload @ bimserverclient.js:571 model.js:719 Uncaught TypeError: Cannot read property 'forEach' of undefined at model.js:719 at XMLHttpRequest.xhr.onload (bimserverclient.js:574)

Screenshot : BIMViews_Error

rubendel commented 5 years ago

Pretty sure this is fixed in 1.5.125

sameepkaranjkar commented 5 years ago

Upgraded to Bimserver 1.5.125 and seems to be working.Thanks.