Comments (3)
Got it! Going to look into it. Looks like its the middleware, but going to talk with the Backend guys to hear @alexghirelli
from badget.
I just think that its the wrong /pricing that is.
from badget.
Started the app locally and tried to repro this. This is what I am seeing in the Next.js logs when I navigate to the /pricing
page:
✓ Compiled /pricing in 1425ms (2374 modules)
>> query #1 auth.mySubscription { input: undefined }
<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (101kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
○ Compiling /api/trpc/edge/[trpc] ...
✓ Compiled /api/trpc/edge/[trpc] in 1528ms (1156 modules)
Error in tRPC handler (edge) on path auth.mySubscription
[TRPCError: UNAUTHORIZED] { code: 'UNAUTHORIZED', name: 'TRPCError' }
<< query #1 auth.mySubscription {
input: undefined,
result: TRPCClientError: UNAUTHORIZED
at Function.from (webpack-internal:///(rsc)/../../node_modules/@trpc/client/dist/TRPCClientError.mjs:30:20)
at eval (webpack-internal:///(rsc)/../../node_modules/@trpc/client/dist/links/internals/createHTTPBatchLink.mjs:68:110)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
meta: { response: [Response], responseJSON: [Array] },
shape: { message: 'UNAUTHORIZED', code: -32001, data: [Object] },
data: {
code: 'UNAUTHORIZED',
httpStatus: 401,
stack: 'TRPCError: UNAUTHORIZED\n' +
' at eval (webpack-internal:///(rsc)/../../packages/api/src/trpc.ts:94:15)\n' +
' at callRecursive (webpack-internal:///(rsc)/../../packages/api/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:133:38)\n' +
' at procedure (webpack-internal:///(rsc)/../../packages/api/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs:163:30)\n' +
' at callProcedure (webpack-internal:///(rsc)/../../node_modules/@trpc/server/dist/unstable-core-do-not-import/router.mjs:103:12)\n' +
' at eval (webpack-internal:///(rsc)/../../node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveHTTPResponse.mjs:147:94)\n' +
' at Array.map (<anonymous>)\n' +
' at resolveHTTPResponse (webpack-internal:///(rsc)/../../node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveHTTPResponse.mjs:144:32)',
path: 'auth.mySubscription',
zodError: null
},
[cause]: undefined
},
elapsedMs: 1738
}
⨯ ../node_modules/@trpc/client/dist/TRPCClientError.mjs (26:19) @ Function.from
⨯ Internal error: TRPCClientError: UNAUTHORIZED
at Function.from (../../node_modules/@trpc/client/dist/TRPCClientError.mjs:30:20)
at eval (../../node_modules/@trpc/client/dist/links/internals/createHTTPBatchLink.mjs:68:110)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
null
I'm new to TRPC but it looks like it's a TRPCClientError
from badget.
Related Issues (20)
- Safari Resizing Selects Tiles HOT 1
- Feature: Change Homepage Image
- Fix: Home page clean up HOT 4
- Feature: Basic Investment View Integration
- Feature: Optional plaid integration or alternatives
- Feature: Crypto Asset Integration
- Feature: Alpha 0.1 getting started guide
- Bug: 'investment' section has 'Soon' message HOT 2
- Bug: OAuth Callback Authorization Error on Sign-in HOT 1
- Feature: Implement Vercel AI Chat Interface HOT 5
- Bug: z-index issue causing overlapping elements on marketing page navbar HOT 1
- Bug: Modal overflows from the viewport HOT 6
- Feature: Spacing between numbers in modal HOT 9
- Bug: route "/blog" giving error on prod. HOT 2
- Bug: Outdated Platform Information HOT 1
- Feature: From Contentlayer to Content Collections HOT 3
- Feature: Import Bank transactions HOT 1
- Feature: Connect GoCardless HOT 1
- Bug: Missing wrangler entry-point HOT 1
- Feature: Tabs on banking HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from badget.