Hello everyone who suffering from Microsoft LI v2 migration.
I have issue with UGC with vector asset (image), it's based on https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/vector-asset-api#upload-the-asset
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
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 ?
It was solved by adding 'Accept' => '*/*'
(i experimented without it and it did not worked) and set request to multipart
(ruby Faraday
gem)