How can I resolve the issue of being unable to utilize the codegen auto-generated AppSync API code in my Amplify Angular application? #367
saidberk27
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am relatively new to AWS and Angular development. I am currently working on a project where AWS IoT sends data to a specific topic, which triggers a Lambda function. This Lambda function then stores the data in DynamoDB, and my AppSync API reads from this DynamoDB table.
Objective:
My goal is to create a real-time IoT web application. Specifically, I want to frequently check DynamoDB for any updates, as I expect changes to occur approximately six times per minute due to the IoT device's activity.
Current Progress:
I have tested my AppSync API, and it successfully reacts to new data published to the IoT channel. I can see the newly added item's partition key (though not the full data), indicating that the API is responsive to IoT events.
Issue:
I am encountering difficulties when attempting to integrate this API with my Angular 18 application, which is built using AWS Amplify.
I have followed the documentation to configure my application, as shown below:
Subsequently, I used the codegen feature to generate a service file for my API.
I then created a basic Angular component to interact with this API:
When I try to interact somehow with API service functions, I get validation errors. for example when I click List IoT Tests button I get two errors.
and
FYI: I am running on localhost currently
Beta Was this translation helpful? Give feedback.
All reactions