Page MenuHomePhabricator

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

Authored by will on Dec 6 2024, 5:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 17 2025, 7:40 PM
Unknown Object (File)
Mar 15 2025, 1:40 AM
Unknown Object (File)
Mar 15 2025, 1:40 AM
Unknown Object (File)
Mar 15 2025, 1:40 AM
Unknown Object (File)
Mar 15 2025, 1:40 AM
Unknown Object (File)
Mar 14 2025, 4:10 AM
Unknown Object (File)
Mar 14 2025, 4:06 AM
Unknown Object (File)
Mar 11 2025, 3:51 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.Dec 6 2024, 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.Dec 6 2024, 6:05 PM
This revision is now accepted and ready to land.Dec 6 2024, 6:53 PM