-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Troubles with making PutBot
request (Lex)
#474
Comments
Update4So what aws reported the first time was correct, it needs to have
the command I used was:
now I'm stumped as to why I got the signature error in Update2 this was the change I made btw: https://github.com/ababkin/amazonka/commit/731a47ba47e39bbf72519d979b319a86d44b1d88#diff-1a961fc94b869322fc4283ae0f48746bR223 |
bump, any word on this? I could try fixing it myself but I'd appreciate some guidance on how to go about fixing it |
I suspect #622 has fixed this, as on
Can you please reopen if you don't get any joy? |
Hi
I'm trying to make this request to create a Lex Bot:
https://github.com/brendanhay/amazonka/blob/develop/amazonka-lex-models/gen/Network/AWS/LexModels/PutBot.hs
but getting the following error:
I've inspected my request headers and here is what they look like:
in particular:
So it looks like the endpoint does not like being signed with
models.lex
in the Credential, but wants it to belex
instead.I found
models.lex
in here:https://github.com/brendanhay/amazonka/blob/develop/amazonka-lex-models/gen/Network/AWS/LexModels/Types.hs#L232
So it looks like this drives what is being put into the Credential. I've tried changing it to
lex
, but the trouble is that it also uses that for the host, so it ends up changing the hostmodels.lex.us-east-1.amazonaws.com
->lex.us-east-1.amazonaws.com
, which is no bueno since this host does not even exist.So, to summarize, it looks to me that we need to have
lex
in the Credential, butmodels.lex
in the host.I've tried to look into how other services do this that have a composite name, but they all use dash throughout (e.g.:
waf-regional
) so I suspect it's a new naming scheme for AWS services?Before I try to jump into implementation, can someone confirm?
Thanks
Update:
it looks like there are several services that do use dot
.
in their service prefix, but i guess the host and credential scope are consistent for those.Update2:
I've managed to get the credential scope to change
models.lex
->lex
, but aws did not like it:gives me the error:
Update3
found relevant SO question: https://stackoverflow.com/questions/48007039/invalidsignatureexception-credential-should-be-scoped-to-correct-service-lex#
The text was updated successfully, but these errors were encountered: