Open edgBR opened 3 years ago
Sorry about that. Currently the Data
parameter expects a binary object, e.g. charToRaw(random_user)
, but we'll try to fix it so it works like the Python SDK. The update won't be on CRAN for a couple weeks though because we just updated and we're limited to one update every 30 days.
Hi @davidkretch,
I think unifiying the working way towards boto3 will help a lot and will also increase the adaptation of paws.
Do you have a list of which methods of paws are expecting a binary object?
BR /Edgar
There is unfortunately not a list of methods that expect a binary object. Paws is generated from AWS's own API definitions, and it is whenever they expect a binary object. For example, in Kinesis's put_record
operation, the documentation states:
"The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size."
Python's SDK is obviously being more helpful in this case, in that you don't have to provide the blob yourself. We'll need to look into what Python is doing -- different services might have different needs. S3 for example has similar requirements, but in that case Paws has a custom way of handling them that is particular to S3.
Dear colleagues,
I am trying to run an Rscript in an EC2 instance that I am using as producer.
The code is as follows and is based in the ML specialist cloud guru code (https://github.com/ACloudGuru-Resources/Course_AWS_Certified_Machine_Learning/blob/master/Chapter3/put-record-python-program.py):
However I am getting the following error:
Looking to the second line of error makes me wonder if I need an intermediate file for doing this operation. I have tried also to use jsonlite::base64_enc but it also does not work.
Could someone point out what are the issues here?
Attaching sessionInfo: