Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

[Chore] Unable to run app using Codespaces Instructions #449

@DanWahlin

Description

@DanWahlin

Are you accessing the project from the GitHub Codespaces?

  • No, I am running the project on my local machine (I will fill in the OS section below)
  • Yes, I am using GitHub Codespaces.

Describe the bug

Not all of the servers start. I'm seeing this in the logs after running npm install && npm start in the codespace:

[services] postgres_setup-1  | PostgreSQL Database restored successfully
[services] postgres_setup-1 exited with code 0
[services] blog-1            | TypeError: fetch failed
[services] blog-1            |     at Object.fetch (node:internal/deps/undici/undici:11731:11)
[services] blog-1            |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
[services] blog-1            |   cause: Error: getaddrinfo ENOTFOUND blog-cms
[services] blog-1            |       at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[services] blog-1            |       at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
[services] blog-1            |     errno: -3008,
[services] blog-1            |     code: 'ENOTFOUND',
[services] blog-1            |     syscall: 'getaddrinfo',
[services] blog-1            |     hostname: 'blog-cms'
[services] blog-1            |   }
[services] blog-1            | }
[services] blog-1            | [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
[services] blog-1            |   digest: '2178396693'
[services] blog-1            | }
[services] blog-1            | TypeError: fetch failed
[services] blog-1            |     at Object.fetch (node:internal/deps/undici/undici:11731:11)
[services] blog-1            |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
[services] blog-1            |   cause: Error: getaddrinfo ENOTFOUND blog-cms
[services] blog-1            |       at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[services] blog-1            |       at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
[services] blog-1            |     errno: -3008,
[services] blog-1            |     code: 'ENOTFOUND',
[services] blog-1            |     syscall: 'getaddrinfo',
[services] blog-1            |     hostname: 'blog-cms'
[services] blog-1            |   }
[services] blog-1            | }
[services] blog-1            | [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
[services] blog-1            |   digest: '2178396693'
[services] blog-1            | }
[services] blog-1            | TypeError: fetch failed
[services] blog-1            |     at Object.fetch (node:internal/deps/undici/undici:11731:11)
[services] blog-1            |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
[services] blog-1            |   cause: Error: getaddrinfo ENOTFOUND blog-cms
[services] blog-1            |       at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
[services] blog-1            |       at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
[services] blog-1            |     errno: -3008,
[services] blog-1            |     code: 'ENOTFOUND',
[services] blog-1            |     syscall: 'getaddrinfo',
[services] blog-1            |     hostname: 'blog-cms'
[services] blog-1            |   }
[services] blog-1            | }
[services] blog-1            | [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
[services] blog-1            |   digest: '2178396693'
[services] blog-1            | }

To Reproduce
Steps to reproduce the behavior:

  1. Go to Codespace
  2. Type in command npm install && npm start
  3. View log errors

Expected behavior
Expected all services to start

OS (please complete the following information):

  • OS: MacOS
  • OS Version: Sonoma
  • npm version: 9.5.0 (codespaces version)
  • Node.js version: 18.15.0 (codespaces version)
  • output of azd version: 1.6.1 (commit eba2c978b5443fdb002c95add4011d9e63c2e76f) - (codespaces version)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions