NeoBean
NeoBean
TtRPC
Created by Samuel Barnholdt on 4/8/2024 in #❓-help
Throwing something other than `Unexpected token '<', "<!DOCTYPE "... is not valid JSON`
Umm. That wouldnt be Unexpected token '<', "<!DOCTYPE "... is not valid JSON tho. idk
12 replies
TtRPC
Created by Samuel Barnholdt on 4/8/2024 in #❓-help
Throwing something other than `Unexpected token '<', "<!DOCTYPE "... is not valid JSON`
i'm curious what happened here. If you're hitting trpc endpoint, trpc doesnt return html afaik. Or does it? Is this only happening in production/client? cloudflare/firewalls can return html page. Other than obviously the nextjs 404 page, which would mean youre indeed not hitting the endpoint
12 replies
TtRPC
Created by Indeed on 3/11/2024 in #❓-help
Serving files with TRPC and Express
I believe trpc doesn't handle file responses. What you'd do instead is transmit a file link via the api and invoke the link (signed for security) to download/serve the file.
3 replies
TtRPC
Created by Finn on 3/1/2024 in #❓-help
How to properly handle Prima selects/includes with tRPC?
why not make items of includableFields booleans ?
8 replies
TtRPC
Created by cha0sg0d on 2/6/2024 in #❓-help
How to get the type of context after middleware context extension?
I agree with you 👍
9 replies
TtRPC
Created by cha0sg0d on 2/6/2024 in #❓-help
How to get the type of context after middleware context extension?
I dont see a valid reason or requirement. but the lazy way may sometime feel intuitive to tell myself this function belongs strictly to these contexts.
9 replies
TtRPC
Created by cha0sg0d on 2/6/2024 in #❓-help
How to get the type of context after middleware context extension?
I have the same question.
9 replies
TtRPC
Created by junior1 on 12/2/2023 in #❓-help
setting up trpc in next 14
the layout structure has indeed benefits, but for us its been more painful to switch than any benefits. so i agree too
11 replies
TtRPC
Created by junior1 on 12/2/2023 in #❓-help
setting up trpc in next 14
does it not work in next 14?
11 replies
TtRPC
Created by NeoBean on 11/19/2023 in #❓-help
Pass headers when prefetching using helpers
bump ?
4 replies
TtRPC
Created by NeoBean on 8/20/2023 in #❓-help
Forward client headers with createTRPCProxyClient & Server-Side Helpers
I'm sorry i did not at that time I didn't need it at very much, so i just used trpc client-side I'll retry this in the coming days.
8 replies
TtRPC
Created by I am a Dev on 10/1/2023 in #❓-help
Name recommendations for my api endpoints that use swagger, trpc-panel, trpc-playground.
MedicalSupplyAPI
3 replies
TtRPC
Created by acronie on 9/7/2023 in #❓-help
Bad request in prod but works fine in dev
have you tried running the production mode locally? is everything same for both dev/prod? like payload, database configuration/indexes etc
39 replies
TtRPC
Created by acronie on 9/7/2023 in #❓-help
Bad request in prod but works fine in dev
also you using mongodb? if employeeId is supposed to be an objectId, its invalid
39 replies
TtRPC
Created by acronie on 9/7/2023 in #❓-help
Bad request in prod but works fine in dev
are you using errorFormatters / try catch anywhere that just throws BAD_REQUEST/INTERNAL_SERVER_ERROR but doesnt log or respond with a proper message/error data?
39 replies
TtRPC
Created by acronie on 9/7/2023 in #❓-help
Bad request in prod but works fine in dev
¯\_(ツ)_/¯
39 replies
TtRPC
Created by acronie on 9/7/2023 in #❓-help
Bad request in prod but works fine in dev
if its not for the date, it could be for anything, you need debug chunk by chunk
39 replies
TtRPC
Created by acronie on 9/7/2023 in #❓-help
Bad request in prod but works fine in dev
and you're using superjson too right?
39 replies
TtRPC
Created by acronie on 9/7/2023 in #❓-help
Bad request in prod but works fine in dev
idk honestly, but im curious
39 replies
TtRPC
Created by acronie on 9/7/2023 in #❓-help
Bad request in prod but works fine in dev
well toDate() method returns an entire javascript Date() class
39 replies