fix: add --http1.1 to MI curl upload to prevent HTTP/2 stream error (exit 92)
这个提交包含在:
父节点
f977934f5a
当前提交
8443af4818
@ -976,10 +976,11 @@ public class StoreSubmissionService {
|
|||||||
|
|
||||||
// Use curl ProcessBuilder: MI API server drops large multipart body with RestTemplate.
|
// Use curl ProcessBuilder: MI API server drops large multipart body with RestTemplate.
|
||||||
// curl sends Expect:100-continue which bypasses the server-side body timeout.
|
// curl sends Expect:100-continue which bypasses the server-side body timeout.
|
||||||
|
// --http1.1: MI API has HTTP/2 stream framing issues (curl exit 92); force HTTP/1.1.
|
||||||
String requestDataJson = asJsonString(requestData);
|
String requestDataJson = asJsonString(requestData);
|
||||||
String sigJson = rsaEncryptHexChunked(asJsonString(sig), publicKey);
|
String sigJson = rsaEncryptHexChunked(asJsonString(sig), publicKey);
|
||||||
ProcessBuilder pb = new ProcessBuilder(
|
ProcessBuilder pb = new ProcessBuilder(
|
||||||
"curl", "-s", "--connect-timeout", "30",
|
"curl", "-s", "--http1.1", "--connect-timeout", "30",
|
||||||
"--max-time", String.valueOf(130 * 60),
|
"--max-time", String.valueOf(130 * 60),
|
||||||
"-F", "apk=@" + apkFile.getAbsolutePath(),
|
"-F", "apk=@" + apkFile.getAbsolutePath(),
|
||||||
"-F", "RequestData=" + requestDataJson,
|
"-F", "RequestData=" + requestDataJson,
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户