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

Error when next is requesting any uploaded images from strapi /api/uploads #37

Open
derekwayne opened this issue Mar 3, 2025 · 0 comments
Assignees

Comments

@derekwayne
Copy link

Fix

Describe your request

Images are not successfully being sent from strapi to the launchpad frontend.

A clear and concise description of what needs to be fixed.

Steps to reproduce the behavior

  1. Clone LaunchPad
  2. Set env vars as per setup instructions
  3. yarn develop, and yarn start strapi, and next
  4. Open up http://localhost:3000 (nextjs url)
  5. Scroll or click somewhere that will result in an image request being sent to stapi

Expected behavior

Images to be shown on the Launchpad

Screenshots

Image

Additional context

To access the server ⚡️, go to:
http://localhost:1337

[2025-03-03 08:54:25.575] info: Strapi started successfully
[2025-03-03 08:54:41.231] info: Using custom Dynamic-Zone population Middleware...
[2025-03-03 08:54:41.232] info: The content type is: pages
[2025-03-03 08:54:41.232] info: The uid is: api::page.page
[2025-03-03 08:54:41.380] http: GET /api/pages?filters%5Bslug%5D=homepage&filters%5Blocale%5D=en (153 ms) 200
[2025-03-03 08:54:41.387] info: Using custom Dynamic-Zone population Middleware...
[2025-03-03 08:54:41.388] info: The content type is: global
[2025-03-03 08:54:41.388] info: The uid is: api::global.global
[2025-03-03 08:54:41.432] http: GET /api/global?filters%5Blocale%5D=en (46 ms) 200
[2025-03-03 08:54:41.443] http: GET /api/global?filters%5Blocale%5D=en&populate=seo.metaImage (10 ms) 200
[2025-03-03 08:54:41.453] http: GET /api/pages?filters%5Bslug%5D=homepage&filters%5Blocale%5D=en&populate=seo.metaImage (9 ms) 200
[2025-03-03 08:54:41.665] info: Using custom Dynamic-Zone population Middleware...
[2025-03-03 08:54:41.665] info: The content type is: logo_6a13c79c4b.png
[2025-03-03 08:54:41.666] info: The uid is: api::logo_6a13c79c4b.png.logo_6a13c79c4b.png
[2025-03-03 08:54:41.666] error: Cannot read properties of undefined (reading 'attributes')
TypeError: Cannot read properties of undefined (reading 'attributes')
    at getDeepPopulate (/home/derek/Business/web-platform/strapi/dist/src/middlewares/deepPopulate.js:15:45)
    at /home/derek/Business/web-platform/strapi/dist/src/middlewares/deepPopulate.js:71:20
    at dispatch (/home/derek/Business/web-platform/strapi/node_modules/koa-compose/index.js:42:32)
    at dummyMiddleware (/home/derek/Business/web-platform/strapi/node_modules/@strapi/core/dist/services/server/middleware.js:25:38)
    at dispatch (/home/derek/Business/web-platform/strapi/node_modules/koa-compose/index.js:42:32)
    at /home/derek/Business/web-platform/strapi/node_modules/koa-favicon/index.js:42:14
    at dispatch (/home/derek/Business/web-platform/strapi/node_modules/koa-compose/index.js:42:32)
    at dummyMiddleware (/home/derek/Business/web-platform/strapi/node_modules/@strapi/core/dist/services/server/middleware.js:25:38)
    at dispatch (/home/derek/Business/web-platform/strapi/node_modules/koa-compose/index.js:42:32)
    at /home/derek/Business/web-platform/strapi/node_modules/@strapi/core/dist/middlewares/body.js:45:15
[2025-03-03 08:54:41.666] http: GET /api/uploads/logo_6a13c79c4b.png (2 ms) 500```
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

No branches or pull requests

2 participants