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

[Bug]: Error 'DYNAMIC_SERVER_USAGE' - causing internal 500 error #439

Open
420coupe opened this issue Dec 20, 2024 · 0 comments
Open

[Bug]: Error 'DYNAMIC_SERVER_USAGE' - causing internal 500 error #439

420coupe opened this issue Dec 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working status: needs triaging

Comments

@420coupe
Copy link

420coupe commented Dec 20, 2024

Package.json file

{
  "name": "medusa-next",
  "version": "1.0.3",
  "private": true,
  "description": "Next.js Starter to be used with Medusa V2",
  "keywords": [
    "medusa-storefront"
  ],
  "scripts": {
    "dev": "next dev --turbopack -p 8000",
    "build": "next build",
    "start": "next start -p 8000",
    "lint": "next lint",
    "analyze": "ANALYZE=true next build"
  },
  "dependencies": {
    "@headlessui/react": "^2.2.0",
    "@medusajs/icons": "latest",
    "@medusajs/js-sdk": "latest",
    "@medusajs/ui": "latest",
    "@meilisearch/instant-meilisearch": "^0.7.1",
    "@paypal/paypal-js": "^5.0.6",
    "@paypal/react-paypal-js": "^7.8.1",
    "@radix-ui/react-accordion": "^1.2.1",
    "@stripe/react-stripe-js": "^1.7.2",
    "@stripe/stripe-js": "^1.29.0",
    "@supabase/supabase-js": "^2.45.4",
    "algoliasearch": "^4.20.0",
    "lodash": "^4.17.21",
    "next": "^15.0.3",
    "pg": "^8.11.3",
    "qs": "^6.12.1",
    "react": "19.0.0-rc-66855b96-20241106",
    "react-country-flag": "^3.1.0",
    "react-dom": "19.0.0-rc-66855b96-20241106",
    "react-instantsearch-hooks-web": "^6.47.3",
    "react-intersection-observer": "^9.3.4",
    "react-swipeable": "^7.0.1",
    "server-only": "^0.0.1",
    "sharp": "^0.33.5",
    "tailwindcss-radix": "^2.8.0",
    "webpack": "^5"
  },
  "devDependencies": {
    "@babel/core": "^7.17.5",
    "@medusajs/types": "latest",
    "@medusajs/ui-preset": "latest",
    "@types/lodash": "^4.14.195",
    "@types/node": "17.0.21",
    "@types/pg": "^8.11.0",
    "@types/react": "^18.3.12",
    "@types/react-dom": "^18.3.1",
    "@types/react-instantsearch-dom": "^6.12.3",
    "ansi-colors": "^4.1.3",
    "autoprefixer": "^10.4.2",
    "babel-loader": "^8.2.3",
    "eslint": "8.10.0",
    "eslint-config-next": "15.0.3",
    "postcss": "^8.4.8",
    "prettier": "^2.8.8",
    "tailwindcss": "^3.0.23",
    "typescript": "^5.3.2"
  },
  "packageManager": "[email protected]",
  "resolutions": {
    "@types/react": "npm:[email protected]",
    "@types/react-dom": "npm:[email protected]"
  },
  "overrides": {
    "react": "19.0.0-rc-66855b96-20241106",
    "react-dom": "19.0.0-rc-66855b96-20241106"
  }
}

Node.js version

v22.12.0

Operating system name and version

22.04.5 LTS

Browser name

Brave

What happended?

Updated to latest build, utilizing digital products recipe. Everything works correctly in dev environment, but i get an internal 500 error when in production environment. looks like it's failing at reaching

GET {backendURL}/{countryCode}/products/{product.handle}? rsc=1amso

edit: production Home page loads products correctly with the 3 get errors per product, but internal 500 error when any product is selected.
image

Expected behavior

correctly load dynamic product pages

Actual behavior

production fails with internal 500 error when trying to go to any product page, yet products and images display on homepage, but also gives the same GET errors on homepage, see below.

Screenshot from 2024-12-20 03-36-46

GET error on product page (prod)

image

Nextjs (prod)

image

Medusajs (prod)

image

however everything works as it should in dev environment.

Nextjs (dev)

image

Medusajs (dev)
image

Link to reproduction repo

https://github.com/nextjs-starter-medusa

@420coupe 420coupe added bug Something isn't working status: needs triaging labels Dec 20, 2024
@VariableVic VariableVic self-assigned this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status: needs triaging
Projects
None yet
Development

No branches or pull requests

2 participants