paws icon indicating copy to clipboard operation
paws copied to clipboard

Getting SerializationError when using SimpleDB

Open pedroteles17 opened this issue 3 years ago • 3 comments

Hi!

I'm trying to use paws to connect to a SimpleDB. However, when I run the R code below, I get the following error message:

Error: SerializationError (HTTP 401). failed to decode query XML error response

I'm running R 4.2.1 and have just installed paws. Also, my credentials work perfectly on Python boto3.

What should I do?

Thanks!

svc <- simpledb(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "my_acess_key",
        secret_access_key = "my_secret_access_key "
      )
    ),
    region = "sa-east-1"
  )
)

svc$list_domains()

pedroteles17 avatar Sep 19 '22 18:09 pedroteles17

I get this too. It is a bug. Sorry about that. We will look into it.

davidkretch avatar Sep 20 '22 22:09 davidkretch

Investigation notes:

  • When I run svc$list_domains in the debugger and look at the response body, I get <Code>AuthFailure</Code><Message>AWS was not able to authenticate the request: access credentials are missing</Message>.
  • This implies to me that SimpleDB either needs custom code to supply the credentials, and cannot rely solely on the query protocol handlers and v2 signer, OR the v2 signer is broken.
  • The only services that use the v2 signer are SimpleDB and ImportExport.
  • Not able to get ImportExport to work -- requests take a long time. Would seem to indicate the signing works though.

davidkretch avatar Sep 20 '22 22:09 davidkretch

Hello @pedroteles17,

Is this an existing SimpleDB you are connecting to, or are you building something new with SimpleDB? If the latter and you want a quick solution, could you use a different service like DynamoDB that Paws supports better?

davidkretch avatar Sep 20 '22 23:09 davidkretch