-
Notifications
You must be signed in to change notification settings - Fork 101
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
apigateway client :embed ["methods"] doesn't work #206
Comments
I'm a little unclear what to do here. I could try to fix it myself, but your README.md says you don't accept pull requests. Do you actively address bugs like these on your own or am I better off just forking and maintaining my own version? |
Checking back if anyone has had a look? |
Hi @mtwomey. Haven't had a chance to look at this yet. We do maintain this library, but don't have enough bandwidth to keep on top of everything. We're working on that! At quick glance, the content-type returned from AWS is "application/hal+json", and aws-api is parsing it accordingly, but I need to look closer at what's in the original body and what aws-api is doing with it. I'll follow up as I learn things. |
I started to look a little deeper and the json payload AWS sends back has keys like |
Found the issue. The problem was that we interpreted #30 incorrectly and tried to solve for parsing HAL instead of recognizing that we should not be receiving HAL at all. There are no instructions for processing HAL in the service descriptions and, as it turns out, AWS will send us json that parses correctly if we ask it to (accept header). Release with fix forthcoming. |
Fixed in aws-api-0.5.561 |
Awesome! Thanks so much @dchelimsky !!! |
When making a basic apigateway request, the
:embed
keyword doesn't cause the client to return the embedded values:Adding this parameter is supposed to enrich the returned data with method detail on each resource. The request succeeds, but only the "un-enriched" data is returned (as if the
embed
parameter was not used).By comparison, this works fine with the AWS command-line client:
Note: I believe this issue makes it impossible to retrieve api-gateway method detail using this cognitect library as this is the only way to do it.
The text was updated successfully, but these errors were encountered: