Skip to content

Sandbox - Continuation In - 501 Error + Approval Workflow #25833

Closed

Description

@eason-pan-bc

Encountered 501-Timeout issue when filing Continuation In with file uploaded (one-shot) and Continuation Application with file uploaded (in multi-step)

How to reproduce:

Continuation In with file uploaded (one-shot) issue

  1. Use the Sandbox API Demo Collection(2025-02) collection in the .gov Postman team workspace
  2. Go to continuation in folder, and find the one-shot approach for continuation in
  3. use the 2 steps in Upload File sub_folder / or skip it use the pre-set payload, since that file has already been uploaded to TEST minio
  4. submit a Continuation-in using the pre-set payload, then you will wait for pretty long time, and then get the 501 error.

image.png

Continuation Application with file uploaded (in multi-step) issue

  1. Use the Sandbox API Demo Collection(2025-02) collection in the .gov Postman team workspace
  2. Go to continuation in folder, and find the multi-step approach for continuation in
  3. use step 1, and 2, then you will wait for a pretty long time and get the 501 error.

Error log from GCP console

https://console.cloud.google.com/logs/query;cursorTimestamp=2025-02-05T19:55:32.993481Z;query=timestamp%3D%222025-02-05T19:54:53.048465Z%22%0AinsertId%3D%2267a3c20d000111e32345d7eb%22?project=a083gt-integration

Refer to the 2 comments below for potential reasons.

TODOs

  • in legal-api sandbox branch
  • update the logic to disable sending messages to NATs in submit_filing_for_review if it's in Sandbox environment, refer to the Filer in sandbox how to do this
  • Implement auto-approval flow for sandbox environment for continuation in
  • in the Postman collection
  • Test if requests in Postman collection work as expected, after the new changes deployed
  • Save response and remove FUTURE tag in related folders

Activity

  1. added
    Entities Team
    on Feb 5, 2025
  2. eason-pan-bc commented on Feb 6, 2025

    @eason-pan-bc
    Author

    Preliminary analysis:

    Potential Fix

    • check if in Sandbox env, do not send messages to NATs Queue
  3. eason-pan-bc commented on Feb 6, 2025

    @eason-pan-bc
    Author

    The Other Issue - Approve Continuation Application

    We cannot approve Continuation Application, since we don't have the staff dashboard or no one sends API requests to approve it

    Potential Fix

    add a mechanism to automatically approve Continuation Application

  4. changed the title [-]Continuation In issue - cannot use the PDF uploaded to TEST minio[/-] [+]Continuation In issue - error when file continuation in application[/+] on Feb 6, 2025
  5. added
    bug
    on Feb 6, 2025
  6. changed the title [-]Continuation In issue - error when file continuation in application[/-] [+]Continuation In 501 Error in Sandbox[/+] on Feb 6, 2025
  7. changed the title [-]Continuation In 501 Error in Sandbox[/-] [+]Sandbox - Continuation In 501 Error[/+] on Feb 6, 2025
  8. eason-pan-bc commented on Feb 25, 2025

    @eason-pan-bc
    Author

    Give it a 3 for the 501 error issue.
    If we'd like to implement the approval feature in the Sandbox, it might grow up to a 5 or even bigger (may need another ticket).
    Continuation-in authorization approval is a step before the user can proceed with the filing.
    image.png

    To be checked if this step is needed in sandbox

  9. vikas-gov commented on Feb 28, 2025

    @vikas-gov
    Collaborator

    @eason-pan-bc : confirmed, Continuation-in authorization approval step is required in sandbox api setup

  10. changed the title [-]Sandbox - Continuation In 501 Error[/-] [+]Sandbox - Continuation In - 501 Error + Approval Workflow[/+] on Mar 3, 2025
  11. AimeeGao commented on Mar 13, 2025

    @AimeeGao

    501 Error Issue Fix:

    The issue has been addressed by skipping email notifications in the sandbox to avoid NATS connection errors.

    Testing Result in Sandbox:

    image.png

    image.png

    Verified can successfully submit Continuation In filing with file upload and get 201 Created status code, then can successfully retrieve filing details and confirmed filing status updated to AWAITING_REVIEW in one shot and multi-step approaches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities TeamPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions