Repository navigation
Conversation
The batch-upload API answers with each URL as it normalised it (trimmed, lower-cased scheme and host, default port dropped, escapes decoded). The uploader keyed its cache and its completion callback on that spelling, so a URL the API rewrote never matched its datapoint: the upload succeeded and the datapoint failed with "One or more required assets failed to upload", on every retry. A submitted URL with no item under its own spelling is now uploaded through the single-URL endpoint, which answers with the file name directly, and a failure is reported under the caller's spelling with its real reason. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Co-Authored-By: lino@rapidata.ai <68745352+LinoGiger@users.noreply.github.com>
⚠ Agent skill not updatedThis PR does not modify Before merging, pick one:
|
This branch has not been deployed
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.
Why
The batch-upload API answers with each URL as it normalised it, and the uploader keyed its cache and its completion callback on that spelling. A URL the API rewrote uploads fine, then its datapoint fails with
One or more required assets failed to upload, andretry()fails the same way every time. On the test environment 6 of 6 valid spellings failed: a trailing newline (a line read from a text file), a trailing space, an upper-case scheme or host,:443, and%2Dfor-.Flow
flowchart LR sdk["BatchAssetUploader._process_single_batch"]:::changed -->|"POST /asset/batch-upload"| asset["asset service"] sdk -->|"GET /asset/batch-upload/{id} (URLs as normalised)"| asset sdk ==>|"POST /asset/url, only for URLs returned under another spelling"| asset sdk -->|"completed URLs, caller's spelling"| ds["RapidataDataset.add_datapoints"] classDef new fill:#d3f9d8,stroke:#2f9e44,color:#000 classDef changed fill:#fff3bf,stroke:#f08c00,color:#000 classDef removed fill:#ffe3e3,stroke:#e03131,color:#000,stroke-dasharray:4Decisions
Verified
Three new tests, two of which fail on
main. On the test environment the same 8-URL job definition (6 rewritten spellings, 1 untouched, 1 rewritten and missing) went from 7 failed datapoints onmainto 7 created, with the missing file reported asThe remote asset could not be retrieved.Agent skill: nothing the skill documents changed, so this needs the
skill-unchanged-approvedlabel.🔗 Session: https://poseidon.rapidata.internal/chat/ves-167c2yznsvyzh9
🤖 Generated with Claude Code