Calling Connector "Amazon S3 : Upload file to a bucket" , Getting "Malformed object at 1, <S..." error

697 views
Skip to first unread message

van...@etukusa.com

unread,
Aug 8, 2015, 12:24:23 PM8/8/15
to Fujitsu RunMyProcess Developer Community
Hello,

I am trying to upload one file to Amazon S3 bucket. I am using connector available in RMP Library. Passing input as per mentioned in Connector description.

Please see snapshots for details.

Connector : "Amazon S3 : Upload file to a bucket"
Getting only this in error :"Malformed object at 1, <S..."
Error is not at all helpful.

I am passing below input parameters,

aws = aws access key id (smaller one)
SecretAccessKey = secret access key (bigger one)
ts = ${now("yyyy-MM-dd'T'HH:mm:ss'.000Z'")}
bucket = my_bucket_name
idFile = file_id
size
name
sig = ${hmac("AmazonS3"+"PutObject"+ts,SecretAccessKey)}

Please help me on this. I am lost.

Thanks in advance
Vishal

2.JPG
3.jpg

Bidisha Das

unread,
Aug 8, 2015, 5:22:25 PM8/8/15
to suppor...@runmyprocess.com
Hi,
I guess you are passing some wrong values in the input parameters.The format and the values that needs to be passed are mentioned in the Connector description.You can follow that and pass your own values in the same format.

You can launch the connector individually hardcoding the values and check if its working fine. If not working,do send me the error you are facing and the values you are passing for each input parameter.You may need to change the connector configuration then.


Thanks & Regards
Bidisha

van...@etukusa.com

unread,
Aug 9, 2015, 4:53:09 AM8/9/15
to Fujitsu RunMyProcess Developer Community
Hi Bidisha,

Thanks for your support.

I tried testing connector directly by passing different parameters, but with no success.

Each time getting same old error "Malformed object at 1, <S...".

Can you check whether this connector is working or not.

If not , then how should I proceed.

I need to upload one file to Amazon S3 bucket and get back its uploaded file URL.

Thanks
Vishal

Vishal Anand

unread,
Aug 9, 2015, 4:59:28 AM8/9/15
to Fujitsu RunMyProcess Developer Community
Connector : "Amazon S3 : Upload file to a bucket"
Getting only this in error :"Malformed object at 1, <S..."


I am passing below input parameters,

aws = aws access key id
SecretAccessKey = secret access key
ts = ${now("yyyy-MM-dd'T'HH:mm:ss'.000Z'")}
bucket = my_bucket_name
idFile = picking from upload widget variable
size = ${file_size(idFile)}
name = picking from upload widget variable
sig = ${hmac("AmazonS3"+"PutObject"+ts,SecretAccessKey)}



Inline image 1

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/VWLc9nnMT9I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/e532e0b0-fa76-4e8f-a261-b1b8ac2a2ac0%40runmyprocess.com.

Bidisha Das

unread,
Aug 9, 2015, 2:45:13 PM8/9/15
to suppor...@runmyprocess.com
Hi Vishal,
I guess something is wrong with the "sig" parameter you are passing. You can try creating a parameter with the following value:
<#assign my_pram = "AmazonS3"+"PutObject"+ts>

then call the function in the following way:${hmac(my_param,SecretAccessKey)}

You can refer to: http://www.freeformatter.com/hmac-generator.html for testing the hmac output.

Thanks & Regards
Bidisha

Vishal Anand

unread,
Aug 10, 2015, 3:54:57 AM8/10/15
to Fujitsu RunMyProcess Developer Community
Hi Bidisha,


The HMAC getting generated is always different when we compare RMP with FreeFormatterHmacGenerator tool.

I tried testing Connector directly using HMAC generated via FreeFormatterHmacGenerator tool also , but I got same error. No change in error.

Can you check is this connector still working for other projects/customers ?

Is this connector sends authorization part correctly as expected by Amazon S3 API ?

See snapshots for reference.


Thanks
Vishal

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/VWLc9nnMT9I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
1.JPG
2.JPG

Pankaj Kumar

unread,
Aug 10, 2015, 5:42:30 AM8/10/15
to Fujitsu RunMyProcess Developer Community, Vishal Anand
Hi Vishal,

Connector "Amazon S3 : Upload file to a bucket" is not working due to the update in the Amazon API. you need to create your custom connector for the same.

Please refer to the below link for the API details in order to create your custom connector :-


Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
Reply all
Reply to author
Forward
0 new messages