Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting SerializationError when using SimpleDB #538

Open
pedroteles17 opened this issue Sep 19, 2022 · 3 comments
Open

Getting SerializationError when using SimpleDB #538

pedroteles17 opened this issue Sep 19, 2022 · 3 comments
Labels
bug 🐞 Something isn't working

Comments

@pedroteles17
Copy link

pedroteles17 commented Sep 19, 2022

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()

@davidkretch
Copy link
Member

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

@davidkretch davidkretch added the bug 🐞 Something isn't working label Sep 20, 2022
@davidkretch
Copy link
Member

davidkretch commented Sep 20, 2022

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
Copy link
Member

davidkretch commented Sep 20, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants