Ask HN: How to automate collecting HAR file while user is browsing

Hello

We are facing an intermittent issue in our web application where for some users for some reasons http requests are ending in error ( 400s ) esp. during token refresh with authentication server.

Normally, we would ask user to generate the HAR ( HTTP archive file ) and we inspect to find the root cause. However, at this time it is challenging to collect the HAR file manually because the error is not consistent. Sometimes it seems to goes away but suddenly appears causing bad user experience.

It is also hard to add logs etc. because the token refresh happens on the client side from the browser so technically there is no traces of it on the server side.

I am looking into ways to automate generating the HAR file but it seems not straightforward to do it.

If anyone of you have faces similar issue in the past and find a way to add such error logging in a web service let me know. Any other thoughts and suggestions are highly appreciated.

Thank you in advance.


Comments URL: https://news.ycombinator.com/item?id=42817554

Points: 11

# Comments: 9

https://news.ycombinator.com/item?id=42817554

Created 20h | Jan 26, 2025, 12:10:03 PM


Login to add comment

Other posts in this group

Show HN: Voice Cloning and Multilingual TTS in One Click (Windows)

We've created an open-source alternative to Eleven Labs for voice cloning and multilingual TTS. Key features:

- Clone voices from 15-second samples - 50+ pre-trained celebrity voice models - Sup

Jan 27, 2025, 4:20:10 AM | Hacker news
Making a live-mode test payment to yourself = a payment processor ToS violation?

To me it seemed like common sense that before you push the thing into the real world, no matter how much testing you do, you'd fire a couple test payments on the live version.

Apparently, after

Jan 27, 2025, 4:20:08 AM | Hacker news