jnawk / aws-electron

Access the AWS Console using Access Keys and assumed roles.
ISC License
9 stars 3 forks source link

App fails to launch when there are no aws credentials #111

Closed tdq132 closed 1 month ago

tdq132 commented 1 month ago

App is failing to retrieve config, and failing to chmod the credentials file which also doesn't exist.

➜  Downloads ./aws-console-4.1.0.AppImage 
(node:3897801) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, chmod '/home/thomas/.config/aws-console/settings.json'
    at async Module.chmod (node:internal/fs/promises:1085:10)
(Use `aws-console --trace-warnings ...` to show where the warning was created)
(node:3897801) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
Error occurred in handler for 'getConfig': [Error: ENOENT: no such file or directory, open '/home/thomas/.aws/credentials'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/thomas/.aws/credentials'
}
jnawk commented 1 month ago

fixed.