Skip to content

Node application not making get requests to third party services

0

I have deployed an node-expressJs app on aws-amplify that collects data through get requests to third party services. Following are the issues.

  1. Trying to tail the logs in cloudWatch however the cloud watch is only showing app deployment logs. I did make sure I am following correct steps to tail the logs. Since I don't see the logs I can not debug the issue,
  2. From the outset the app should make get calls and consume data which is accessed through the api calls which are showing empty data.

Since the data is not visible on the front end and logs are not accessible I can't really debug the issue. Am I missing something here?

1 Answer
0

Hi

Check these steps try to resolve issue hope it helps:

Check Log Retention: Verify that your CloudWatch Log Group's retention policy is set to an appropriate value. If the logs are being deleted after a short period, you might not be able to see recent entries.

Consider Log Filtering: If you're dealing with a large volume of logs, consider using CloudWatch Log Filters to narrow down the logs to relevant entries. This can help you identify specific error messages or information.

Empty Data from API Calls:

Inspect API Responses: Use tools like Postman or curl to directly call the third-party APIs and inspect their responses. Verify if the data is being returned correctly.

Check Network Traffic: Analyze your application's network traffic using browser developer tools or network monitoring tools. Look for any errors or unexpected behavior during the API calls.

Review API Key/Authentication: Ensure that your application is using the correct API key or authentication credentials to access the third-party services.

For more details refer below document links

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.