You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a TypeScript SDK using the CLI and the example "smithy-typescript-example-client" described in this readme. However, when trying to call any of the methods on my SDK the code throws a No supported protocol was found error.
Upon inspection I can see that the generated serialise/deserialise methods have this behaviour, looking this string in this repository I can see a protocol generator has to be implemented.
I haven't been able to find any working examples for a smithy_build.json that configure such a protocol generator. Am I missing something? Various blogs and examples mention working clients using the gradle build system, is it even possible to generate a working client using the CLI alone?
Any feedback appreciated! I would love to sell the folks at my company on Smithy but so far it's been tough going.
Using smithy cli version 1.42.0 using the generated sample:
smithy init -o smithy-typescript-example-client
cd smithy-typescript-example-client/
with the modifications as mentioned in the readme.
The text was updated successfully, but these errors were encountered:
Note: AWS SDK for JavaScript v3, a customer of Smithy TypeScript, implements the AWS protocols and can be consumed by adding the software.amazon.smithy.typescript:smithy-aws-typescript-codegen package.
The gradle example also contains this code-gen, but the typescript-cli sample omits this. My full config had to contain these additional dependencies:
Hi,
I'm trying to build a TypeScript SDK using the CLI and the example "smithy-typescript-example-client" described in this readme. However, when trying to call any of the methods on my SDK the code throws a
No supported protocol was found
error.Upon inspection I can see that the generated serialise/deserialise methods have this behaviour, looking this string in this repository I can see a protocol generator has to be implemented.
I haven't been able to find any working examples for a smithy_build.json that configure such a protocol generator. Am I missing something? Various blogs and examples mention working clients using the gradle build system, is it even possible to generate a working client using the CLI alone?
Any feedback appreciated! I would love to sell the folks at my company on Smithy but so far it's been tough going.
Using smithy cli version 1.42.0 using the generated sample:
with the modifications as mentioned in the readme.
The text was updated successfully, but these errors were encountered: