on 2020 Jul 17 3:23 PM
Hi,
We're trying to push a file into AWS s3 bucket using REST API. The message is successful if the payload has only one line. But when we try to push an actual file, we get a HTTP 400 Error. We narrowed down the issue to the occurrence of the new line character. I followed Rajesh's blog to cover the basics - https://blogs.sap.com/2019/05/31/integrating-amazon-simple-storage-service-amazon-s3-and-sap-ecc-v6....
In my case, the source file is a csv, which is then concatenated into a single string to be sent into the payload. These are my configurations.
My payload gets transformed from
<root>
<record>
<text>This,is,line,number,1</text>
</record>
<record>
<text>This,is,line,number,2</text>
</record>
<record>
<text>This,is,line,number,3</text>
</record>
</root>
to
<root>
<record>
<text>This,is,line,number,1
This,is,line,number,2
This,is,line,number,3 </text>
</record>
</root>
This works if I have one single record only. Any pointers would be greatly appreciated.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
User | Count |
---|---|
59 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.