Error 500 when adding a signature field via Documenso API
-
Hello everyone,
I am currently experiencing an issue with the Documenso API when attempting to add a signature field to a document. Here are the details:
Context:
• Application: Documenso
• Objective: Add a signature field to a document via the APIIssue encountered:
When I perform a POST request to the /api/v1/documents/{documentId}/fields endpoint to add a signature field, the server returns a 500 error with the message {"message": "Something went wrong"}.Request details:
• Method: POST
• Endpoint: https://mywebsite.com/api/v1/documents/{documentId}/fields
• Headers:
• Authorization: {mytoken}
• Content-Type: application/json
Body :
{
"recipientId": 21,
"type": "SIGNATURE",
"pageNumber": 0,
"pageX": 100,
"pageY": 200,
"pageWidth": 150,
"pageHeight": 50
}Steps already taken:
1. Log verification: I have checked the application logs, but no relevant information regarding this error is present.
2. Environment variable modification: I added the LOG_LEVEL=debug variable to obtain more detailed logs, without success.
3. Request testing: I have tried with simplified payloads and ensured that the recipientId and documentId are correct, but the error persists.If anyone has encountered this issue or has suggestions on how to resolve it, I would greatly appreciate your assistance.
Thank you in advance for your support.
Best regards,
Alan LG
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login