Skip to content

[CAL-727] [500] on /api/trpc/[trpc] #6361

@zomars

Description

@zomars
Something went wrong TypeError: Cannot read properties of undefined (reading 'availability')
    at getUserAvailability (/var/task/apps/web/.next/server/chunks/2904.js:1366:36)
    ... 14 lines matching cause stack trace ...
    at async resolveHTTPResponse (file:///var/task/node_modules/@trpc/server/dist/resolveHTTPResponse-6bee34f0.mjs:120:28) {
  code: 'INTERNAL_SERVER_ERROR',
  name: 'TRPCError',
  [cause]: TypeError: Cannot read properties of undefined (reading 'availability')
      at getUserAvailability (/var/task/apps/web/.next/server/chunks/2904.js:1366:36)
      at async /var/task/apps/web/.next/server/chunks/2806.js:8651:101
      at async Promise.all (index 0)
      at async getSchedule (/var/task/apps/web/.next/server/chunks/2806.js:8650:82)
      at async /var/task/apps/web/.next/server/chunks/2806.js:8538:16
      at async resolveMiddleware (file:///var/task/node_modules/@trpc/server/dist/index.mjs:383:30)
      at async callRecursive (file:///var/task/node_modules/@trpc/server/dist/index.mjs:419:32)
      at async next (file:///var/task/node_modules/@trpc/server/dist/index.mjs:427:32)
      at async callRecursive (file:///var/task/node_modules/@trpc/server/dist/index.mjs:419:32)
      at async next (file:///var/task/node_modules/@trpc/server/dist/index.mjs:427:32)
      at async /var/task/apps/web/.next/server/chunks/2806.js:10722:20
      at async callRecursive (file:///var/task/node_modules/@trpc/server/dist/index.mjs:419:32)
      at async resolve (file:///var/task/node_modules/@trpc/server/dist/index.mjs:447:24)
      at async file:///var/task/node_modules/@trpc/server/dist/resolveHTTPResponse-6bee34f0.mjs:123:32
      at async Promise.all (index 0)
      at async resolveHTTPResponse (file:///var/task/node_modules/@trpc/server/dist/resolveHTTPResponse-6bee34f0.mjs:120:28)
}

From SyncLinear.com | CAL-727

Metadata

Metadata

Labels

Medium priorityCreated by Linear-GitHub Sync⚡ Quick WinsA collection of quick wins/quick fixes that are less than 30 minutes of work✅ good first issueGood for newcomers🐛 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions