Linkedin v2矢量资产上传错误400 [英] Linkedin v2 vector asset upload error 400

查看:59
本文介绍了Linkedin v2矢量资产上传错误400的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,每个遭受Microsoft LI v2迁移困扰的人.

Hello everyone who suffering from Microsoft LI v2 migration.

我对带有矢量资产(图像)的UGC有问题,它基于

I have issue with UGC with vector asset (image), it's based on https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/vector-asset-api#upload-the-asset

我从第一个查询获得了uploadUrl,当我执行第二个查询时,它给了我错误400.当我尝试调试并进行URL调试时(根据他们的示例),最后一条日志行:

I have uploadUrl from the first query, and when i perform second query it gives me error 400. When i try to debug and cURL it (according to their example), the last log lines:

> Content-Length: 1636960
>
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
* We are completely uploaded and fine

* TLSv1.2 (IN), TLS alert, Client hello (1):
* Unexpected EOF
* Closing connection 0
curl: (56) Unexpected EOF

在第一个查询( registerUpload )中,我没有从第一个查询获得的标头:

In the first query(registerUpload), I don't have desired headers from the first query:

-H "x-amz-server-side-encryption:aws:kms"
-H "x-amz-server-side-encryption-aws-kms-key-id:e10ace24-blah-4977-bar-89foo193e2ab"

有没有人在上传矢量资产方面运气好?

Anyone had any luck with vector asset upload ?

推荐答案

此问题通过添加'Accept'=>来解决.'*/*'(我尝试过不使用它,但它不起作用)并将请求设置为 multipart (红宝石 Faraday gem)

It was solved by adding 'Accept' => '*/*'(i experimented without it and it did not worked) and set request to multipart (ruby Faraday gem)

这篇关于Linkedin v2矢量资产上传错误400的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆