Transporter fails to load objects using specklepy

Hi,

I am running in to the following error when trying to load a commit form a speckle server using specklepy and I am not sure how to go about debugging it. The project I am trying to load was exported from Revit using the standard connector. The code seemed to work fine the other day when trying it out on a samler commit that just included a limited subset of elements. But fails on all projects I intend to us it on if all elements in the project have previously been committed.

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/tmp/ipykernel_3616/329702358.py in <module>
      1 transport = ServerTransport(client=project_speckle.client, stream_id=project_speckle.stream.id)
----> 2 data = operations.receive(
      3                             project_speckle.commit.referencedObject,
      4                             transport,
      5                             )

/opt/miniconda3/envs/ifcimport/lib/python3.9/site-packages/specklepy/api/operations.py in receive(obj_id, remote_transport, local_transport)
     75         )
     76 
---> 77     obj_string = remote_transport.copy_object_and_children(
     78         id=obj_id, target_transport=local_transport
     79     )

/opt/miniconda3/envs/ifcimport/lib/python3.9/site-packages/specklepy/transports/server/server.py in copy_object_and_children(self, id, target_transport)
    151         for line in lines:
    152             if line:
                        # print(line )
--> 153                 hash, obj = line.split("\t")
    154                 target_transport.save_object(hash, obj)
    155 

ValueError: not enough values to unpack (expected 2, got 1)

If it insert a print statement to see what the contents of line is before it fail then this is the output for the last two lines:

048b66b49ed2f458b8e2edf15b141e9e	{"id": "048b66b49ed2f458b8e2edf15b141e9e", "type": "Dør Dobbelt Assymetrisk 1510x2100 mm", "level": {"id": "fa3cf8a2d71064a29733e13bc59e1393", "name": "Etage 2", "units": "mm", "elementId": "2145618", "elevation": 6000, "createView": true, "parameters": {"id": "0cf65d56d54cd4758704efa8f6b06efe", "IFC_GUID": {"id": "77072b662ef8b99192d26cfdcb80fc22", "name": "IfcGUID", "units": null, "value": "088q1FVSj4wB_lbnVRTYmo", "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "IFC_GUID"}, "DATUM_TEXT": {"id": "8bfc7e84eea8e8a16362f7c1f22b9549", "name": "Name", "units": null, "value": "Etage 2", "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "DATUM_TEXT"}, "LEVEL_ELEV": {"id": "cb6be6c42733596178e49accaba36056", "name": "Elevation", "units": null, "value": 6000, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-2.0.0", "applicationInternalName": "LEVEL_ELEV"}, "speckle_type": "Base", "applicationId": null, "totalChildrenCount": 0, "LEVEL_IS_STRUCTURAL": {"id": "3a31f01d7abc165a1eb0bd2f0c5f4a00", "name": "Structural", "units": null, "value": false, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "LEVEL_IS_STRUCTURAL"}, "LEVEL_IS_BUILDING_STORY": {"id": "c0686c6a0a0f930c8431af8cb126df9e", "name": "Building Story", "units": null, "value": true, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "LEVEL_IS_BUILDING_STORY"}, "LEVEL_ROOM_COMPUTATION_HEIGHT": {"id": "85aece9a511066cb3874104b69dde54a", "name": "Computation Height", "units": null, "value": 0, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-2.0.0", "applicationInternalName": "LEVEL_ROOM_COMPUTATION_HEIGHT"}, "132afcfe-acfd-4b3a-96a9-dde1be639a36": {"id": "6dbbe4ec7e7560ae858221ccb3f56d1d", "name": "AboveGround", "units": null, "value": true, "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "132afcfe-acfd-4b3a-96a9-dde1be639a36"}, "8539c1b2-5282-4c79-b28f-5d28794dcc58": {"id": "5a18ff52070b1fe1fdc3b14f2edf1b86", "name": "EntranceLevel", "units": null, "value": false, "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "8539c1b2-5282-4c79-b28f-5d28794dcc58"}}, "speckle_type": "Objects.BuiltElements.Level:Objects.BuiltElements.Revit.RevitLevel", "applicationId": "f7c588f8-771c-4bf1-acb7-a35bc6d1d980-0020bd52", "referenceOnly": false, "totalChildrenCount": 0}, "units": "mm", "family": "Dobbeltdør", "category": "Doors", "elements": null, "rotation": 2.3561944901923413, "__closure": {"64dc643de5068ab782aaab7a817665db": 2, "b37c2d3c2a32ca63c1924f3d6b85b1c7": 2, "d187308492f2578b49ad564c4c4a647c": 1}, "basePoint": {"x": 37009.74281039624, "y": 98997.99315638846, "z": 6000, "id": "3ab14a4f6a0c9d601b6dfef9d85af202", "bbox": null, "units": "mm", "speckle_type": "Objects.Geometry.Point", "applicationId": null, "totalChildrenCount": 0}, "elementId": "3420858", "parameters": {"id": "020d97cd1303da2f8f7f3facd3e3f2f9", "IFC_GUID": {"id": "ead272759b6b20c8b05b4ff74f37716d", "name": "IfcGUID", "units": null, "value": "0UreHR8xX4QPqaPXbbuZdu", "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "IFC_GUID"}, "DOOR_NUMBER": {"id": "b1c451a5b3aa4d55a626a2e4fdc54eaf", "name": "Mark", "units": null, "value": "", "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "DOOR_NUMBER"}, "Panel Depth": {"id": "e2c7873e3b3e87ee0fa842471190fc07", "name": "Panel Depth", "units": null, "value": 50, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "Panel Depth"}, "Equal Panels": {"id": "499939b7adfab6144556cdad40f41a93", "name": "Equal Panels", "units": null, "value": false, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "Equal Panels"}, "Lining Depth": {"id": "06872a08f6dc079d4e023ab7cf8e1669", "name": "Lining Depth", "units": null, "value": 119.99999999999999, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "Lining Depth"}, "Panel Offset": {"id": "8be18a48df4795056264a0ec1adfdbef", "name": "Panel Offset", "units": null, "value": 0, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "Panel Offset"}, "speckle_type": "Base", "IFC_TYPE_GUID": {"id": "8b3c099064abc5cfe18ba6d72e3bda2f", "name": "Type IfcGUID", "units": null, "value": "1_BUfuoij5kPnBfEOJrYzP", "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "IFC_TYPE_GUID"}, "Lining Offset": {"id": "d43e5e516133046ca4331d2191137d83", "name": "Lining Offset", "units": null, "value": 0, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "Lining Offset"}, "Panel Width 1": {"id": "59a31c0af78df7d3df9fdea2b6ae2b9a", "name": "Panel Width 1", "units": null, "value": 1000, "isShared": false, "isReadOnly": true, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "Panel Width 1"}, "Panel Width 2": {"id": "b1d502b9ec209e0d9aba61c38285e824", "name": "Panel Width 2", "units": null, "value": 389.99999999999983, "isShared": false, "isReadOnly": true, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "Panel Width 2"}, "applicationId": null, "FUNCTION_PARAM": {"id": "df114d51a49ae967bd7e0dbccbb670fe", "name": "Function", "units": null, "value": 0, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "", "applicationInternalName": "FUNCTION_PARAM"}, "GENERIC_HEIGHT": {"id": "05ac5cc5f4b05a13a917ab4d5f9f82a9", "name": "Height", "units": null, "value": 2100, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-2.0.0", "applicationInternalName": "GENERIC_HEIGHT"}, "OMNICLASS_CODE": {"id": "58e644ec49b84e3ad85dc323e3218299", "name": "OmniClass Number", "units": null, "value": "", "isShared": false, "isReadOnly": true, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "OMNICLASS_CODE"}, "Panel Height 1": {"id": "992fc36de20ea98f9d934c50a429502d", "name": "Panel Height 1", "units": null, "value": 2040.0000000000002, "isShared": false, "isReadOnly": true, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "Panel Height 1"}, "UNIFORMAT_CODE": {"id": "de098de72817220ce8075c776e7df119", "name": "Assembly Code", "units": null, "value": "321", "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "UNIFORMAT_CODE"}, "WINDOW_TYPE_ID": {"id": "a41e00b1b52abbcb746130884adcff6f", "name": "Type Mark", "units": null, "value": "023", "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "WINDOW_TYPE_ID"}, "notEqualPanels": {"id": "da24923b92ff19cdd133d3a7bfd5b98c", "name": "notEqualPanels", "units": null, "value": true, "isShared": false, "isReadOnly": true, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "notEqualPanels"}, "ALL_MODEL_MODEL": {"id": "00a94c3980b7ac570eb05072b83bac0d", "name": "Model", "units": null, "value": "", "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "ALL_MODEL_MODEL"}, "Host Wall Width": {"id": "b4d131df210a376c33d96c61a9c54303", "name": "Host Wall Width", "units": null, "value": 239.99999999999997, "isShared": false, "isReadOnly": true, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "Host Wall Width"}, "DOOR_FIRE_RATING": {"id": "1aae10498475e0111d5231becb96da61", "name": "Fire Rating", "units": null, "value": "", "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "DOOR_FIRE_RATING"}, "Handle Elevation": {"id": "64d4983999cd53fdfe76603d1547c918", "name": "Handle Elevation", "units": null, "value": 1000, "isShared": false, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "Handle Elevation"}, "Removed due to character limit":{}, "46077cd3-3dcc-479f-9929-346bdbe3e350": {"id": "f64931284ebf077d4aaaf53f66e91e28", "name": "Threshold", "units": null, "value": false, "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "46077cd3-3dcc-479f-9929-346bdbe3e350"}, "495d98cc-119d-47f3-8dfb-f0dd7baba4c9": {"id": "e76f451937bf298eaf38f87c069b9fff", "name": "ABDÃ
", "units": null, "value": false, "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "495d98cc-119d-47f3-8dfb-f0dd7baba4c9"}, "4adb74ad-2b25-47f0-b7f8-0e22db869c9d": {"id": "1e0a0d838f190a1765d5b05ceb96bfaf", "name": "KickPlate", "units": null, "value": true, "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "4adb74ad-2b25-47f0-b7f8-0e22db869c9d"}, "4c4301a3-7f65-42f1-ba8a-1a5e3b00c820": {"id": "400e1597c7d4baa20e3e5e6c25c89abe", "name": "Threshold Elevation", "units": null, "value": 0, "isShared": true, "isReadOnly": true, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "4c4301a3-7f65-42f1-ba8a-1a5e3b00c820"}, "5f8bc898-f65e-4b65-8db9-d9abf37de9d8": {"id": "c4a8485429c9f8b43e1e048643b810d9", "name": "BC/SfB 1988", "units": null, "value": "(32)1", "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "5f8bc898-f65e-4b65-8db9-d9abf37de9d8"}, "65636fb5-1dc0-4658-bde4-b899eecca965": {"id": "d48decd6e9220ae740d50148e6acee34", "name": "Threshold Recessed", "units": null, "value": false, "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.bool-1.0.0", "applicationInternalName": "65636fb5-1dc0-4658-bde4-b899eecca965"}, "661992eb-d145-4d0e-a8d6-27a322198ac1": {"id": "9df7224dad40f86ad91ca67d9a3cb9f4", "name": "SelfClosingFreeRun Text", "units": null, "value": "", "isShared": true, "isReadOnly": true, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "661992eb-d145-4d0e-a8d6-27a322198ac1"}, "66710a1b-8e3d-40e1-8518-ba2f931fe91f": {"id": "1f9d88eac23e1e9dc8bcc20c60c56880", "name": "CCSClassCode_Type", "units": null, "value": "QQA", "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "66710a1b-8e3d-40e1-8518-ba2f931fe91f"}, "7489ff30-7660-4457-bcc3-468705eaf1a6": {"id": "52edf186c1cdcf344322713bda20261d", "name": "Threshold Depth", "units": null, "value": 50, "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "7489ff30-7660-4457-bcc3-468705eaf1a6"}, "74f86f7f-4ef7-4fe0-9a3e-0d3229e89aec": {"id": "262a0d77b7dc5a75a048065ac07914a4", "name": "AcousticRatingRequired", "units": null, "value": "32 dB", "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "74f86f7f-4ef7-4fe0-9a3e-0d3229e89aec"}, "765c61bc-7588-4846-bfef-befb28681767": {"id": "a522abdae2873943a04c3feaa6e92108", "name": "IfcExportType", "units": null, "value": "DOOR", "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "765c61bc-7588-4846-bfef-befb28681767"}, "8df7e965-feaf-403f-8290-d4c289c99840": {"id": "fa64c2cdf970f591916d8dad7df9260f", "name": "IfcDescription", "units": null, "value": "Nordbygning", "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "8df7e965-feaf-403f-8290-d4c289c99840"}, "9080bc21-a032-4bec-ad15-80307600bbe3": {"id": "48a54cbf2c27659b568b23058742e576", "name": "IfcName[Type]", "units": null, "value": "321002", "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "9080bc21-a032-4bec-ad15-80307600bbe3"}, "99c99863-efc1-4521-8411-3cc7d556743d": {"id": "2ec19d986e4fd7039384ca28383042c6", "name": "HasDrive Text", "units": null, "value": "", "isShared": true, "isReadOnly": true, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": null, "isTypeParameter": false, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec:spec.string-2.0.0", "applicationInternalName": "99c99863-efc1-4521-8411-3cc7d556743d"}, "9dc4f5cb-806e-44b1-af5a-07660d4216ff": {"id": "cccd0b728dfb04d5a873b1577a051fd5", "name": "Stop Width", "units": null, "value": 10, "isShared": true, "isReadOnly": false, "speckle_type": "Objects.BuiltElements.Revit.Parameter", "applicationId": null, "applicationUnit": "autodesk.unit.unit:millimeters-1.0.1", "isTypeParameter": true, "totalChildrenCount": 0, "applicationUnitType": "autodesk.spec.aec:length-1.0.0", "applicationInternalName": "9dc4f5cb-806e-44b1-af5a-07660d4216ff"}, "9ec8d077-ad8c-449e-bf1f-240c86fe03e1": {"id": "3c72bdf02ee0d53638461c1e1ad4736b", "name": "ABDÃ

To me it looks like the line has been cut early and that the object should have continued.

hey @mephisto!

this error is saying that line.split is not returning two values, so it can’t unpack it into a hash and object. this is weird to me as the line object is indeed cut off at the end, however that shouldn’t really be throwing this ValueError error since line.split() isn’t concerned w the object and is just splitting the hash from the object by the tab character.

I cannot reproduce this error myself and have tried with large sample files from various different applications including Revit.

I notice you’re working in a conda environment which can sometimes be funny and could possibly be related. to rule out your environment, would it be possible to privately share a commit that you’re failing to receive for me to test on my end and see if I get the same error?

my only other thought is that perhaps there’s a deserialisation issue and you don’t have a tab character there to split (is this poss @cristi?). are you able to set a breakpoint in there and confirm you’re getting a tab (\t)character there between the id and the object?
image

1 Like

hello again @mephisto - thanks again for sharing the commit. it was super helpful!

turns out this was a bit of a server bug which will be fixed in the next release (v2.3.14 i believe) but I’ve just pushed a new version of specklepy which will also fix this for you. it is currently building, but specklepy v2.5.5 should be available to install in just a few minutes :rocket:

with the fix, I was able to receive your whole commit without problems :blush:
let me know how you get on if you run into any other issues

Hi @izzylys,

Thanks for helping out.
To get the latest specklepy I just pull from pipy or is there a development stream I need to get on?

no problem! the latest version will be available through pypi :+1:

Hey @izzylys,
now I was on holidays for a week. Being back I had the time to take a look at both specklepy==2.5.5 and 2.6.1 which has since been released and I am still not able to import the model.
Although now I am getting a different error (see below).

Which python version are you using, since you said you had no issues with the import?
I tried both 3.9.9 and 3.8.12.

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/serialization/base_object_serializer.py:26, in safe_json_loads(obj, obj_id)
    25 try:
---> 26 return ujson.loads(obj)
    27 except ValueError as err:

ValueError: Unmatched '"' when decoding 'string'

During handling of the above exception, another exception occurred:


// Skipping some lines that relate to my library structure.

File ~/repos/link_dataloader/src/linkdataloader/loaders/Local.py:121, in From_Speckle._initialize_data(self)
   119 def _initialize_data(self):
   120     self.transport = ServerTransport(client=self.client, stream_id=self.stream.id)
--> 121     self.data = operations.receive(
   122                                 self.commit.referencedObject, 
   123                                 self.transport,
   124                                 None)

File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/api/operations.py:78, in receive(obj_id, remote_transport, local_transport)
    76 obj_string = local_transport.get_object(obj_id)
    77 if obj_string:
---> 78     return serializer.read_json(obj_string=obj_string)
    80 if not remote_transport:
    81     raise SpeckleException(
    82         message="Could not find the specified object using the local transport, and you didn't provide a fallback remote from which to pull it."
    83     )

File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/serialization/base_object_serializer.py:265, in BaseObjectSerializer.read_json(self, obj_string)
   263     return None
   264 obj = safe_json_loads(obj_string)
--> 265 return self.recompose_base(obj=obj)

File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/serialization/base_object_serializer.py:323, in BaseObjectSerializer.recompose_base(self, obj)
   319         base.__setattr__(prop, self.recompose_base(obj=ref_obj))
   321     # 3. handle all other cases (base objects, lists, and dicts)
   322     else:
--> 323         base.__setattr__(prop, self.handle_value(value))
   325 return base

File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/serialization/base_object_serializer.py:344, in BaseObjectSerializer.handle_value(self, obj)
   342 # lists (regular and chunked)
   343 if isinstance(obj, list):
--> 344     obj_list = [self.handle_value(o) for o in obj]
   345     if (
   346         hasattr(obj_list[0], "speckle_type")
   347         and "DataChunk" in obj_list[0].speckle_type
   348     ):
   349         # handle chunked lists
   350         data = []

File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/serialization/base_object_serializer.py:344, in <listcomp>(.0)
   342 # lists (regular and chunked)
   343 if isinstance(obj, list):
--> 344     obj_list = [self.handle_value(o) for o in obj]
   345     if (
   346         hasattr(obj_list[0], "speckle_type")
   347         and "DataChunk" in obj_list[0].speckle_type
   348     ):
   349         # handle chunked lists
   350         data = []

File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/serialization/base_object_serializer.py:358, in BaseObjectSerializer.handle_value(self, obj)
   356 # bases
   357 if isinstance(obj, dict) and "speckle_type" in obj:
--> 358     return self.recompose_base(obj=obj)
   360 # dictionaries
   361 if isinstance(obj, dict):

File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/serialization/base_object_serializer.py:283, in BaseObjectSerializer.recompose_base(self, obj)
   280     obj = safe_json_loads(obj)
   282 if "speckle_type" in obj and obj["speckle_type"] == "reference":
--> 283     obj = self.get_child(obj=obj)
   285 speckle_type = obj.get("speckle_type")
   286 # if speckle type is not in the object definition, it is treated as a dict

File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/serialization/base_object_serializer.py:377, in BaseObjectSerializer.get_child(self, obj)
   372 if not ref_obj_str:
   373     raise SpeckleException(
   374         f"Could not find the referenced child object of id `{ref_hash}` in the given read transport: {self.read_transport.name}"
   375     )
--> 377 return safe_json_loads(ref_obj_str, ref_hash)

File /opt/miniconda3/envs/py38/lib/python3.8/site-packages/specklepy/serialization/base_object_serializer.py:34, in safe_json_loads(obj, obj_id)
    28 import json
    30 warn(
    31     f"Failed to deserialise object (id: {obj_id}). This is likely a ujson big int error - falling back to json. \nError: {err}",
    32     SpeckleWarning,
    33 )
---> 34 return json.loads(obj)

File /opt/miniconda3/envs/py38/lib/python3.8/json/__init__.py:357, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
   352     del kw['encoding']
   354 if (cls is None and object_hook is None and
   355         parse_int is None and parse_float is None and
   356         parse_constant is None and object_pairs_hook is None and not kw):
--> 357     return _default_decoder.decode(s)
   358 if cls is None:
   359     cls = JSONDecoder

File /opt/miniconda3/envs/py38/lib/python3.8/json/decoder.py:337, in JSONDecoder.decode(self, s, _w)
   332 def decode(self, s, _w=WHITESPACE.match):
   333     """Return the Python representation of ``s`` (a ``str`` instance
   334     containing a JSON document).
   335 
   336     """
--> 337     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   338     end = _w(s, end).end()
   339     if end != len(s):

File /opt/miniconda3/envs/py38/lib/python3.8/json/decoder.py:353, in JSONDecoder.raw_decode(self, s, idx)
   344 """Decode a JSON document from ``s`` (a ``str`` beginning with
   345 a JSON document) and return a 2-tuple of the Python
   346 representation and the index in ``s`` where the document ended.
  (...)
   350 
   351 """
   352 try:
--> 353     obj, end = self.scan_once(s, idx)
   354 except StopIteration as err:
   355     raise JSONDecodeError("Expecting value", s, err.value) from None

JSONDecodeError: Unterminated string starting at: line 1 column 25712 (char 25711)

hey mephisto,

from the error, it looks like your local cache may be corrupted. this probably happened when the receive crashed previously when you were on the older version of specklepy.

could you please either clear your local cache from the Speckle Manager settings page or just delete the Objects.db at %APPDATA%\Speckle .

from specklepy, you can also bypass the local cache and force receiving from the server transport by passing a MemoryTransport to operations.receive as the local_transport - I do this sometimes for debugging or dev. I don’t recommend keeping this in production as it will of course be slower than using the local cache, but it can be helpful when debugging things!

1 Like

Perfect. Thanks that fixed it :slight_smile:

1 Like

fab! glad I could help :tada: