fix: truncate multifolder detection input ID to comply with 48-char limit#154
Open
Alfrick wants to merge 1 commit intoClarifai:mainfrom
Open
fix: truncate multifolder detection input ID to comply with 48-char limit#154Alfrick wants to merge 1 commit intoClarifai:mainfrom
Alfrick wants to merge 1 commit intoClarifai:mainfrom
Conversation
…limit The SDK prepends '<dataset_id>-' to the input ID, so long MD5 filenames caused all uploads to fail with INPUT_INVALID_REQUEST. Truncating id_str to 16 characters keeps the full ID well within the 48-character limit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
luv-bansal
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
MultiFolderDetectionDataLoadergenerates input IDs from image filenames (32-char MD5 hashes)<dataset_id>-to each input ID before uploading, pushing the total length beyond the 48-character API limitINPUT_INVALID_REQUEST: id must be between 1 and 48 characters longid_strto 16 characters, keeping the final ID well within the 48-char limit for any reasonable dataset ID nameTest plan
detection_dataset)INPUT_INVALID_REQUESTerrors🤖 Generated with Claude Code