rest-assured icon indicating copy to clipboard operation
rest-assured copied to clipboard

SVG file upload - fatal error :1:1: content is not allowed in prolog

Open twodulls opened this issue 1 year ago • 2 comments

I call the API to upload the SVG file as follows: RestAssured(5.3.1)

given()
.multiPart("files", file, mimeType)
.when()
.post("/contents/upload")
.then()
.extract().response();

The test succeeds however it logs the following to console:

[Fatal Error] :1:1: Content is not allowed in prolog.

The File upload was successful and the image nothing wrong. I want to know why an error occurred.

thanks

twodulls avatar Jul 26 '23 07:07 twodulls

I'm having the same problem - multipart request with a perfectly fine and valid XML file logs that error. Did you find a solution?

TheConen avatar Sep 20 '23 18:09 TheConen

I've added fix for this issue.

beng9re avatar Mar 23 '24 12:03 beng9re