Repository navigation
fix(api): refused device proofs and source map upload races stay off error tracking - #3237
Conversation
… off error tracking A replayed or otherwise refused DPoP proof, and a rejected device token, are always answered as a 401, so the api now lists them with its other errors answered as 4xx and their spans export Ok. Two uploads of the same source map racing between the read and the insert made Postgres raise a unique violation, which marked the database span Error even though the retry then replaced the winner's row. The insert now skips the conflict and the upload runs its write again.
Maple review🟢 Confidence 10/10 · safe to merge. Contained change: error tags verified against the classes, and the upload race is pinned by a test that fails if the conflict stops being absorbed. Adds the api's device-auth refusals to its anticipated 4xx list, and replaces the source map upload's retry-on-unique-violation with
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Maple: after this shipped✅ Shipped clean. Nothing this change touches got worse in the hour after it deployed. Deployed at 2026-12-03 12:24 UTC as
Details are in Maple. A public repository's comment names no service, operation or error. |
Error triage sweep 2026-12-03, api area.
Fixed
05cc7b06DpopProofRejected "The proof jti was already used.": a refused DPoP proof (and a rejected device token) is always answered as a 401, but the inner span exported Error. Both are now in the api's anticipated 4xx list;worker-bridge.test.tscovers them.10aa60e0DatabaseError duplicate key onsource_map_files_org_release_path_idx: two uploads of the same map raced between the read and the insert. The retry already replaced the winner's row (all 147 uploads in the sample succeeded), but the unique violation marked the database span Error. The insert now usesON CONFLICT DO NOTHINGand the upload runs its write once more when no row comes back. The race test now lands the winner between the read and the insert and asserts no statement fails.Already fixed on main
1a1581f3,781f9a66,e699fcd0productEventsPaths 409 "Unable to resolve resources in query": fixed by fix: run_sql semicolons in strings, Paths 409, raw-SQL alert preview for SQL users #3148 (merged 11-30 00:02 UTC). The last event was 11-29 18:00.82be4c5c(iOS "device credential not registered"),5c071508,316ca588,ac8f140a("API route failing for everyone" on/v2/device_credentials/*and/v2/services): one iOS user whose org lives in the EU region, on build 1584, was sending requests to the US host, which answered 403 wrong-region. Other users got 200s on these routes. Fixed by fix(ios): follow a wrong-region refusal to the organization's region #3169 (the client follows the refusal to the right region), which reaches users with the next App Store build.Dismissed
ecd4ba4dWarehouseConfigError "Resource 'person_properties' not found" (332) and18509229WarehouseSchemaDriftError onservice_platforms_hourly: both came from the 11-24 rollout window, when code that read the new datasource and columns was live before the warehouse deploy landed. No events since 11-24 20:28.59c8643eWarehouseUpstreamError 520 onaudit_loginserts: transient upstream 520s. The queue retried them and every batch ended Ok.afd71516QueryEngineTimeoutError: one 30s timeout on 11-25, nothing since.40963d6f,0dd59e2fchat history 503: the chat session call in the ai worker failed during a deploy (11-24..11-26). Nothing since, and the ai side owns the cause.8aec7da0POST /v2/share/og-meta 400: three requests from curl, someone testing by hand.80600c85Integration connect failed: one Search Console connect where the user did not grant the Search Console scope. The rule worked as intended.Left in todo
a16d89e6usersRecentFloor hit its 20s client timeout once (p50 138ms, p99 6s over 136 runs). A change needsbench:queriesagainst a large org first.b1f5848eiOS "No such alert incident.": the app opened an incident push, switched org, then fetched the incident with the previous org's token and got a 404. The fix belongs in the iOS app (token refresh afterselect), not the API.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit