transformerlab-app icon indicating copy to clipboard operation
transformerlab-app copied to clipboard

Fixed Error invoking remote method 'setStoreValue': TypeError: Use delete() to clear values

Open ParamThakkar123 opened this issue 1 month ago • 4 comments

Fixes https://github.com/transformerlab/transformerlab-app/issues/876

ParamThakkar123 avatar Nov 16 '25 11:11 ParamThakkar123

I tried to reproduce the original error on the main branch by deleting an experiment in app and also in the cloud mode but I wasn't able to reproduce the error. Not sure if it is windows-specific? Are you able to see it in the cloud mode? (npm run start:cloud)

I got this on the desktop app. Maybe I can send a video of the error on discord ?

ParamThakkar123 avatar Nov 17 '25 15:11 ParamThakkar123

I'm OK with adding the check for valid experiments in the app, but I would prefer if we did the filter at the API/SDK level. i.e. inside the function that gets a list of experiments in lab-sdk/ it should verify that fields are correct and print an error message if it finds an experiment missing required fields.

@deep1401 Tagging you in case you have input on if we should filter experiments that are missing experiment_id or experiment_name from their json file? (Param had an experiment that was somehow missing both in its json...no idea how he made it!) Or do you think we should just handle it by adding the ID when listing or something?

dadmobile avatar Nov 19 '25 19:11 dadmobile

I'm OK with adding the check for valid experiments in the app, but I would prefer if we did the filter at the API/SDK level. i.e. inside the function that gets a list of experiments in lab-sdk/ it should verify that fields are correct and print an error message if it finds an experiment missing required fields.

@deep1401 Tagging you in case you have input on if we should filter experiments that are missing experiment_id or experiment_name from their json file? (Param had an experiment that was somehow missing both in its json...no idea how he made it!) Or do you think we should just handle it by adding the ID when listing or something?

I thought I solved this by having a condition in the sdk where if an experiment has a name but no id then it should just use the same name as the id. I'm not sure how to replicate this case but we should for sure do it in the sdk itself in the function which tries to list all experiments.

deep1401 avatar Nov 19 '25 19:11 deep1401

Yeah. Got it. I will make a Fix on the sdk instead of on the UI 🫡

ParamThakkar123 avatar Nov 19 '25 19:11 ParamThakkar123

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests.

:loudspeaker: Thoughts on this report? Let us know!

codecov-commenter avatar Dec 13 '25 14:12 codecov-commenter

This sort of breaks a rule about side effects on get calls (generally try to avoid doing writes/updates etc. inside of a call that you don't expect to change the system). But I guess it's OK because it fixes a thing and should be faster going forward.

But I don't understand why the build is failing like that. Is it because you are changing the one pyproject.toml?

dadmobile avatar Dec 19 '25 21:12 dadmobile