Skip to content
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

Notification bell w AWS credentials error #65

Closed
wants to merge 13 commits into from
Closed

Conversation

aditya161216
Copy link
Contributor

Frontend is set up, but is unable to pull notifications from backend. Manually tested endpoint using Postman and it gives this error:

Error: connect EHOSTUNREACH 169.254.169.254:80 - Local (10.110.137.95:58414)
at internalConnect (node:net:1115:16)
at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)
at node:net:1353:9
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
message: 'Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1',
errno: -65,
code: 'CredentialsError',
syscall: 'connect',
address: '169.254.169.254',
port: 80,
time: 2025-01-22T23:46:52.174Z,
originalError: {
message: 'Could not load credentials from any providers',
errno: -65,
code: 'CredentialsError',
syscall: 'connect',
address: '169.254.169.254',
port: 80,
time: 2025-01-22T23:46:52.174Z,
originalError: {
message: 'EC2 Metadata roleName request returned error',
errno: -65,
code: 'EHOSTUNREACH',
syscall: 'connect',
address: '169.254.169.254',
port: 80,
time: 2025-01-22T23:46:52.174Z,
originalError: [Object]
}
}
}
[Nest] 44893 - 01/22/2025, 6:46:52 PM ERROR [ExceptionsHandler] Failed to retrieve notifications.
Error: Failed to retrieve notifications.
at NotificationService.getNotificationByUserId (/Users/adityavikrant/bcan/backend/dist/notifications/notifcation.service.js:86:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async NotificationController.findByUser (/Users/adityavikrant/bcan/backend/dist/notifications/notification.controller.js:35:16)
at async /Users/adityavikrant/bcan/backend/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /Users/adityavikrant/bcan/backend/node_modules/@nestjs/core/router/router-proxy.js:9:17

@jarenadams21
Copy link
Collaborator

Forced push already; offline work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants