Amani-Alqaisi / B4UAgree

B4UAgree is a browser extension that simplifies and summarizes privacy policies in real-time, empowering users to make informed decisions about their online privacy. Tailored for common users, and privacy enthusiasts, it provides customizable insights for a transparent online experience.
0 stars 1 forks source link

Fetch Calls from Front-End #8

Open MiaRene15 opened 4 months ago

MiaRene15 commented 4 months ago

Reproduction Steps

Each website, I attempted to run the Chrome Extension on is listed first in the bullet point.

  1. NY Times. Expected: Unable to parse error. Seen: Can't find the link.
  2. NY Times. Continuing from Step 1, added link. Expected: Unable to parse error. Seen: Unable to parse error.
  3. Grinnell College. Expected: Can't find the link. Seen: Unable to parse error.
  4. Grinnell College. Refresh browser. Expected: Can't find the link. Seen: Can't find the link.
  5. Grinnell College. Continuing from Step 4, added link. Expected: Privacy policy summary. Seen: Unable to parse error.
  6. Barnes & Noble. Expected: Privacy policy summary for Barnes & Nobles. Seen: Privacy policy summary for Grinnell College.

Hypotheses about what the bug is

  1. Fetch calls are ill-formatted.
  2. Need more wait time between fetch calls.

Journal Entries

The intention is to experiment with clicking to see the different console logs and errors on the front-end web. 4/30/24 4:30 PM Barnes & Noble. Load screen. Incorrect privacy policy. 4/30/24 4:31 PM Console logged the library received correctly but still the wrong entry. 4/30/24 4:35 PM Barnes & Noble. Load screen. Unable to parse. 4/30/24 4:35 PM Console log. Error with status 500 from the web server. 4/30/24 4:36 PM Barnes & Noble. Load screen. Unable to parse. Error with status 504 from the web server. 4/30/24 4:40 PM Grinnell College. Load screen. Find link. [Correct] 4/30/24 4:42 PM Grinnell College. Load screen. Logged - I've been submitted. However, the error with sending is 503. 4/30/24 4:50 PM Grinnell College. Logged - I've been submitted. However, the error with sending is 503. 4/30/24 4:53 PM Grinnell College. Load screen. Find Link. Entered. Privacy Policy appears. On console. Logged - I've been submitted. However, the error with sending is 504 about Gateway Timeout. 4/30/24 5:00 PM Investigation will pause tonight for discussion and ramp-up with web server. 4/30/24 8:30 PM Meeting with Liam on witnessing errors on the server side. 4/30/24 9:00 PM We resolved the issues I was seeing due to the unforeseen and last-minute changes from the back end. We discovered this through discussion. We will also work to simplify our fetch calls.

A description of the solution

Ongoing Solution: Change the wait time for fetch calls and remove caching with the web server.

A summary of strategies you used to solve the bug

To come to a solution, I experimented with using the extension on various websites and using log messages. Recording the server errors helped me troubleshoot how to improve the web server connection.

A reflection on what you learned from solving the bug

In development, it's interesting to witness how wait times influence our product. I think it's helpful for me to know as I continue with computing in the future.

Amani-Alqaisi commented 4 months ago

Bug Report: Privacy Policy Parsing Issue

Issue #8 Assigned to: Mia Hines

Description: Clicking on certain website links to view their privacy policy summary results in incorrect parsing and display of information.

Reproduction Steps:

  1. Attempt to load the NY Times website.
  2. Expected: Unable to parse error. Seen: Can't find the link.
  3. Continuing from Step 1, add the link.
  4. Expected: Unable to parse error. Seen: Unable to parse error.
  5. Attempt to load the Grinnell College website.
  6. Expected: Can't find the link. Seen: Unable to parse error.
  7. Refresh the browser.
  8. Expected: Can't find the link. Seen: Can't find the link.
  9. Continuing from Step 7, add the link.
  10. Expected: Privacy policy summary. Seen: Unable to parse error.
  11. Attempt to load the Barnes & Noble website.
  12. Expected: Privacy policy summary for Barnes & Nobles. Seen: Privacy policy summary for Grinnell College.

Communication about Bug Status:

Team Members Involved:

[End of Bug Report]