#products not showing on storefront
22 messages · Page 1 of 1 (latest)
😂 just css?
search for hidden class or something. Hard to say without you actually posting any code.
And please don't post the same question in other channels. One thread is enough.
css. js. tsx. installed useState, useEffect, react etc, ran npm run audit a few times. i don't really know. where can i see whether the backend is linked to the frontend?
in the Network Tab of devtools
http://localhost:8000/api/collections?offset=0
Request Method:
GET
Status Code:
500 Internal Server Error
Remote Address:
[::1]:8000
Referrer Policy:
strict-origin-when-cross-origin
Request URL:
http://localhost:8000/api/products?limit=4&offset=4&limit=4&cart_id=cart_01H9WST8GB39XF02GSWC4AK4VA®ion_id=reg_01H9SK1851Z23HKYV0AC70M7C1
Request Method:
GET
Status Code:
500 Internal Server Error
Remote Address:
[::1]:8000
Referrer Policy:
strict-origin-when-cross-origin
and this " at Socket.<anonymous> (C:\Users\user\Documents\medusa-storefront\node_modules\pg-protocol\dist\index.js:11:42)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:343:12)
at readableAddChunk (node:internal/streams/readable:316:9)
at Readable.push (node:internal/streams/readable:253:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
length: 104,
severity: 'FATAL',
code: '28P01',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'auth.c',
line: '329',
routine: 'auth_failed'
}
[query] select "p0".* from "public"."product" as "p0" where "p0"."deleted_at" is null limit 4 offset 4 [took 86 ms]
"
Looks like you have an issue with your database connection, are you sure that your database is up and running ? right db credentials given to the medusa-config.js file ?
hi
this is what i'm getting:
i recall i changed something here but i can't remember
const DATABASE_URL =
process.env.DATABASE_URL || "postgres://localhost/medusa-store";
Here ☝️
You'll need to add credentials, here is an example :
const DATABASE_URL = "postgres://username:password@localhost/medusa-store";
Maybe the issue is due to this
so i'll need to replace it?
i replaced it and i'm unable to log into the backend using my existing email and password
const DATABASE_URL =
process.env.DATABASE_URL || "postgres://username:password@localhost/medusa-store"; gives me this Failed to compile.
Module not found: Can't resolve '../../fundamentals/icons/refresh-icon' in 'C:\Users\user\Documents\medusa-backend.cache\admin\src\components\extensions\route-container'
cache/admin/src/components/extensions/route-container/route-error-element.tsx
i'm getting this in the homepage: Unhandled Runtime Error
Error: Network Error
Call Stack
createError
node_modules@medusajs\medusa-js\node_modules\axios\lib\core\createError.js (16:0)
XMLHttpRequest.handleError
node_modules@medusajs\medusa-js\node_modules\axios\lib\adapters\xhr.js (117:0)
i think the issues is in the frontend as i only edited it today.
btw sure to replace username and password with your own database credentials