Add detailed errors for unsupported label uploading to frigate+ #9775
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I ran into #8961 recently when I was getting started with Frigate+. Some of my uploads were initially getting stuck in this "Uploading..." state. I realized soon after that some of my labels weren't supported by Frigate+
Not sure if I should be targeting dev with this PR given that these are changes to "web-old". Also not sure if this issue has already been resolved in the new 0.14 UI!
Current upload error behaviour:
![image](https://private-user-images.githubusercontent.com/62088388/303812129-97e7cada-14c4-45eb-af68-379b883228dd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNzMwNTcsIm5iZiI6MTcyNTA3Mjc1NywicGF0aCI6Ii82MjA4ODM4OC8zMDM4MTIxMjktOTdlN2NhZGEtMTRjNC00NWViLWFmNjgtMzc5Yjg4MzIyOGRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMxVDAyNTIzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU2YWNjZTY1OWQwMDZkNTBhZDc5MjkyYTJjMTc4MmQ5MjU1MmU5Y2E5NDExOTc4NGQxNDJmYjQwMjc5MWNlYjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0MmbduUDB-tlCsAVVdcKDgLUrs2leJM5gtMfUbl9Lfo)
Proposed unsupported label error:
![Screenshot 2024-02-10 at 12 16 29 AM](https://private-user-images.githubusercontent.com/62088388/303813592-3e96d662-dc22-42ed-acce-7b898b5b16fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNzMwNTcsIm5iZiI6MTcyNTA3Mjc1NywicGF0aCI6Ii82MjA4ODM4OC8zMDM4MTM1OTItM2U5NmQ2NjItZGMyMi00MmVkLWFjY2UtN2I4OThiNWIxNmZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMxVDAyNTIzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViNWFlYWU4YjQ2ZTg4MjQxZmNlYzkxMmY3NDA5NzZjMmQyMTMzNzlhZjFlYzRkYWE0Zjg0YTIwODIyNWMwN2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Y9GphPsn56XbBs8k13qRKQSl5wxbAe0Q7uCh5Ztf7bU)
Proposed generic upload error:
![Screenshot 2024-02-09 at 11 18 05 PM](https://private-user-images.githubusercontent.com/62088388/303811993-42d82009-3fe5-4159-a4e9-d62f3c1c2ac4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNzMwNTcsIm5iZiI6MTcyNTA3Mjc1NywicGF0aCI6Ii82MjA4ODM4OC8zMDM4MTE5OTMtNDJkODIwMDktM2ZlNS00MTU5LWE0ZTktZDYyZjNjMWMyYWM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMxVDAyNTIzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5ODY5MmFjNTc4NzhmZjBkZGU0NmRlOGI2NTUwODY1ODA2Y2ViODBmOWE4NDhiZTA0NGI2NGM2OTQ2YjVmZjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0COzUsybyhZAz0FtHTa-OsAPhb0Xq67SJjN0uXhpB-k)