I am trying to deploy Metadata on Salesforce using REST api. Here is my request:
POST https://myorg-dev-ed.my.salesforce.com/services/data/v55.0/metadata/deployRequest
headers :
{Authorization: "Bearer 00D...", "Content-Type": "multipart/form-data; boundary=--------------------------BOUNDARY"}
----------------------------BOUNDARY
Content-Disposition: form-data; name="json"; Content-Type: application/json
{
"deployOptions":
{
"allowMissingFiles": false,
"autoUpdatePackage": false,
"checkOnly": false,
"ignoreWarnings": false,
"performRetrieve": false,
"purgeOnDelete": false,
"rollbackOnError": false,
"runTests": null,
"singlePackage": true,
"testLevel": "RunAllTestsInOrg"
}
}
----------------------------BOUNDARY
Content-Disposition: form-data; name="file"; filename="deploy.zip"
Content-Type: application/zip
UEsDBBQAAAAAAIxYMFUAAAAAAAAAAAAAAAAHACAAZGVwbG95L1VUDQAHGTwk
YyI8JGMZPCRjdXgLAAEE9QEAAAQUAAAAUEsDBBQACAAIAJtYMFUAAAAAAAAA
AO8AAAASACAAZGVwbG95L3BhY2thZ2UueG1sVVQNAAc2PCRjNjwkYzY8JGN1
eAsAAQT1AQAABBQAAABtjzEOwjAMRfeeIspOHBAghNKwMVcUDmBa01Y0SUUs
BLcnQMvEYOnbev7fNruH68WdbrELPpdzpaUgX4W6800uT8f9bCN3NjMFVlds
SCTax1y2zMMWIAYcVLyEW0WqCg4WWq9BL8ERY42M0mZCGH4OFN8qaUfunMJs
iT3FArk9kAtMZZeKmFOqgYn5bnh0ZP9Qn/nbHn7+ZvzDrlZKG5i6zMB4vn0B
UEsHCDbrTJymAAAA7wAAAFBLAwQUAAAAAACRWDBVAAAAAAAAAAAAAAAAGgAg
----------------------------BOUNDARY--
NB : I truncated the base64 encoded zip file to simplify the explanation here.
I can't contact Salesforce support service because I am using the Salesforce Developer Edition; it does not offer support.
The API response gives a 500 error :
[{"message":"An unexpected error occurred. Please include this ErrorId if you contact support: 926862273-8617 (-291109249)","errorCode":"UNKNOWN_EXCEPTION"}]
So I have no clue what the problem is. My only guess would be that perhaps the zip, base64-encoded, is in the wrong format. But other than that I really don't know what could be the problem.
Do you have any idea on what the problem is ?
Knowing that I don't have access to customer support, do you know how I could debug that ?