- Newest
- Most votes
- Most comments
Verify Amplify Deployment: Ensure that your recent changes, including the addition of the new API in the amplifyconfiguration.json file, have been successfully deployed. You mentioned that you have connected GitHub to Amplify for CI/CD. Double-check your deployment logs on the Amplify console to confirm that the changes have been picked up and deployed correctly.
Check Amplify Environment: Make sure you're using the correct Amplify environment. Sometimes, if you're using different environments (e.g., development, staging, production), the configuration might be different in each environment. Verify that the API configuration exists in the correct environment.
Amplify CLI: If you suspect that the configuration might not have been updated properly on the Amplify backend, you can try using the Amplify CLI to manually push the changes. Run amplify push in your project directory to ensure that the latest configuration is deployed.
Clear Cache: Sometimes, caching issues can cause problems with the updated configuration not being recognized. Try clearing your browser cache or using a private browsing window to see if the issue persists.
Check API Name: Ensure that the API name you're using in your code matches exactly with the name specified in the amplifyconfiguration.json file. Even a minor difference can cause the "InvalidApiName" error.
Verify API Gateway Setup: Double-check the setup of your new API in the AWS API Gateway console. Make sure that the API is deployed and accessible, and that there are no issues with permissions or configurations on the AWS side.
By following these steps, you should be able to identify and resolve the issue with accessing your newly added API in your React Amplify app. If the problem persists, feel free to provide more details, and I can assist you further!
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 4 years ago
