<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ramyashree Balasubramanian</title>
    <description>The latest articles on DEV Community by Ramyashree Balasubramanian (@ramyashree_balasubramania).</description>
    <link>https://dev.to/ramyashree_balasubramania</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4054529%2F0c785e32-8a8a-4725-9d2f-492ef573b5bd.png</url>
      <title>DEV Community: Ramyashree Balasubramanian</title>
      <link>https://dev.to/ramyashree_balasubramania</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ramyashree_balasubramania"/>
    <language>en</language>
    <item>
      <title>🐛 The Bug That Knew When I Was Watching</title>
      <dc:creator>Ramyashree Balasubramanian</dc:creator>
      <pubDate>Thu, 30 Jul 2026 08:44:48 +0000</pubDate>
      <link>https://dev.to/ramyashree_balasubramania/the-bug-that-knew-when-i-was-watching-39ek</link>
      <guid>https://dev.to/ramyashree_balasubramania/the-bug-that-knew-when-i-was-watching-39ek</guid>
      <description>&lt;p&gt;The strangest bug I’ve ever faced had one really annoying habit:&lt;br&gt;
It disappeared whenever I tried to prove it was there.&lt;br&gt;
I was working on an AI powered Email Generator using React and Flask. Everything worked perfectly on my laptop. Enter the details, click Generate, and the email appeared almost instantly.&lt;/p&gt;

&lt;p&gt;I tested it again.&lt;br&gt;
And again.&lt;br&gt;
Nothing.😿&lt;/p&gt;

&lt;p&gt;No errors. No weird behaviour. Everything looked fine.&lt;br&gt;
So I deployed it.🙂‍↔️&lt;/p&gt;

&lt;p&gt;And that’s when things got interesting.&lt;/p&gt;

&lt;p&gt;The first request worked perfectly.&lt;br&gt;
The second one failed.&lt;br&gt;
I refreshed the page.&lt;br&gt;
Worked again.😃&lt;/p&gt;

&lt;p&gt;I used the exact same input.&lt;br&gt;
Failed.😑&lt;/p&gt;

&lt;p&gt;Changed the input?🫣&lt;br&gt;
Worked.&lt;/p&gt;

&lt;p&gt;At this point, I started blaming everything I could think of.&lt;/p&gt;

&lt;p&gt;Maybe the AI API was unstable.🤔&lt;br&gt;
Checked it.&lt;br&gt;
Perfect.&lt;/p&gt;

&lt;p&gt;Maybe the network.🤔&lt;br&gt;
Perfect.&lt;/p&gt;

&lt;p&gt;CORS?🤔&lt;br&gt;
Perfect.&lt;/p&gt;

&lt;p&gt;Frontend?&lt;br&gt;
Also perfect.🤷🏼‍♀️&lt;/p&gt;

&lt;p&gt;Everything looked innocent.👀&lt;br&gt;
Except my application 😂&lt;/p&gt;

&lt;p&gt;So I added logs everywhere, hoping I could finally catch the bug in the act.&lt;/p&gt;

&lt;p&gt;Instead, something even more frustrating happened.&lt;br&gt;
The bug almost stopped appearing.🥱&lt;/p&gt;

&lt;p&gt;The more carefully I watched it, the harder it became to reproduce.&lt;/p&gt;

&lt;p&gt;It honestly felt like the bug knew I was debugging it. 😭&lt;/p&gt;

&lt;p&gt;So I stopped asking:&lt;/p&gt;

&lt;p&gt;“Why is this request failing?”&lt;/p&gt;

&lt;p&gt;And started asking:&lt;/p&gt;

&lt;p&gt;“What is different between the request that worked and the one that didn't?”&lt;/p&gt;

&lt;p&gt;That changed the investigation.😮‍💨&lt;/p&gt;

&lt;p&gt;I compared the requests carefully.&lt;/p&gt;

&lt;p&gt;Same endpoint.&lt;br&gt;
Same API.&lt;br&gt;
Same frontend.&lt;br&gt;
Same input structure.&lt;/p&gt;

&lt;p&gt;But then I noticed something tiny.🫨&lt;/p&gt;

&lt;p&gt;The backend wasn't completely forgetting the previous request.&lt;br&gt;
It was remembering it.&lt;/p&gt;

&lt;p&gt;A piece of request-related state was accidentally being reused between requests.&lt;br&gt;
So the application wasn't actually failing randomly.😵‍💫&lt;/p&gt;

&lt;p&gt;It was doing exactly what I had told it to do.&lt;br&gt;
Just not what I thought I had told it to do.&lt;/p&gt;

&lt;p&gt;That was the real problem.🤖&lt;/p&gt;

&lt;p&gt;I isolated the request data, removed the unnecessary shared state, added proper validation and error handling, and ran the test that had been driving me crazy.&lt;/p&gt;

&lt;p&gt;One request.&lt;br&gt;
Two.&lt;br&gt;
Ten.&lt;br&gt;
Twenty.&lt;br&gt;
Nothing broke.&lt;br&gt;
The bug was gone.👻&lt;/p&gt;

&lt;p&gt;But honestly, fixing it wasn't the biggest lesson.&lt;/p&gt;

&lt;p&gt;The bigger lesson was realizing how much time I had spent trying to prove my assumptions instead of questioning them.&lt;/p&gt;

&lt;p&gt;I blamed the AI because it was an AI project.&lt;br&gt;
I blamed the network because the problem appeared after deployment.&lt;br&gt;
I blamed the frontend because that's where the user saw the failure.🤞🏻&lt;/p&gt;

&lt;p&gt;Meanwhile, the actual culprit had been sitting quietly in the backend the whole time.&lt;br&gt;
That experience changed the way I debug.&lt;br&gt;
Sometimes a bug doesn't need to be complicated to fool you.&lt;br&gt;
It just needs to make you look in the wrong direction.&lt;br&gt;
And maybe the most dangerous bugs aren't the ones that crash your application.👽&lt;/p&gt;

&lt;p&gt;They're the ones that work just often enough to convince you everything is fine. 🐛&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>bugsmash</category>
    </item>
  </channel>
</rss>
