acoustic-carpenter-78188
09/21/2023, 11:54 AMError: failed to upload source code from [/tmp/flyte/pb_output/fast1ac88c953907bcb2a3ca7a6377277465.tar.gz]. Error: failed uploading to [<blob-location>]. bad status: 400 An HTTP header that's mandatory for this request is not specified.: <?xml version="1.0" encoding="utf-8"?>
<Error><Code>MissingRequiredHeader</Code><Message>An HTTP header that's mandatory for this request is not specified.
RequestId:d7bbcada-101e-0025-4281-ecea10000000
Time:2023-09-21T11:46:16.3019574Z</Message><HeaderName>x-ms-blob-type</HeaderName></Error>
{"json":{},"level":"error","msg":"failed to upload source code from [/tmp/flyte/pb_output/fast1ac88c953907bcb2a3ca7a6377277465.tar.gz]. Error: failed uploading to [<blob-location>]. bad status: 400 An HTTP header that's mandatory for this request is not specified.: \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cError\u003e\u003cCode\u003eMissingRequiredHeader\u003c/Code\u003e\u003cMessage\u003eAn HTTP header that\u0026apos;s mandatory for this request is not specified.\nRequestId:d7bbcada-101e-0025-4281-ecea10000000\nTime:2023-09-21T11:46:16.3019574Z\u003c/Message\u003e\u003cHeaderName\u003ex-ms-blob-type\u003c/HeaderName\u003e\u003c/Error\u003e","ts":"2023-09-21T11:46:16Z"}
In the error message it explains the issue which is a missing header. Added the header to the request and updated response check to accept 201 as a successful http response type.
Tracking Issue
NA
Follow-up issue
NA
flyteorg/flytectl
DCO: DCO
✅ 1 other check has passed
1/2 successful checks