henrycunh / golem

✨ A beautiful UI for ChatGPT and other conversational models
https://golem.chat
MIT License
238 stars 63 forks source link

Bug: regression on the current master #17

Closed gdassori closed 1 year ago

gdassori commented 1 year ago

image

[nuxt] [request error] [unhandled] [500] Cannot set properties of undefined (setting 'value')
  at ./chunks/app/server.mjs:772:18  
  at fn (./chunks/app/server.mjs:147:27)  
  at Object.callAsync (./node_modules/unctx/dist/index.mjs:49:19)  
  at callWithNuxt (./chunks/app/server.mjs:149:23)  
  at applyPlugin (./chunks/app/server.mjs:118:39)  
  at applyPlugins (./chunks/app/server.mjs:127:11)  
  at async createNuxtAppServer (./chunks/app/server.mjs:1046:7)  
  at async Object.renderToString (./node_modules/vue-bundle-renderer/dist/runtime.mjs:172:19)  
  at async ./chunks/handlers/renderer.mjs:384:21  
  at async ./chunks/handlers/renderer.mjs:26:22
henrycunh commented 1 year ago

oh oh, on it!

It happens when you refresh the /settings/model page, right @gdassori?

gdassori commented 1 year ago

Hi @henrycunh, it wasn't on the page you mentioned, but on the home, and it is still happening :-(.

image

The instance is geppetto[dot]mempool[dot]co (double t!), if it may be helpful for debugging.

henrycunh commented 1 year ago

That's weird! It's working here. image

gdassori commented 1 year ago

Could be regarded to the localStorage status ?

henrycunh commented 1 year ago

You're using Chrome? Can you show me the stack trace on the server-side?

gdassori commented 1 year ago

Yes, Chrome is here. This is the log from vercel (500 server error):

[nuxt] [request error] [unhandled] [500] Cannot set properties of undefined (setting 'value')
  at ./chunks/app/server.mjs:772:18  
  at fn (./chunks/app/server.mjs:147:27)  
  at Object.callAsync (./node_modules/unctx/dist/index.mjs:49:19)  
  at callWithNuxt (./chunks/app/server.mjs:149:23)  
  at applyPlugin (./chunks/app/server.mjs:118:39)  
  at applyPlugins (./chunks/app/server.mjs:127:11)  
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)  
  at async createNuxtAppServer (./chunks/app/server.mjs:1046:7)  
  at async Object.renderToString (./node_modules/vue-bundle-renderer/dist/runtime.mjs:172:19)  
  at async ./chunks/handlers/renderer.mjs:384:21
henrycunh commented 1 year ago

Perfect! Just found the bug :]

gdassori commented 1 year ago

Fix confirmed here, thank you @henrycunh :+1: :+1: :+1: