-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alipay.open.file.upload上传超出限制 #130
Comments
请问你上传的文件名后缀是那种类型的? |
https://github.com/alipay/alipay-sdk-nodejs-all?tab=readme-ov-file#%E4%BD%BF%E7%94%A8-alipayformdata-%E8%A1%A8%E5%8D%95%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6 @gwwnha 可以试试最新版本,走 curl 接口上传,我测试了一下支付宝 openapi v3 协议是不会出现这个问题的。 |
定位到了问题,需要 sdk 设置 content-length 在请求 header 里面。这个会在 alipay-sdk@4 版本修复。 |
fengmk2
added a commit
that referenced
this issue
Jun 5, 2024
fengmk2
added a commit
that referenced
this issue
Jun 6, 2024
避开 OpenAPI 接入层的 chunk 数量限制 基于 node-modules/formstream#26 实现 closes #130
#134 会修复此问题 |
fengmk2
added a commit
that referenced
this issue
Jun 6, 2024
fix: 设置文件上传分片 chunk 最小为 2MB, 避开 OpenAPI 接入层的 chunk 数量限制 基于 node-modules/formstream#26 实现 closes #130 closes #135
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
调用alipaySdk.exec('alipay.open.file.upload', ....),没有经过nginx。
待上传文件大概150M左右,方法报错如下:
\r\n' +AlipayRequestError: HTTP 请求错误, status: 413
The text was updated successfully, but these errors were encountered: