-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add support for AWS Rekognition #60
base: master
Are you sure you want to change the base?
Add support for AWS Rekognition #60
Conversation
I don't quite understand what all the modules are. Currently I need to use the |
Types vs types_internal is my fault, try pulling in the latest master and rerunning the generation. It should now generate just See https://github.com/inhabitedtype/ocaml-aws/blob/master/src/aws_gen.ml#L194 |
I've regenerated the files now, What does not work is the generated endpoint Unfortunately when I try it it does not work (and it also looks like the error handling also failed):
HTTP 500 is not much to go about. I'm wondering whether this is due to the URL encoding of slashes in the query params, When I try the same with |
I implemented that bit by hand using |
@Leonidas-from-XIV the endpoint generation has been merged into master, if you want to rebase off that for future work. |
@tmcgilchrist Thanks! I'll take a look when I am back from Berlin. I seem to recall having seen you around here, in such case maybe we can meet for a short chat about ocaml-aws. |
Of course I’m in the OCaml workshop for the afternoon. I’ve got a red
JaneStreet T-shirt.
…On Fri, 23 Aug 2019 at 10:33 am, Marek Kubica ***@***.***> wrote:
@tmcgilchrist <https://github.com/tmcgilchrist> Thanks! I'll take a look
when I am back from Berlin. I seem to recall having seen you around here,
in such case maybe we can meet for a short chat about ocaml-aws.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#60?email_source=notifications&email_token=AABJXOPUADVLMG2FGHQENR3QF6OEBA5CNFSM4IHRH3YKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD47Q4SI#issuecomment-524226121>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABJXONJOUZTCK4ADTUEZEDQF6OEBANCNFSM4IHRH3YA>
.
|
8068bba
to
2977bfe
Compare
2977bfe
to
0ee84a9
Compare
I regenerated the source with the current I fear to get Rekognition going we are going to need to encode the request in the body instead of the query params which is quite a big change. |
Okay so after reaching out to Amazon support, they told me that the Query Parameter encoding is not the way to go and apparently does not work for Rekognition. Therefore we would need to submit the body as JSON at least for Rekognition, but I assume it is the recommended way to do anyway for all services so changing all existing services would probably be the right thing to do. I would suggest making that change (which would match what the Haskell bindings do), what do you think @tmcgilchrist? |
I'm in favour. I wonder what else needs to be modified to submit as a JSON body? Do you have an idea on what else needs changing? |
What needs to be changed:
Overall it is not too complex, but I'll only have time to work on this in a few weeks. |
@Leonidas-from-XIV I might have some time to help with this. Are there any AWS docs that you've referred to on this before? I would imagine UTF8 support for JSON payloads will be extremely important, will we need to bring in any UTF8 support via https://github.com/dbuenzli/uutf or some other lib? |
I don't know if this is the right way to do it but I need to access Rekognition and thought that since the definitions here are auto-generated I can just use the definitions from Botocore to get bindings directly.
The "test suite" is taken directly from the RDS tests for now…