Skip to main content
Solved

Error completing Box sign request when created using API


benjessupoasis

I am using the create sign request API with the following body to create a sign request:


{

    "external_id": "10000",

    "parent_folder": {

        "id": "0",

        "type": "folder"

    },

    "signers": [

        {

            "role": "signer",

            "email": "ben.jessup@oasisdigital.com"

        },

        {

            "role": "approver",

            "email": "benjamin.jessup@valiantys.com"

        }

    ],

    "source_files": [

        {

            "id": "1056087946155",

            "type": "file"

        }

    ]

}


After signing and approving the request it goes into a “finalizing” state (shown as “In Progress” in the UI), then eventually goes into a “error_finalizing” status.


Initially I encountered this in a Atlassian Connect Express application, but I saw the same behavior after using Postman to create the sign request. Any thoughts on what could be causing this error? Is there any way to see more detail on the error?

Best answer by rbarbosa Box

Hi @benjessupoasis ,


Interesting, I’ll investigate, and try to replicate the error.


What is puzzling to be is that the signature process is giving an error at the very end, I wonder if it can write on the root folder of the user who requested the signature.


Are there any more details on the error message/notification?


Cheers

View original
Did this topic help you find an answer to your question?

5 replies

rbarbosa Box
  • Developer Advocate
  • 553 replies
  • October 31, 2023

Hi @benjessupoasis , welcome to the forum!


Help me replicate this.


From above it seems a simple request…


Any other details we should know about?


Cheers


benjessupoasis
  • Author
  • New Participant
  • 2 replies
  • October 31, 2023

I am attempting to create a new sign request using as little information as possible - in this example I am just passing a file to be signed and the signer/approver, as well as an external ID for automation purposes.


I tried creating the request with the following body and this worked as intended (after signing, the request was completed rather than being stuck in finalizing and then erroring).


{

    "external_id": "10000",

    "parent_folder": {

        "id": "206115788143",

        "type": "folder"

    },

    "signers": [

        {

            "role": "signer",

            "email": "ben.jessup@oasisdigital.com"

        }

    ],

    "template_id": "d996578e-a72e-4559-8c28-dae743465195",

    "source_files": []

}


It seems like using a template should be required, or perhaps something else should be required when trying to create a sign request based on a source file rather than a template.


rbarbosa Box
  • Developer Advocate
  • 553 replies
  • Answer
  • October 31, 2023

Hi @benjessupoasis ,


Interesting, I’ll investigate, and try to replicate the error.


What is puzzling to be is that the signature process is giving an error at the very end, I wonder if it can write on the root folder of the user who requested the signature.


Are there any more details on the error message/notification?


Cheers


benjessupoasis
  • Author
  • New Participant
  • 2 replies
  • October 31, 2023

I tried my original request again with a different parent folder specified instead of the root, and now the problem is resolved. After signing the request it completes as expected.


Weird bug, thank you for the quick reply!


rbarbosa Box
  • Developer Advocate
  • 553 replies
  • October 31, 2023

Awesome, I’ll ping the engineers about this anyway, see what they have to say.


But for now I think we found a workaround, assuming this won’t be a problem fo ryour use case.


Cheers


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings