Calling Nuxt 3 Server API returns HTTP 500

hi, I'm new to web dev and cloudflare. Right now, I have uploaded my Nuxt 3 project onto github and connected Cloudflare with Nuxthub. I have the site showing properly but it is returning HTTP 500 on all server requests to my Firebase within the site. I'm unsure what to do. this is the error log
13:30:11.163
GET 500 /api/games/game-list
[nuxt] [request error] [unhandled] [500],Object prototype may only be an Object or null: undefined
at Function.create (<anonymous>)
at Object.inherits$1 [as inherits] (chunks/_/error-messages.mjs:1:208128)
at chunks/_/error-messages.mjs:1:221856
13:30:11.163
GET 500 /api/games/game-list
[nuxt] [request error] [unhandled] [500],Object prototype may only be an Object or null: undefined
at Function.create (<anonymous>)
at Object.inherits$1 [as inherits] (chunks/_/error-messages.mjs:1:208128)
at chunks/_/error-messages.mjs:1:221856
I'm not sure if it's relevant but I have resolve a problem relating to HTTP 500 which was to add jose module as a json web token manager. I have the token being passed around properly and set in the cookie. Things I know: 1. doing the request works locally. 2. environment variables are set correctly 3. CloudFlare pages/worker(?) runs on a different environment than npm which is V8(?) and some npm packages are not supported 4. I have not set anything else aside from the DNS which connected the Nuxthub link to the purchased web domain I'd like some assistance on this one since I have no clue what I should be doing anymore
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server