[GH-ISSUE #278] Server Error when malformed Token is passed #73

Closed
opened 2026-02-26 18:45:15 +03:00 by kerem · 1 comment
Owner

Originally created by @RenatoNr on GitHub (Aug 18, 2023).
Original GitHub issue: https://github.com/documenso/documenso/issues/278

Hello everyone,

First, congrats for this awesome project.

The error is caused when token is malformed in url (http://localhost:3000/documents/89/signed?token=578UjuggkE5K3fdT3EmhY3X):

**Server Error
NotFoundError: No Recipient found

This error happened while generating the page. Any console logs will be displayed in the terminal window.**
`
67 | const recipientToken: string = context.query["token"];
68 |

69 | const recipient = await prisma.recipient.findFirstOrThrow({
| ^
70 | where: {
71 | token: recipientToken,
72 | },`

I think the error handler is not catch properly

Tks

Originally created by @RenatoNr on GitHub (Aug 18, 2023). Original GitHub issue: https://github.com/documenso/documenso/issues/278 Hello everyone, First, congrats for this awesome project. The error is caused when token is malformed in url (http://localhost:3000/documents/89/signed?token=578UjuggkE5K3fdT3EmhY3**X**): **Server Error NotFoundError: No Recipient found This error happened while generating the page. Any console logs will be displayed in the terminal window.** ` 67 | const recipientToken: string = context.query["token"]; 68 | > 69 | const recipient = await prisma.recipient.findFirstOrThrow({ | ^ 70 | where: { 71 | token: recipientToken, 72 | },` I think the error handler is not catch properly Tks
kerem closed this issue 2026-02-26 18:45:15 +03:00
Author
Owner

@RenatoNr commented on GitHub (Aug 18, 2023):

Please delete this issue, the error happened only in localhost

<!-- gh-comment-id:1683980734 --> @RenatoNr commented on GitHub (Aug 18, 2023): Please delete this issue, the error happened only in localhost
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#73
No description provided.