Encountered an Error Screen during Development

Hello,

I encountered this error when developing our Prodigy app:

TypeError: text is undefined
_Token$1@http://localhost:8080/bundle.js:31222:24
bundle.js/createWithStyles$1/</WithStyles<@http://localhost:8080/bundle.js:16063:54
div
_a11@http://localhost:8080/bundle.js:31572:21
bundle.js/createWithStyles$1/</WithStyles<@http://localhost:8080/bundle.js:16063:54
div
_Content$1@http://localhost:8080/bundle.js:28712:25
bundle.js/createWithStyles$1/</WithStyles<@http://localhost:8080/bundle.js:16063:54
div
_a21@http://localhost:8080/bundle.js:56768:21
bundle.js/createWithStyles$1/</WithStyles<@http://localhost:8080/bundle.js:16063:54
div
_a26@http://localhost:8080/bundle.js:59830:21
bundle.js/createWithStyles$1/</WithStyles<@http://localhost:8080/bundle.js:16063:54
Card@http://localhost:8080/bundle.js:59966:22
ErrorBoundary@http://localhost:8080/bundle.js:62062:17
div
div
_Annotator@http://localhost:8080/bundle.js:62305:17
bundle.js/createWithStyles$1/</WithStyles<@http://localhost:8080/bundle.js:16063:54
ConnectFunction@http://localhost:8080/bundle.js:11335:42
main
div
_class2@http://localhost:8080/bundle.js:18689:36
_Main@http://localhost:8080/bundle.js:110975:17
bundle.js/createWithStyles$1/</WithStyles<@http://localhost:8080/bundle.js:16063:54
ConnectFunction@http://localhost:8080/bundle.js:11335:42
ThemeProvider3@http://localhost:8080/bundle.js:12246:51
App@http://localhost:8080/bundle.js:111434:78
Provider@http://localhost:8080/bundle.js:11550:26

Along with a message that I might have encountered an error with the web application.

The background to this is that I am working on implementing a database with a landing table so we can avoid the flat file uploads and better manage our datasets. While importing a binary json column detailing the pre-existing labels for some of our tokens, the first error I encountered was a notification that the "id" is required. This is odd, as when uploading flat json files, it's not something I had to do before. This is with the same test text with the same labels, so nothing has changed on that front.

Once I resolved the id issue with the token, the next time I launched the web app, I received this error.

We are currently running v1.15.6 for python 3.11-bullseye.

Please let me know if you need any more information, and any advice or possible work arounds would be greatly appreciated.

Thank you

On further diagnosis, it seems this error was caused when we used 'tokens' instead of 'spans' when pulling data out of our staging table.

I'll leave this topic up in case this is an actual bug... though it seems like it was our mistake.

Thanks for the update @kwaddle. These kind of front-end error usually come up what the data structure that arrives to the front-end is not as expected.
Without knowing the logic of building the input or the recipe is supposed to feed it's hard to tell exactly, but I do think it's probably the structure of the task that was not entirely correct.

1 Like