cancel
Showing results for 
Search instead for 
Did you mean: 

How to set HTTP Request Multipart, getting Internal error

vojtech_kozubik
Level 3

Hi,

can somebody please help with settings of HTTP Request Multipart? Have this request in Postman:

POST /api/v1/import/archive/contract HTTP/1.1
Host: teliacompany-test.arkinet.se
Authorization: Bearer TOKEN
Content-Length: 885
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="metadata"
Content-Type: application/json;charset=utf-8

{
"signDateTime": "2025-03-29T21:09:35.007Z",
"transferDate": "2025-03-29",
"countryCode": "SE",
"customerId": "custID",
"propertyName": "HÄFTAPPARATEN 2",
"system": "oppenfiberse",
"documentType": "fiber_agreement",
"note": "",
"objects": [
{
"product": "broadband_fiber"
}
],
"customerDetails": {
"customerType": "consumer",
"name": "testname"
},
"leavingDetails": {
"customerType": "consumer"
},
"files": [
{
"filename": "2025-03-20.pdf"
}
]
}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="2025-03-20.pdf"; filename="/C:/Users/username/Downloads/2025-03-20.pdf"
Content-Type: application/pdf

(data)
------WebKitFormBoundary7MA4YWxkTrZu0gW--

 

in BP I have set this:

vojtech_kozubik_0-1743663373368.pngvojtech_kozubik_1-1743663522272.png

But still getting error message ERROR: Internal : Could not execute code stage because exception thrown by code stage: One or more errors occurred.

Can you help me with the setting of the multipart action?

Thanks a lot.

1 BEST ANSWER

Helpful Answers

vojtech_kozubik
Level 3

I codded my own code stage which fit to my HTTP request, so no need another solution anymore.

View answer in original post

1 REPLY 1

vojtech_kozubik
Level 3

I codded my own code stage which fit to my HTTP request, so no need another solution anymore.