Content pfp
Content
@
0 reply
0 recast
2 reactions

Max Jackson pfp
Max Jackson
@mxjxn.eth
Nextjs always has me pulling my hair out over bugs I cant pinpoint. I made this simple "rank-check" app which gets my subs on Hypersub & sorts them by time-remaining. Works fine locally. But when I push and it deploys to vercel, I get this error ideas? https://github.com/mxjxn/mxjxn.art/tree/main/src/app/rank-check
9 replies
1 recast
3 reactions

Max Jackson pfp
Max Jackson
@mxjxn.eth
https://mxjxn-art.vercel.app/
0 reply
0 recast
0 reaction

Max Jackson pfp
Max Jackson
@mxjxn.eth
https://mxjxn-art.vercel.app/
0 reply
0 recast
0 reaction

Max Jackson pfp
Max Jackson
@mxjxn.eth
Its stuff like this that pushes me closer to making Go + HTMX + Solid.js my go-to web stack, to save myself countless headaches
0 reply
0 recast
0 reaction

nyc-crypto-cabal-kid pfp
nyc-crypto-cabal-kid
@zinger
Would also try wrapping the `fetch` in a `try / catch` and logging the response
1 reply
0 recast
0 reaction

nyc-crypto-cabal-kid pfp
nyc-crypto-cabal-kid
@zinger
Silly question: have you tried redeploying? Sometimes that works for me, no explanation ๐Ÿ™ƒ
1 reply
0 recast
0 reaction

jtgi pfp
jtgi
@jtgi
afk but this happens when you receive html instead of json. A guess is process.env.VERCEL_URL isnโ€™t working and choking on localhost. Iโ€™ve lost touch since app dir, but is it possible thatโ€™s resolved at build time? If so I think you need NEXT_PUBLIC_. Iโ€™d try setting HOST_URL in getData and logging.
1 reply
0 recast
0 reaction

Sam pfp
Sam
@sammdec.eth
Does the fetch endpoint have any bot protection or rate limiting? Iโ€™ve sometimes found that to be an issue
1 reply
0 recast
0 reaction

vijethx pfp
vijethx
@vijethx
the app/function is expecting a json object but receiving an html file (mostly)
1 reply
0 recast
0 reaction