Page MenuHomePhabricator

[keyserver] remove duplicate content-type application/json header in call to assignBlobHolder
ClosedPublic

Authored by will on Fri, Dec 6, 5:46 PM.
Tags
None
Referenced Files
F3448631: D14091.id46255.diff
Thu, Dec 12, 2:42 AM
F3448588: D14091.diff
Thu, Dec 12, 2:35 AM
F3448576: D14091.id46247.diff
Thu, Dec 12, 2:26 AM
F3448515: D14091.diff
Thu, Dec 12, 12:42 AM
F3446958: D14091.diff
Wed, Dec 11, 12:33 PM
Subscribers

Details

Summary

Remove duplicate content type header in assign blob holder request to blob service.

In testing my farcaster bot, calls to createOrUpdatePublicLink were failing as it would eventually call assignBlobHolder with two duplicate content-type headers, resulting in a 400 Bad Request from the blob service.

We can fix this by specifying createRequestHeaders's includeContentType parameter as false

Linear Issue: https://linear.app/comm/issue/ENG-9986/running-into-an-issue-of-createorupdatepubliclink-failing-to-upload-a

Test Plan

In applying this change, the farcaster bot properly was able to upload invite link blobs without errors

Diff Detail

Repository
rCOMM Comm
Branch
fix_blob_assign_holder
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will retitled this revision from [keyserver] remove duplicate content-type application/json header in call to assign blob holder to [keyserver] remove duplicate content-type application/json header in call to assignBlobHolder.Fri, Dec 6, 5:56 PM
will retitled this revision from [keyserver] remove duplicate content-type application/json header in call to assignBlobHolder to [keyserver] remove duplicate content-type application/json header in assignBlobHolder.
will retitled this revision from [keyserver] remove duplicate content-type application/json header in assignBlobHolder to [keyserver] remove duplicate content-type application/json header in call to assignBlobHolder.
will requested review of this revision.Fri, Dec 6, 6:05 PM
This revision is now accepted and ready to land.Fri, Dec 6, 6:53 PM