coder2343 / B4UAgree_backend

0 stars 0 forks source link

backend latency issue #1

Open coder2343 opened 6 months ago

coder2343 commented 6 months ago

description of the bug We have an issue as it takes 20 seconds from submitting a summary to being able to call a summary. If you submit request for a summary before waiting 20 seconds you will have an issue where you will get a 503 error as the data has not been registered as saved on the server yet.

reproduction steps

  1. http://csc324spring2024.us.reclaim.cloud/sendpolicy do this api request
  2. https://csc324spring2024.us.reclaim.cloud/sum do this api request without waiting 30 seconds after the last api call
  3. should get a 503 error returned.

what's going on with bug now Liam is discovered the bug and is working on investigating the issue and seeing possible way to overcome the latency issue right now. Curenlty we should ensure in our front end code that we wait around 25 seconds from sending privacy policy to back end for calling for a summary.

coder2343 commented 6 months ago

hypothesis Bug is either with code taking to long to execute or is do to network connection with server

coder2343 commented 6 months ago

Investigation Steps

Wednesday April 24

Monday morning

Monday afternoon

Monday evening

Tuesday morning

coder2343 commented 6 months ago

purposed solution

coder2343 commented 6 months ago

Reflection

annhmai-hoang commented 6 months ago

Bug Report

Description: We encounter a 503 error if a summary request is made before 20 seconds elapse from submission, due to delayed data registration on the server.

Reproduction Steps:

  1. Make an API request to http://csc324spring2024.us.reclaim.cloud/sendpolicy.
  2. Without waiting 30 seconds after the last API call, immediately make another API request to https://csc324spring2024.us.reclaim.cloud/sum.
  3. Observe the returned response, which should be a 503 error.

Communication about Bug Status:

Team Member Involved: