Skip to content

Fix YouTube and multiple upload Error#2

Open
martintony4all wants to merge 9 commits intotapilab:mainfrom
martintony4all:feature/multiple-upload
Open

Fix YouTube and multiple upload Error#2
martintony4all wants to merge 9 commits intotapilab:mainfrom
martintony4all:feature/multiple-upload

Conversation

@martintony4all
Copy link

Summary

Adds ui_search_direct.py - a Streamlit UI that calls Azure APIs directly instead of through Azure Functions. This fixes the "400 Bad Request: property 'id' does not exist" error by automatically detecting the actual key field from the Azure Search index schema.

Problem Solved

  • Azure Function EmbedAndIndex fails when index schema doesn't have id as key field
  • Azure Function TranscribeHttp uses hardcoded Speech API version
  • Blob upload SAS tokens fail due to incorrect string-to-sign format
  • Poor error visibility makes debugging difficult

Solution

  • Auto-fetch index schema to detect correct key field name
  • Call Speech API directly with configurable API version
  • Fixed REST API upload with correct canonicalized resource format
  • Detailed error reporting with schema debugging UI

Testing

  • YouTube URL processing
  • Direct media URL processing
  • File upload with blob storage
  • Batch CSV processing

Copy link
Member

@aronwc aronwc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martintony4all There are a lot of changes here! I'm going to need you to walk me through them. It seems like there might be some code here that duplicates what's already in TranscribeHttp?

Also, I made some changes recently to ui_search.py that you'll need to incorporate.

It may be best to have a separate page like pages/2_upload_videos.py or similar so that this logic is outside of the ui_search.py file.

@martintony4all
Copy link
Author

martintony4all commented Mar 3, 2026

@aronwc The pull request now reflects the new multipage structure with separate page files (2_Upload.py, 3_Manage_Videos.py, 4_System_Diagnostics.py) and shared utils.py, as requested. The merge is complete, and there are no conflicts. Ready for PR review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants