sambecker / exif-photo-blog

Photo blog, reporting 🤓 EXIF camera details (aperture, shutter speed, ISO) for each image.
https://photos.sambecker.com
685 stars 108 forks source link

I run into an issue when I change to grid view from default view #40

Closed cigar closed 7 months ago

cigar commented 7 months ago

My site is (https://shots.cigar.design), you can have a try to preview the error message as below:

Application error: a server-side exception has occurred (see the server logs for more information). Digest: 534939749

Here are logs from the Vercel: [GET] /grid shots – Logs – Vercel

TypeError: Cannot read properties of null (reading 'replace') at (src/camera/index.ts:52:25) at (src/camera/index.ts:32:16) at (src/photo/PhotoGridSidebar.tsx:56:11) at (nodemodules/.pnpm/next@14.0.4@babel+core@7.23.7_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js:42:208) at (nodemodules/.pnpm/next@14.0.4@babel+core@7.23.7_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js:47:293) at (nodemodules/.pnpm/next@14.0.4@babel+core@7.23.7_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js:38:228) at (nodemodules/.pnpm/next@14.0.4@babel+core@7.23.7_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js:57:53) at (nodemodules/.pnpm/next@14.0.4@babel+core@7.23.7_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js:58:128)

sambecker commented 7 months ago

Think I figured this out.

Can you sync your fork, then visit /admin/configuration and click "Clear Cache?"

Cache needs to be cleared because there's an updated sql query, which now requires both make and model to exist in order to recognize a photo as having a camera.

cigar commented 7 months ago

Nice! It worked based on your guiding me to clean the cache!

sambecker commented 7 months ago

Amazing! Thx for the excellent feedback + logs.