Omekas Export Issue

Hi,

I have updated tropy to 1.16.2, from flatpak and using omekas plugin 2.0.1

However, i couldn’t upload items.

Following is the log message:


{"level":30,"time":1716132228912,"type":"renderer","name":"project","plugin":"tropy-plugin-omeka-v2.0.1","msg":"Connecting to API..."}
{"level":30,"time":1716132231339,"type":"renderer","name":"project","plugin":"tropy-plugin-omeka-v2.0.1","msg":"Omeka has undefined properties in 32 vocabularies"}
{"level":30,"time":1716132231339,"type":"renderer","name":"project","plugin":"tropy-plugin-omeka-v2.0.1","msg":"Exporting..."}
{"level":30,"time":1716132231339,"type":"renderer","name":"project","plugin":"tropy-plugin-omeka-v2.0.1","msg":"Item \"Thavil\"..."}
{"level":50,"time":1716132231442,"type":"renderer","name":"project","plugin":"tropy-plugin-omeka-v2.0.1","stack":"TypeError: Cannot read properties of undefined (reading 'item')\n    at Plugin.export (/home/ifpuser/.var/app/org.tropy.Tropy/config/tropy/plugins/tropy-plugin-omeka-v2.0.1/index.js:523:29)","msg":"Failed to export item \"Thavil\""}
{"level":40,"time":1716132231443,"type":"renderer","name":"project","msg":"SLOW: item.export#596"}

I just tested the plugin with the Flatpak release and the Omeka S Sandbox and it couldn’t reproduce this error. Most likely there either was a network issue/error or the error happened on Omeka’s side. I would check the Omeka S logs for more details. Uploading an item with 115 images involves quite a number of requests, so I’d also check if the data was upload partially.