-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bug where unauthenticated users would get subscription errors in the console. #8833
Merged
burtonator
merged 10 commits into
master
from
burton/move-subscriptions-for-unauthorized
Aug 14, 2024
Merged
Fixed bug where unauthenticated users would get subscription errors in the console. #8833
burtonator
merged 10 commits into
master
from
burton/move-subscriptions-for-unauthorized
Aug 14, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The pattern we usually use it to pass
|
burtonator
changed the title
subscriptions for unauthorized
Fixed bug where unauthenticated users would get subscription errors in the console.
Aug 13, 2024
Israellund
approved these changes
Aug 13, 2024
masvelio
approved these changes
Aug 14, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
original bug is not reproducible for me anymore but I am getting different errors now
[09:26:44.874] ERROR (index.ts): INTERNAL_SERVER_ERROR: [ZodError] subscription.getCommentSubscriptions: [
{
"code": "invalid_type",
"expected": "object",
"received": "null",
"path": [
0,
"Comment",
"Thread"
],
"message": "Expected object, received null"
}
]
err: {
"type": "ZodError",
"message": "[\n {\n \"code\": \"invalid_type\",\n \"expected\": \"object\",\n \"received\": \"null\",\n \"path\": [\n 0,\n \"Comment\",\n \"Thread\"\n ],\n \"message\": \"Expected object, received null\"\n }\n]",
"stack":
ZodError: [
{
"code": "invalid_type",
"expected": "object",
"received": "null",
"path": [
0,
"Comment",
"Thread"
],
"message": "Expected object, received null"
}
]
at get error [as error] (file:///Users/marcin/Desktop/Projects/commonwealth/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:587:31)
at ZodArray.parseAsync (file:///Users/marcin/Desktop/Projects/commonwealth/node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:715:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async outputMiddleware (file:///Users/marcin/Desktop/Projects/commonwealth/node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/index.mjs:308:26)
at async callRecursive (file:///Users/marcin/Desktop/Projects/commonwealth/node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/index.mjs:451:32)
at async callRecursive (file:///Users/marcin/Desktop/Projects/commonwealth/node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/index.mjs:451:32)
at async resolve (file:///Users/marcin/Desktop/Projects/commonwealth/node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/index.mjs:481:24)
at async inputToProcedureCall (file:///Users/marcin/Desktop/Projects/commonwealth/node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs:46:22)
at async Promise.all (index 0)
at async resolveHTTPResponse (file:///Users/marcin/Desktop/Projects/commonwealth/node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs:182:37)
"aggregateErrors": [
{
"type": "Object",
"message": "Expected object, received null",
"stack":
"code": "invalid_type",
"expected": "object",
"received": "null",
"path": [
0,
"Comment",
"Thread"
]
}
],
"issues": [
{
"code": "invalid_type",
"expected": "object",
"received": "null",
"path": [
0,
"Comment",
"Thread"
],
"message": "Expected object, received null"
}
],
"name": "ZodError"
}
lets fix this in another pr and this is g2g
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to Issue
Closes:
Description of Changes
"How We Fixed It"
Test Plan
Deployment Plan
Other Considerations