GithubHelp home page GithubHelp logo

Comments (3)

Codehagen avatar Codehagen commented on July 28, 2024 1

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.

Codehagen avatar Codehagen commented on July 28, 2024

I just think that its the wrong /pricing that is.

from badget.

stamatim avatar stamatim commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.