<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tushar Bhendarkar on Medium]]></title>
        <description><![CDATA[Stories by Tushar Bhendarkar on Medium]]></description>
        <link>https://medium.com/@tusharbhendarkar?source=rss-5064326a4029------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yGgCDzgjxyNg0O3PsG6j8A.jpeg</url>
            <title>Stories by Tushar Bhendarkar on Medium</title>
            <link>https://medium.com/@tusharbhendarkar?source=rss-5064326a4029------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:43:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tusharbhendarkar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Integrate AI into an App Without Leaking Keys or Money]]></title>
            <link>https://medium.com/@tusharbhendarkar/how-to-integrate-ai-into-an-app-without-leaking-keys-or-money-a0d929365401?source=rss-5064326a4029------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0d929365401</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[openai-api-integration]]></category>
            <category><![CDATA[ai-integration]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[Tushar Bhendarkar]]></dc:creator>
            <pubDate>Sun, 11 Oct 2026 00:00:01 GMT</pubDate>
            <atom:updated>2026-10-12T04:22:19.968Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WS5M-uLY7EAFQ8FfTOGorA.jpeg" /></figure><p>Wrong answers were the rarest way AI features broke. I went through 480 public reports of AI features failing inside real apps, from OpenAI’s developer forum, Reddit and Hacker News, and sorted each by its cause. Only 29 were about the AI saying something wrong. The rest were slow calls, answers the app couldn’t read, billing limits, surprise bills, model changes and leaked keys.</p><p>That’s good news if you’re working out how to integrate AI into an app. Wrong answers are hard to fix. The mechanical failures are not: each one has a known safeguard, and most take an afternoon to add.</p><p>I build AI into products for a living. I built an AI research tool that cut hours of reading SEC filings to under 5 minutes, one of my own products runs a daily AI job, and in the Trust Identity Protocol I shipped a <a href="https://github.com/theailaborg/tip-protocol/pull/69">classifier pipeline that scans content in the background</a> so it never slows down the user. This is the setup I use, in the order I add it.</p><h3>What integrating AI into an app actually means</h3><p>Under the hood, adding AI to an app is one network call: your app sends text (and sometimes images) to a model from OpenAI, Anthropic or Google, and gets text back. You pay per token, roughly per word, in both directions. Everything else in this post is about where that call happens and what you check around it.</p><p>The shape that holds up is five stops, and each safeguard lives at one of them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B1eF88MHhaOTriABmV0L3Q.png" /></figure><p>Each safeguard lines up with a group in the 480 reports. The AI drafts; a person decides.</p><h3>Where AI features break: 480 real reports</h3><p>The reports run from January 2025 to October 2026. Most come from the OpenAI developer forum, where people post problems with their own integrations, plus Reddit and Hacker News. I kept only cases of an AI feature inside someone’s app or website, not people using ChatGPT itself, and grouped them by the cause the thread gave, or by the main symptom when it gave none.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HTOETSU1piAsyGjNncz0tw.png" /></figure><p>Wrong answers were only 29. Most failures were mechanical: slow calls, unreadable output, billing limits and model changes.</p><p>Wrong answers and retrieval problems matter, and I wrote a separate guide on <a href="https://tusharbhendarkar.com/blog/ai-chatbot-giving-wrong-answers">why AI chatbots give wrong answers</a>. But if you only test whether the answers are good, you’ll miss most of what breaks in production.</p><h3>Step 1: keep the AI key on your server</h3><p>The most expensive reports in the set were all leaked keys. One developer posted on Hacker News about <a href="https://news.ycombinator.com/item?id=47247060">$82,314 in 48 hours</a> from a Gemini key that had been uploaded to GitHub, against a normal spend of $180 a month. Another got a <a href="https://news.ycombinator.com/item?id=47791871">€54,000 bill in 13 hours</a> from a browser-side Firebase key that had no restrictions and could call Gemini. On the OpenAI forum, a key shipped inside a published VS Code extension quietly drained someone’s credits.</p><p>The rule is simple: the browser never holds an AI key. Anything sent to a browser or bundled into a mobile app can be read by whoever uses it, which Google’s <a href="https://ai.google.dev/gemini-api/docs/api-key">Gemini key guide</a> says plainly, and OpenAI’s <a href="https://github.com/openai/openai-node">official Node library</a> refuses to run in a browser unless you switch that protection off. Anthropic’s <a href="https://support.claude.com/en/articles/9767949-api-key-best-practices-keeping-your-keys-safe-and-secure">key safety guide</a> compares a leaked API key to a leaked credit card number.</p><p>Instead, your app calls a route on your own server, and only that route talks to the AI provider. The key lives in the server’s environment variables, never in the code or the repo. This is a minimal version in Next.js:</p><pre>// app/api/draft/route.ts: runs on your server, never in the browser import OpenAI from &#39;openai&#39;; import { zodTextFormat } from &#39;openai/helpers/zod&#39;; import { z } from &#39;zod&#39;; const openai = new OpenAI({ timeout: 30_000, maxRetries: 2 }); // key from OPENAI_API_KEY const Draft = z.object({ subject: z.string().max(120), body: z.string().max(2000) }); export async function POST(req: Request) { const { message } = await req.json(); const res = await openai.responses.create({ model: process.env.AI_MODEL!, // a dated version, not a &quot;latest&quot; alias input: [{ role: &#39;user&#39;, content: String(message).slice(0, 4000) }], max_output_tokens: 800, text: { format: zodTextFormat(Draft, &#39;draft&#39;) }, // strict structured output }); const parsed = Draft.safeParse(JSON.parse(res.output_text)); if (!parsed.success) return Response.json({ error: &#39;try again&#39; }, { status: 502 }); return Response.json({ draft: parsed.data, status: &#39;needs_approval&#39; }); }</pre><p>It also needs a login check and a per-user limit, which depend on your app. The point is the shape: the key, the limits and the checks all sit on your side.</p><h3>Step 2: cap the spending before the first user</h3><p>Fifty-three reports were surprise bills and 64 more were rate limit or quota errors, and 45 of those were really billing: the account had run out of credit or hit its cap. One of my own products had AI features with no spending limit at all, so one bad day could have cost any amount. I added a hard cap and a switch to turn the feature off, and I now add both before launch.</p><p>Every provider has a limit, but they behave differently, and none of them is instant:</p><ul><li><strong>OpenAI:</strong> alerts only notify you. A <a href="https://developers.openai.com/api/docs/guides/spend-limits">hard spend limit</a> makes requests fail with a 429 error, but the docs say limits are not instant and you can overshoot slightly. One forum post describes a leaked key running up <a href="https://community.openai.com/t/ignored-for-3-weeks-1-893-fraudulent-balance-after-hacker-bypassed-hard-limit-where-is-support/1385860">$1,893 in 34 minutes</a> on an account with a $600 hard limit.</li><li><strong>Anthropic:</strong> you can set your own <a href="https://platform.claude.com/docs/en/api/rate-limits">monthly spend limit</a> below your tier’s cap; reaching it returns an HTTP 400 error, and reaching the tier cap pauses usage until the next month.</li><li><strong>Google:</strong> Google AI Studio has <a href="https://ai.google.dev/gemini-api/docs/billing">project spend caps</a>, marked experimental with about 10 minutes of delay. Google Cloud <a href="https://docs.cloud.google.com/billing/docs/how-to/budgets">budget alerts</a> do not stop spending on their own.</li></ul><p>So the provider’s limit is the last line, not the first. In your own app, cap how many AI calls each user can make per day and how long each prompt and reply can be, and give each app its own project or workspace with its own limit, so one leak can’t drain everything. OWASP has a name for the attack where someone runs up your bill on purpose: <a href="https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption/">denial of wallet</a>.</p><h3>Step 3: plan for slow calls and rate limits</h3><p>Slow responses and timeouts were the biggest group, at 91. AI calls take seconds, sometimes far longer, and some hang: one developer found <a href="https://community.openai.com/t/troubleshooting-sporadic-gpt-4-1-llm-timeouts/1371736">about 1% of calls hung until timeout</a> with no error at all. Serverless hosts make it worse. A GPT-5 call on AWS Lambda kept timing out because idle connections get dropped, and one side project got a <a href="https://www.reddit.com/r/nextjs/comments/1kn0rd5/">$1,500 Vercel bill</a>, mostly for functions sitting idle while they waited on slow streamed replies.</p><ul><li><strong>Set a time limit on every call</strong>, and tell the user what happened when it runs out, instead of a spinner that never stops.</li><li><strong>Retry with a growing wait.</strong> OpenAI’s <a href="https://developers.openai.com/api/docs/guides/rate-limits">rate limit guide</a> recommends exponential backoff with random jitter, and warns that failed requests still count against your limit, so instant retries make it worse. Anthropic’s official libraries retry twice by default.</li><li><strong>Stream long answers</strong> so the user sees text arriving, and Anthropic recommends streaming or batches for anything that may run over 10 minutes.</li><li><strong>Move slow work off the user’s path.</strong> That’s what the TIP classifier does: content is registered straight away, a background worker scans it, and the result arrives as a separate event. The user never waits on the AI.</li></ul><h3>Step 4: make the output something your code can read</h3><p>The second biggest group, 82 reports, was output the app couldn’t use: broken JSON, missing fields, tool calls with the wrong shape. One developer found their <a href="https://community.openai.com/t/invalid-json-in-structured-mode/1116738">JSON had an extra closing brace about 40% of the time</a> until they switched on strict mode. Another saw 8 broken replies in 10,871 calls even with structured output on, and fixed it by checking and retrying.</p><p>Use the provider’s structured output in strict mode: <a href="https://developers.openai.com/api/docs/guides/structured-outputs">OpenAI</a> and <a href="https://platform.claude.com/docs/en/build-with-claude/structured-outputs">Anthropic</a> both constrain the reply to a schema you define. Then check it anyway, the way the safeParse line in the example does, and retry or fall back when it fails. OWASP&#39;s advice is to <a href="https://genai.owasp.org/llmrisk/llm052025-improper-output-handling/">treat model output like untrusted user input</a>: never put it straight into a database query, a page&#39;s HTML or a shell command.</p><p>A quieter version of this broke one of my own products. A daily AI job published broken content about nine days a month, and nobody was told, because nothing threw an error. A better prompt didn’t fix it. Checking the result before publishing did, plus an alert when the check fails. It’s the same lesson as in <a href="https://tusharbhendarkar.com/blog/n8n-not-working">why n8n workflows stop working</a>: the failures that hurt are the silent ones.</p><p><strong>Adding AI to an app you already run?</strong> I take on client projects building AI features into existing products: the server route, limits, checks and an approval step. Send me what you want the AI to do and what your app is built on.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Add%20AI%20to%20my%20app">Email me</a></p><h3>Step 5: pin the model version and test before you switch</h3><p>Forty-four reports broke when the model changed under them. Some called a model that had been retired. Others got an update that behaved differently: a production voice agent went from almost every command working (98 to 100%) to <a href="https://community.openai.com/t/gpt-realtime-2-1-production-tool-invocation-regression-model-answers-instead-of-calling-available-tools/1398438">about 25%</a> because the new version answered instead of calling its tools, and another team’s feature quietly got worse for about 10 days until a user mentioned it.</p><p>Models are retired on a schedule, and each provider gives different notice:</p><p>Provider Notice before a model is retired</p><p>OpenAI</p><p>At least 6 months for generally available models, as little as 2 weeks for previews</p><p>Anthropic</p><p>At least 60 days for public models</p><p>Google Gemini</p><p>At least 2 weeks for previews; “latest” aliases are swapped with each release</p><p>So use a dated model version in production, not an alias that moves; Google’s <a href="https://ai.google.dev/gemini-api/docs/models">model guide</a> says most production apps should use a specific stable model. And keep a small set of test questions with the answers you expect, taken from real use. Anthropic’s <a href="https://platform.claude.com/docs/en/test-and-evaluate/develop-tests">testing guide</a> says to mirror real tasks and include edge cases, and OpenAI recommends running your tests on every change. Run them before you switch models, and you find the 25% before your users do.</p><h3>Step 6: the AI drafts, a person approves</h3><p>The wrong answers that did happen were the ones with real cost: a scheduling assistant <a href="https://community.openai.com/t/assistant-api-doesnt-know-current-datetime/1102565">picked the wrong dates</a> because the model has no clock (the fix is putting today’s date in the prompt), and a voice assistant skipped phone number validation and quietly corrected input to pass. In the best-known case, Air Canada’s chatbot told a customer the wrong refund policy, and <a href="https://genai.owasp.org/llmrisk/llm092025-misinformation/">a tribunal held the airline to it</a>.</p><p>No prompt makes a model always right; Anthropic’s own guide says its techniques <a href="https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations">reduce but do not eliminate errors</a>. The fix is deciding what the AI may do on its own. OWASP’s guidance for AI apps is to <a href="https://genai.owasp.org/llmrisk/llm062025-excessive-agency/">require a human to approve high-impact actions</a> before they are taken, and OpenAI recommends a person review outputs before use in high-stakes areas.</p><ul><li><strong>Let the AI act alone</strong> when a mistake is cheap and visible: suggestions, search, summaries the user reads, tagging, first drafts.</li><li><strong>Make it a draft</strong> when the result sends, charges, deletes or publishes: replies to customers, refunds, emails, posts, changes to records. The AI writes it; a person presses send.</li></ul><p>In practice that’s one extra state on the record, “needs approval”, and a screen that lists drafts with Approve and Edit buttons. I built <a href="https://tusharbhendarkar.com/tools/client-approvals">Client Approvals</a> around the same idea for client work: nothing goes out until the right person signs it off, and there’s a record of who did.</p><h3>Which AI model to use, and what it costs to run</h3><p>Start with the cheapest model that passes your test questions and move up only where it fails. The price gap is large. From each provider’s pricing page, per million tokens, as of October 2026:</p><p>A feature that sends 2,000 tokens and gets 500 back, 10,000 times a month, costs about $4.50 on GPT-6 Luna and about $450 on GPT-6 Astra. Work that can wait up to a day, like nightly summaries, is half price through the batch APIs of <a href="https://developers.openai.com/api/docs/guides/batch">OpenAI</a>, <a href="https://platform.claude.com/docs/en/about-claude/pricing">Anthropic</a> and <a href="https://ai.google.dev/gemini-api/docs/pricing">Google</a>. Watch images: one developer found gpt-4o-mini <a href="https://community.openai.com/t/unexpected-token-discrepancy-in-gpt-4o-mini-vision-billing-vs-api-usage/1109085">bills image tokens at about 33 times the rate</a>, so a picture cost as much as on the bigger model.</p><p>On your users’ data: OpenAI has <a href="https://developers.openai.com/api/docs/guides/your-data">not trained on API data</a> by default since March 1, 2023, and Anthropic <a href="https://privacy.claude.com/en/articles/7996868-is-my-data-used-for-model-training">doesn’t train on commercial API data</a> by default. Google’s Gemini free tier is the exception: its <a href="https://ai.google.dev/gemini-api/terms">terms</a> say human reviewers may read input and output, so keep personal data on a paid tier.</p><h3>What I check before an AI feature goes live</h3><ol><li>No AI key anywhere in the browser, the mobile app or the repo.</li><li>A hard spending limit at the provider, a per-user limit in the app, and an off switch.</li><li>A time limit and retries with a growing wait on every call.</li><li>A dated model version, and test questions that run before any switch.</li><li>Structured output in strict mode, checked again in code, with a fallback.</li><li>Anything that sends, charges, deletes or publishes waits for a person.</li><li>An alert when a check fails, so silent failures stop being silent.</li></ol><p><strong>Want an AI feature built properly from the start?</strong> I build AI assistants, document tools and agents as client projects, with the safeguards above in place before launch. Send me what it should do and who will use it.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Build%20an%20AI%20feature">Email me</a></p><h3>The AI should make the draft, not the decision</h3><p>Integrating AI into an app is mostly ordinary engineering: keys on the server, limits, time limits, checks and alerts. The model is the easy part to swap. What keeps the feature safe is that it drafts, a person decides where it matters, and your code never trusts a reply it hasn’t checked.</p><p>If you’re adding AI to an app built with Lovable, Replit or Base44, start with <a href="https://tusharbhendarkar.com/blog/how-to-build-an-mvp">how to build an MVP with AI tools</a> for where those apps break, and the <a href="https://tusharbhendarkar.com/blog/topics/ai-chatbots">AI chatbots and assistants guides</a> for the rest. And if you’d rather hand it over, I build AI features as client projects: send me what you’re building and where it stands.</p><p><em>Originally published at </em><a href="https://tusharbhendarkar.com/blog/how-to-integrate-ai-into-an-app"><em>https://tusharbhendarkar.com</em></a><em> on October 11, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0d929365401" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[n8n Not Working? Why Workflows Stop, and the Fix for Each Cause]]></title>
            <link>https://medium.com/@tusharbhendarkar/n8n-not-working-why-workflows-stop-and-the-fix-for-each-cause-84b113c2d345?source=rss-5064326a4029------2</link>
            <guid isPermaLink="false">https://medium.com/p/84b113c2d345</guid>
            <category><![CDATA[n8n-workflow-automation]]></category>
            <category><![CDATA[n8n-self-host]]></category>
            <category><![CDATA[n8n-automation]]></category>
            <category><![CDATA[n8n-workflow]]></category>
            <category><![CDATA[n8n]]></category>
            <dc:creator><![CDATA[Tushar Bhendarkar]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 00:00:45 GMT</pubDate>
            <atom:updated>2026-10-09T08:46:00.076Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcRNhKBP3A8fKq7xni_31w.jpeg" /></figure><p>Most broken n8n workflows aren’t broken by n8n. I read 398 public reports from n8n’s community forum and Reddit where someone’s automation stopped working, and in 317 of them the thread found the cause. Only about 1 in 10 was a bug in n8n. The rest were a setting, another app’s rules, or the workflow itself.</p><p>That sounds like good news, but it’s also why these problems drag on. n8n can’t warn you about a setting it doesn’t know is wrong, and many of these failures make no noise at all: a schedule that never fires, a webhook pointing at an address nobody can reach, a Google sign-in that expires every seven days.</p><p>The templates most people start from don’t help much here. I ran the 200 most-viewed workflows on n8n’s template library through my <a href="https://tusharbhendarkar.com/tools/n8n-workflow-checker">n8n workflow checker</a>: of their 368 HTTP Request steps, 333 have no retry and no error handling, so one failed call ends the whole run.</p><p>Below are the causes in the order I’d check them, each with the fix from n8n’s own documentation, and what I found in those templates at the end.</p><h3>What 398 broken n8n workflows had in common</h3><p>The reports run from January 2025 to September 2026: 340 threads from n8n’s community forum and 58 from Reddit’s r/n8n. I sorted each one by the cause the thread gave, from the poster, an accepted answer, an n8n staff member or another reply, or by the main symptom when nobody found one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t4qn4mGncsSEpQxVBZrEpQ.png" /></figure><p>Self-hosting and webhooks lead. Of the reports with a stated cause, about 1 in 10 was a bug in n8n.</p><p>Two things stood out. Self-hosting problems were the biggest group, and most of them weren’t about n8n’s code at all: they were about memory, Docker and the proxy in front of it. And the group that hurts most, workflows that work when you click the button but never run on their own, was also the least solved: 16 of those 34 threads never found a cause.</p><h3>It works when you click it, but never runs on its own</h3><p>Start here, because the most common reason changed recently. Since n8n 2.0 in December 2025, the old Active toggle is gone. Your edits <a href="https://docs.n8n.io/build/understand-workflows/save-and-publish-workflows/">save automatically as a draft</a>, and nothing goes live until you click Publish. Live runs keep using the last published version, so a workflow can show “Published, has changes”: it’s running, but not the version you fixed. A publish can also partly fail, with some triggers switched on and others not.</p><p>Then check what starts it, and when:</p><ul><li><strong>A real trigger.</strong> The Manual Trigger only runs when you click. A workflow needs a Schedule, Webhook or app trigger to run by itself, and since 2.0 n8n won’t publish one without it.</li><li><strong>No pinned test data.</strong> Data you pinned while testing is ignored in live runs, so a workflow that only worked because of pinned data behaves differently once published.</li><li><strong>The right timezone.</strong> The <a href="https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.scheduletrigger/">Schedule Trigger</a> uses the workflow’s timezone, or the instance’s if none is set, and self-hosted n8n defaults to New York time. Set it under Workflow settings, or with GENERIC_TIMEZONE on your server. Changing the schedule after publishing does nothing until you publish again.</li><li><strong>Runs missed while n8n was down are gone.</strong> By default, schedules live in memory, so a run whose time passes during a restart or crash is skipped, not caught up. A <a href="https://docs.n8n.io/deploy/host-n8n/configure-n8n/durable-scheduler/">durable scheduler</a> that can catch up arrived in n8n 2.36, but it’s off unless you turn it on.</li><li><strong>Email triggers that check for new mail.</strong> Several Gmail threads came down to the “only unread emails” filter, or to checking for new mail every minute. Polling less often, every five minutes, fixed one of them.</li></ul><h3>The webhook worked in testing, then stopped</h3><p>Every Webhook node has two addresses. The test URL, with /webhook-test/ in it, only listens for <a href="https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/common-issues/">120 seconds</a> after you click Listen for test event. The production URL, with /webhook/, only works while the workflow is published, and its runs appear in the Executions tab rather than on the canvas. A webhook that worked in testing and then went quiet is very often still pointing at the test address.</p><p>On a self-hosted server, the bigger problem is the address itself. In 22 webhook reports, the cause was n8n not knowing its own public address, so it handed out links like <a href="http://localhost:5678/">http://localhost:5678</a> that nothing outside your server can reach. n8n builds webhook addresses from N8N_HOST, which defaults to localhost. Behind a reverse proxy, n8n’s <a href="https://docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/configuration-examples/configure-webhook-urls-with-reverse-proxy/">proxy guide</a> says to set N8N_WEBHOOK_URL to your public https address and N8N_PROXY_HOPS to 1. Most guides still say WEBHOOK_URL: that name is deprecated from version 2.35, though it still works with a warning.</p><p>Setting the variable isn’t always enough. In several threads it was written in an .env file that never reached the program: a Docker Compose file with no env_file line, or n8n started as a system service without its environment file. Telegram and WhatsApp were involved in about 30 of the webhook reports: both only accept a webhook address they can reach over https, and both allow one webhook per bot or app, so a second workflow quietly takes over from the first. And on n8n Cloud, a webhook that takes longer than 100 seconds to answer fails with a 524 error, so long jobs should answer right away and do the work afterwards.</p><p><strong>Is an automation your business depends on broken?</strong> I fix n8n workflows, self-hosted or on n8n Cloud. Send me what it should do and where it stops, and I’ll tell you the cause and a fixed price before I change anything.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=My%20n8n%20workflow%20is%20not%20working">Email me</a></p><h3>Self-hosting: memory, Docker and “Connection lost”</h3><p>Self-hosting was the biggest group, with 70 reports. Running n8n yourself is cheap, but you become the person who looks after the server, and these are the problems that came up again and again:</p><ul><li><strong>“Connection lost” in the editor.</strong> It was the most common error message in the whole set, and in about 10 threads the cause was a proxy like NGINX not passing WebSocket connections through. If it appears in the middle of a run instead, the instance may have crashed.</li><li><strong>Running out of memory.</strong> n8n puts <a href="https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/fix-memory-issues/">no cap</a> on how much data a step loads, so one big spreadsheet or file can crash it, often showing up as “Connection lost” or a 503 rather than a clear memory error. n8n suggests working in smaller batches, such as 200 rows per run instead of 10,000. Testing by hand uses more memory than live runs, because n8n keeps a copy for the editor.</li><li><strong>Data gone after an update.</strong> The official Docker setup keeps everything in a volume at /home/node/.n8n. In one thread the volume pointed at /root/.n8n instead, so every update started from a blank setup screen.</li><li><strong>“Credentials could not be decrypted.”</strong> n8n encrypts your saved logins with a key it creates on first launch and stores in that same folder. Lose the folder, or start n8n with a different key, and every saved credential becomes unreadable. Even if your data lives in Postgres, keep that volume and back up the key.</li><li><strong>Runs stuck in “queued”.</strong> In queue mode, workers do the actual work. In the most-viewed thread of this group, the extra containers had been started without their worker command, so jobs waited forever. Workers also need the same encryption key as the main instance.</li></ul><h3>Google sign-in that keeps expiring</h3><p>Credentials were 45 reports, and most involved Google. Two causes came up again and again. The first, in 15 threads, was a redirect address mismatch, which Google reports as redirect_uri_mismatch: it only accepts the exact address you registered, so copy the OAuth Redirect URL from n8n into Google Cloud Console character for character, including https and the port. On a self-hosted server that address often said localhost, for the same reason webhooks do.</p><p>The second is a Google app left in Testing mode. n8n’s <a href="https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/">Google docs</a> note that apps in Testing with External users lose their sign-in after seven days, so a workflow runs for a week and then stops. Publishing the app in Google Cloud Console ends that. On n8n Cloud, many Google nodes offer a managed “Sign in with Google” that avoids building your own Google app at all.</p><p>Forty-three reports were workflows that broke after updating, and about 23 of them involve the 2.x versions that started in December 2025. n8n called 2.0 a <a href="https://docs.n8n.io/changelog/v20-breaking-changes/">hardening release</a>, and it changed defaults on purpose:</p><ul><li>Code nodes can no longer read environment variables.</li><li>The Execute Command node is switched off, and file nodes can only reach one folder.</li><li>OAuth callback addresses now need authentication, and the old Python Code node was removed.</li><li>Activate became Publish, so saving no longer changes what’s live.</li></ul><p>The rest were plain regressions, and the fix that worked most often was moving to a newer Stable release (about 13 threads), with three people rolling back instead. Two n8n Cloud users were on a Beta version without knowing it, which broke every Code node they had. n8n recommends the Stable track for anything important, pinning an exact version, updating at least monthly so the jumps stay small, and a full backup first. Since 2.0 there’s also a Migration Report under Settings that lists what will break before you upgrade.</p><p>If you self-host, plan for the next one now. n8n says version <a href="https://docs.n8n.io/changelog/v30-breaking-changes/">3.0</a> is due in October 2026: it supports only Docker for self-hosting, cuts the Code node time limit from five minutes to one, and removes the old Cron, Interval and Function nodes along with the first version of the AI Agent node.</p><h3>The AI Agent doesn’t use its tools</h3><p>Fifty reports were about the AI Agent node, and the biggest group was an agent that answered without using its tools, or called them with empty values. n8n’s <a href="https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/tools-agent/">agent docs</a> and the accepted answers point to the same fixes:</p><ul><li><strong>Describe each tool.</strong> The description is how the agent decides when to use it, so say plainly what it does and when to call it.</li><li><strong>Let the model fill the inputs.</strong> When a tool always got empty input, the fix an n8n staff member gave was $fromAI(), which lets the model supply that value.</li><li><strong>Use a model that calls tools well.</strong> Small local models sometimes write the tool call as plain text instead of making it. A larger model fixed it in one thread, and n8n 2.40 added a Force Tool Call on First Iteration option for exactly this.</li><li><strong>Look at what it actually did.</strong> When a tool fails, the error goes back to the agent as text and can disappear inside its friendly answer. Turn on Return Intermediate Steps to see every tool call.</li><li><strong>Store memory somewhere real.</strong> Simple Memory doesn’t last between sessions and doesn’t work in queue mode. For a chat that should remember people, use a database-backed memory, and give it a session ID, which a Telegram trigger doesn’t provide by itself.</li></ul><p>An agent that answers confidently without checking its tools is the same problem I wrote about in <a href="https://tusharbhendarkar.com/blog/ai-chatbot-giving-wrong-answers">why AI chatbots give wrong answers</a>: the fix is usually in what the model is given, not in the model.</p><p><strong>Want an automation that tells you when it fails?</strong> I can review your n8n workflows and add the parts templates leave out: retries, alerts, safe re-runs and a check on the result. You get a fixed price before any work starts.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Make%20my%20n8n%20automation%20reliable">Email me</a></p><h3>Outside APIs, rate limits and n8n Cloud limits</h3><p>A 429 error means the other service is telling you to slow down, and n8n shows it as “The service is receiving too many requests from you.” The <a href="https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/common-issues/">HTTP Request docs</a> give two fixes: turn on Retry On Fail in the node’s settings, or send requests in batches, such as one per second. Not every 429 is about speed, though. In one thread it was an OpenAI account out of credits, and in another a provider cut the limit when the account balance dropped.</p><p>On n8n Cloud, the plan limits are the other surprise. When you hit your monthly execution limit, n8n’s help center says new runs fail at once with “Execution limit reached”. They aren’t queued and they aren’t re-run later, even though your triggers keep firing. The limit resets on the first of each calendar month, not your billing date. Memory is small too: the Starter plan gets <a href="https://docs.n8n.io/deploy/use-n8n-cloud/configure-cloud/manage-your-data/">320 MiB</a>, and n8n itself uses about 180 of that, so a few large files or several AI steps at once can crash the workspace. About 8 Cloud users in the reports hit exactly that.</p><h3>What I found in the 200 most-viewed n8n templates</h3><p>Most people don’t start from a blank canvas. They import a template, so I took the 200 most-viewed workflows on n8n’s public template library, with 11.7 million views between them, and ran each one through my free <a href="https://tusharbhendarkar.com/tools/n8n-workflow-checker">n8n workflow checker</a>, which reads the same workflow file you import into n8n.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jByVG2jcubDttysjtNfaYQ.png" /></figure><p>Templates show the happy path. Retries and alerts are the part you have to add yourself.</p><p>To be fair to the authors, templates are starting points, and an error alert usually lives in a separate workflow, so it wouldn’t be part of a template anyway. But that’s the point: when you import one, nothing in it tells you what will happen when a step fails. Of 368 HTTP Request steps, only 12 retry, and 333 have neither a retry nor any error handling. Thirty-seven templates only run when you click, and 13 still carry pinned test data that live runs ignore.</p><p>Three templates had an expression pointing at a step that had been renamed. In one, the step was now called “Appointment Scheduling Agent1” while the expression still asked for “Appointment Scheduling Agent”, so that step fails as soon as it runs. The good news: none of the 200 contained a real API key. Keys live in credentials, which never travel with a workflow, so after importing you connect your own.</p><h3>What keeps an n8n workflow running</h3><p>Almost every cause in this post is quiet. The workflow doesn’t crash in front of you. It stops firing, or fails at 3am, and the run sits in the Executions list where nobody looks.</p><p>I learned that on one of my own products. It ran a daily job that published broken content about nine days a month, and nobody was told, because it never threw an error. What fixed it wasn’t a smarter job: it was checking the result before publishing, and sending an alert when it failed.</p><p>In n8n, that means three things. Create one <a href="https://docs.n8n.io/build/flow-logic/handle-errors-gracefully/">error workflow</a> that starts with an Error Trigger and emails or messages you, and select it in each workflow’s settings; one error workflow can serve all of them. Turn on Retry On Fail for every step that calls another service. And where a run can fail without an error, like an empty result or a half-written record, add a check that stops the run with a Stop And Error node, so it reaches your alert too. Since version 2.5, n8n emails the owner once on the first live failure if no error workflow is set, but only once, so don’t rely on it.</p><p>If you’d like a quick look first, paste your workflow into the <a href="https://tusharbhendarkar.com/tools/n8n-workflow-checker">n8n workflow checker</a>. It runs in your browser, so the workflow never leaves your computer. There are more guides on automations in <a href="https://tusharbhendarkar.com/blog/topics/automation">Automate and connect your tools</a>.</p><p>And if you’d rather hand it over, send me the workflow and where it stops. I’ll tell you which of these it is, and give you a fixed price if it’s more than a setting.</p><p><em>Originally published at </em><a href="https://tusharbhendarkar.com/blog/n8n-not-working"><em>https://tusharbhendarkar.com</em></a><em> on October 9, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84b113c2d345" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build an MVP with AI Tools, and Where to Stop]]></title>
            <link>https://medium.com/@tusharbhendarkar/how-to-build-an-mvp-with-ai-tools-and-where-to-stop-3505d77ee802?source=rss-5064326a4029------2</link>
            <guid isPermaLink="false">https://medium.com/p/3505d77ee802</guid>
            <category><![CDATA[mvp]]></category>
            <category><![CDATA[ai-app-development]]></category>
            <category><![CDATA[mvp-development-services]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[mvp-development]]></category>
            <dc:creator><![CDATA[Tushar Bhendarkar]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 00:00:26 GMT</pubDate>
            <atom:updated>2026-10-10T10:03:10.158Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TdhMBLVtjSMU0b8YRn5srg.jpeg" /></figure><p>The part of an MVP that AI app builders get right is rarely the part that breaks. I went through 752 public reports of apps built with Lovable, Base44 and Replit going wrong, and sorted each one by its cause. Most of them weren’t about the screens. They broke when the app went live, at logins and stored data, over money, and when the platform itself went down.</p><p>That matters if you’re deciding how to build an MVP today. AI builders really do get you to a working product in days, and that’s the right way to start. The mistake is assuming the part you can see is the part that’s finished.</p><p>I build SaaS apps myself. <a href="https://tusharbhendarkar.com/tools/launch-check">Launch Check</a> and <a href="https://tusharbhendarkar.com/tools/client-approvals">Client Approvals</a> both run on Next.js, Supabase and Stripe subscriptions, and I fix apps people built with AI tools. This is the order I’d build an MVP in: what to let the AI do, and the specific points where I’d stop and bring in an engineer.</p><h3>What an MVP is, and what it is not</h3><p>Eric Ries, who popularised the term, defines a <a href="http://www.startuplessonslearned.com/2009/08/minimum-viable-product-guide.html">minimum viable product</a> as the version of a product that gets the most validated learning about customers for the least effort. He also warns that it isn’t about building a minimal product for its own sake. The point is to learn something, which means putting it in front of people and watching what they do.</p><p>Y Combinator’s Michael Seibel puts it more bluntly: the <a href="https://blog.ycombinator.com/startup-school-week-2-recap-michael-seibel-adora-cheung-and-ilya-volodarsky">MVP is something ridiculously simple</a> you give your first users, his advice is to launch something bad quickly, and it should take weeks, not months. Reid Hoffman, who coined the line about being embarrassed by your first version, adds the <a href="https://www.linkedin.com/pulse/arent-any-typos-essay-we-launched-too-late-reid-hoffman">caveat people forget</a>: launching fast isn’t permission to cut corners, and if your launch alienates users, you launched too soon. That’s exactly where AI-built MVPs get into trouble.</p><h3>Step 1: pick one job and your first ten users</h3><p>Before you open any builder, write down the one job your product does and who it does it for. YC’s <a href="https://www.ycombinator.com/library/4D-yc-s-essential-startup-advice">essential startup advice</a> says ten customers with a burning problem beat a thousand with a passing annoyance, and quotes Paul Buchheit’s rule: find the version that gets 90% of the value for 10% of the work.</p><ul><li><strong>Timebox it.</strong> Seibel’s suggestion is to include only what you can build in three weeks, write that down, and cut features when the date slips rather than moving the date.</li><li><strong>Do things by hand.</strong> Paul Graham describes how Stripe’s “instant” merchant accounts were set up manually behind the scenes, and says that with few users you can <a href="https://paulgraham.com/ds.html">be your software</a>. Anything you can do by hand for the first ten users doesn’t need building yet.</li><li><strong>Find the users yourself.</strong> Graham’s point is that you have to go out and get your first users; nobody arrives because the app exists.</li></ul><h3>Step 2: build the screens with an AI app builder</h3><p>This is where AI builders shine. Each of them will build working screens, a database and logins from a description, and they differ mostly in what you can take with you. Here’s what each one says in its own docs and pricing pages, as of October 2026.</p><p>Lovable</p><p>Lovable Cloud (built on Supabase), Git sync on every plan</p><p>5 credits a day</p><p>100 credits a month</p><p>Bolt</p><p>Bolt Cloud (Netlify and Supabase)</p><p>1M tokens a month</p><p>$25 a month</p><p>Replit</p><p>Full stack, separate test and live databases</p><p>1 app, offline after 30 days</p><p>$20 a month</p><p>Base44</p><p>All in one: database, logins, payments</p><p>25 messages a month</p><p>$16 a month, yearly</p><p>v0</p><p>Next.js on Vercel, with Supabase or Neon</p><p>7 messages a day</p><p>$30 per user a month</p><p>Whichever you pick, connect it to GitHub on the first day, so a copy of the code lives in an account you own. Lovable’s <a href="https://docs.lovable.dev/introduction/subscription-plans">plans page</a> includes Git sync on every plan; on Base44 it needs the <a href="https://docs.base44.com/developers/app-code/local-development/github">Builder plan</a>. If you build with Lovable, I wrote up how to <a href="https://tusharbhendarkar.com/blog/export-lovable-project-to-github">export a Lovable project to GitHub</a> and keep the sync working.</p><h3>Where AI-built MVPs break: 752 real reports</h3><p>For three earlier guides I collected public reports of apps built with <a href="https://tusharbhendarkar.com/blog/lovable-app-not-working">Lovable</a>, <a href="https://tusharbhendarkar.com/blog/why-is-my-base44-app-not-working">Base44</a> and <a href="https://tusharbhendarkar.com/blog/replit-app-not-working">Replit</a> breaking: 752 in total, from Reddit, the platforms’ own forums, Trustpilot and Hacker News. Each platform names things differently, so I grouped them by the same causes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S7K0HZTGINqiu8D7Q6ecPQ.png" /></figure><p>Most of it was not the screens. It broke going live, at logins and data, over money, and when the platform went down.</p><p>Outside researchers found the same pattern, mostly around data. Matt Palmer <a href="https://mattpalmer.io/posts/statement-on-CVE-2025-48757/">scanned 1,645 Lovable apps</a> and found weak database access rules in 170 of them. Escape.tech <a href="https://escape.tech/blog/methodology-how-we-discovered-vulnerabilities-apps-built-with-vibe-coding/">checked over 5,600 AI-built apps</a> and found more than 2,000 vulnerabilities and 400 exposed secrets. And in July 2025, a Replit agent <a href="https://www.techtarget.com/searchsoftwarequality/news/366627829/Replit-AI-agent-snafu-shot-across-the-bow-for-vibe-coding">deleted SaaStr’s production database</a> during a coding session. Replit’s CEO promised to separate test and live databases, and every Replit app now has both.</p><h3>When to stop and bring in an engineer</h3><p>None of this means you shouldn’t use AI builders. It means there are specific moments when the MVP stops being a demo, and each of them lines up with a group in the reports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvwZjEWsMSwYhCamI0fN9A.png" /></figure><p>Each stop sign lines up with a group in the 752 reports.</p><h3>Strangers sign up and store their data</h3><p>This is the one I’d never skip. In one of my own products, any logged-in user could see other customers’ private data, because the app checked that you were logged in but not that the data you asked for was yours. Nothing crashed, which is why nobody noticed. OWASP found <a href="https://owasp.org/Top10/2025/A01_2025-Broken_Access_Control/">broken access control in every app it tested</a>, and Supabase’s <a href="https://supabase.com/docs/guides/deployment/going-into-prod">production checklist</a> includes row level security on every table. When I built Client Approvals, I wrote a test that checks one workspace can never see another’s requests. The quick version: sign up as two users and try to open each other’s records. More on this in <a href="https://tusharbhendarkar.com/blog/lovable-supabase-integration">connecting Lovable to Supabase safely</a>.</p><h3>It goes live on your own domain</h3><p>“Works in the preview, breaks live” was the second biggest group, and domains added 56 more. The preview and the live app often differ in settings, secrets and even databases. Replit keeps separate test and live databases, and its free plan’s one published app goes offline after 30 days. Open the live address in a private window and sign up as a new user before you send anyone the link.</p><h3>You take money from customers</h3><p>The payment usually works. What breaks is the app hearing about it. Stripe’s <a href="https://docs.stripe.com/webhooks">webhook docs</a> say your endpoint must verify each request came from Stripe, and that live events are retried for up to three days, so the same event can arrive twice. I wrote up the whole path in <a href="https://tusharbhendarkar.com/blog/lovable-stripe-integration">Lovable Stripe integration</a>. Before your first real customer, buy your own product with a real card on the live site.</p><h3>Running costs start to matter</h3><p>Seventy-four reports were apps taken offline by credits running out, spending limits or unpaid invoices. One of my own products had AI features with no spending limit, so one bad day could have cost any amount; I added a hard cap and a switch to turn the feature off. Set limits and alerts on every service that bills by usage before launch, not after the first surprise.</p><h3>Every AI fix breaks something else</h3><p>Sixty-nine reports describe the loop where a small fix breaks two working things. Replit’s <a href="https://replit.com/pricing">pricing page</a> itself warns that its agent may make mistakes, and Bolt’s docs say bigger projects make the AI process more of the code on every message. When the second fix fails, stop prompting and read the actual error, or hand it to someone who will.</p><h3>The business depends on it staying up</h3><p>Eighty-seven reports were the platform itself having an outage. You can’t fix that from inside the builder, but you can make sure you could leave. Lovable says you’re never locked in, and its <a href="https://docs.lovable.dev/tips-tricks/deployment-hosting-ownership">ownership guide</a> lists what becomes yours if you move: hosting, backups, logins, secrets and monitoring. Keep the code, the domain and the database in accounts you own; my guide to <a href="https://tusharbhendarkar.com/blog/transfer-github-repo-ownership">transferring a GitHub repo</a> covers the order.</p><p><strong>Got an AI-built MVP that needs to be ready for real users?</strong> I take on client projects finishing apps built with Lovable, Replit, Base44 and Bolt: logins and data, going live and payments. Send me the link and what it does.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Finish%20my%20AI-built%20MVP">Email me</a></p><h3>What 146 live AI-built apps were missing</h3><p>For the same guides I ran 146 live apps built with these tools through my free checkers, reading only what any browser receives. The platforms handle the basics well: all 143 apps that answered in time were on HTTPS. What’s left to the app was mostly missing. 134 of those 143 sent no Content-Security-Policy, the header that limits which scripts a page may run, and 78 of the 146 sent an empty page until JavaScript ran, which hurts link previews and search.</p><p>You can check your own app in a minute with the <a href="https://tusharbhendarkar.com/tools/security-headers-checker">security headers checker</a>, or run the full <a href="https://tusharbhendarkar.com/tools/launch-check">Launch Check</a> before you share the link.</p><h3>What an MVP costs to build and run</h3><p>Building it with an AI tool costs the subscription plus your time. Building or finishing it with an engineer is hours times a rate: in the model behind my <a href="https://tusharbhendarkar.com/tools/app-development-cost-calculator">app development cost calculator</a>, a simple web tool with login is about 120 hours, and a SaaS first version with login, subscriptions and an admin dashboard is about 320. If most of the screens already exist, finishing is usually far cheaper than starting over.</p><p>Running it is cheaper than most people expect, from each provider’s own pricing page:</p><ul><li><strong>Database and logins:</strong> <a href="https://supabase.com/pricing">Supabase</a> is free to start, but free projects pause after a week without activity; Pro is $25 a month with daily backups.</li><li><strong>Hosting:</strong> Vercel’s free Hobby plan is for <a href="https://vercel.com/docs/plans/hobby">non-commercial use only</a>, so a business that charges money belongs on Pro at $20 a month. Netlify and Cloudflare have free plans too.</li><li><strong>Email:</strong> <a href="https://resend.com/pricing">Resend</a> is free up to 3,000 emails a month.</li><li><strong>Payments:</strong> Stripe takes 2.9% plus 30 cents per successful US card payment, with no monthly fee.</li><li><strong>Domain:</strong> a .com is about $11 a year at registrars like <a href="https://porkbun.com/tld/com">Porkbun</a>.</li></ul><h3>The order I’d build it in</h3><ol><li>Write down the one job, the first ten users, and a three-week limit.</li><li>Build the screens and the main flow in an AI builder, and connect GitHub on day one.</li><li>Walk the first users through it, and do everything else by hand.</li><li>Before strangers sign up: access rules on every table, then the two-account test.</li><li>Before going live: your own domain, production settings and secrets, and a private-window test.</li><li>Before taking money: verified webhooks and one real purchase on the live site.</li><li>Set spending limits and alerts on everything that bills by usage.</li></ol><p><strong>Planning an MVP from scratch?</strong> I build SaaS apps and MVPs as client projects, on Next.js, Supabase and Stripe. Send me what it’s for and who it serves.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Build%20my%20MVP">Email me</a></p><h3>An MVP is for learning, not for launching twice</h3><p>The fastest way to build an MVP today is to let an AI builder do the screens and spend your own time on the users. The slowest is to launch an app that loses someone’s data and have to win their trust back. Use the AI for speed, and treat the stop signs as the moment the MVP becomes a product.</p><p>If you’re already past that point, the platform guides go deeper: <a href="https://tusharbhendarkar.com/blog/lovable-app-not-working">Lovable</a>, <a href="https://tusharbhendarkar.com/blog/why-is-my-base44-app-not-working">Base44</a> and <a href="https://tusharbhendarkar.com/blog/replit-app-not-working">Replit</a>. And if you’d rather hand it over, I take MVP builds and finishing work on as client projects: send me what you’re building and where it stands.</p><p><em>Originally published at </em><a href="https://tusharbhendarkar.com/blog/how-to-build-an-mvp"><em>https://tusharbhendarkar.com</em></a><em> on October 9, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3505d77ee802" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Is My Base44 App Not Working? What 192 Real Reports Say]]></title>
            <link>https://medium.com/@tusharbhendarkar/why-is-my-base44-app-not-working-what-192-real-reports-say-ca9846130eca?source=rss-5064326a4029------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca9846130eca</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[base44]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[no-code-development]]></category>
            <dc:creator><![CDATA[Tushar Bhendarkar]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 00:00:29 GMT</pubDate>
            <atom:updated>2026-10-17T04:54:53.817Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kOBXFURrYcZgORR8n3uUtg.jpeg" /></figure><p>More than one in five people who said their Base44 app had stopped working had done nothing wrong. I went through 192 public reports of broken Base44 apps, from Reddit, Base44’s own feedback board, Trustpilot and YouTube, and sorted each one by what actually caused it. The biggest group, 42 reports, was Base44 itself having an outage.</p><p>I did this because Base44 keeps coming up in the freelance work I look at: founders who built something real with it, then got stuck. Before telling anyone how to fix their app, I wanted to know what actually breaks.</p><p>The outage number matters because the usual reaction is to ask Base44’s AI to fix the app. During an outage that can’t work. It costs credits, and it can break code that was fine. Base44’s own docs say credits aren’t refunded when the AI gets something wrong.</p><p>So below are the causes in the order I’d check them, with the fix for each from Base44’s documentation. If your app works but isn’t showing up in Google, skip to the last section: I ran 45 live Base44 apps through my free checkers, and 8 of them were telling Google not to index them.</p><h3>What 192 broken Base44 apps had in common</h3><p>The reports run from August 2025 to October 2026: 88 Reddit threads, 73 posts on Base44’s public feedback board, 16 Trustpilot reviews, and a handful from X, YouTube, GitHub, Hacker News and elsewhere. I put each one in a group based on the cause the thread confirmed, or the fix that worked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nai6LDg56MvQ0rCMOSRcnA.png" /></figure><p>The single biggest cause was Base44 itself being down. Login problems and preview-only issues come next.</p><p>What surprised me is how little of this is code. Three groups make up almost half of the list: Base44 outages, login and sign-up problems, and issues that only exist in the editor preview or your browser’s cache. You don’t fix any of those by rewriting your app. The rest are real problems in an app’s settings or code, and many of them come down to a setting you can check in a few minutes. In 22 reports the cause was never found, or didn’t fit any group.</p><h3>Step 1: make sure it is not Base44, or your network</h3><p>This is the step people skip. Before you touch the app, open <a href="https://status.base44.com/">status.base44.com</a> and the r/Base44 subreddit. Base44’s status feed lists 26 incidents between December 2025 and September 2026, five of them affecting previews or published apps. In the reports, people sometimes posted about an outage on Reddit before the status page showed anything. If your app and other people’s apps broke at the same time, wait before you change anything.</p><p>When an outage ends, your browser can keep showing the old loading screen. After its September 9, 2026 incident, Base44 told users: “If you still see Loading your app, refresh the page or clear your browser cache.” A hard refresh (Ctrl+Shift+R, or Cmd+Shift+R on a Mac) or a private window is the quickest test.</p><p>Then I’d open the app on a phone using mobile data, not Wi-Fi. Four of the reports turned out to be the visitor’s internet provider blocking base44.app addresses: Comcast Xfinity’s Advanced Security feature in the US, and an internet provider in the Philippines. The app was fine. Those visitors just couldn’t reach it until they switched network or used a VPN.</p><h3>Step 2: work out which kind of “not working” you have</h3><p>“Not working” covers very different problems, and the fix depends on which one you have. Find the line that matches what you see, then jump to its section below.</p><p>Base44 also has a built-in check: type “Something is wrong” in the AI chat and it runs a diagnosis. Read what it says, but don’t let it make several rounds of changes before you know the cause.</p><p><strong>Would rather not spend your evening on this?</strong> I take on client projects fixing apps built with Base44, Lovable and Bolt. Send me the link and what’s broken.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=My%20Base44%20app%20is%20not%20working">Email me</a></p><h3>It works in the preview but not when published</h3><p>The editor preview and the live app are two different things. According to Base44’s <a href="https://docs.base44.com/Getting-Started/app-editor-overview">editor docs</a>, the live app only changes when you click Publish, and the preview is visible only to you and your collaborators. So my first question is always the boring one: did you click Publish after the change, and did you see the success message?</p><h3>Test data is not real data</h3><p>On the Builder plan and up, the preview can use a separate test database. The published app always uses real (production) data, and the two are completely separate, so records you created while testing will never appear in the live app. Base44 explains this on its <a href="https://docs.base44.com/documentation/managing-app-data/testing-your-data">test data page</a>.</p><h3>Backend functions and the browser cache</h3><p><a href="https://docs.base44.com/Community-and-support/Troubleshooting">Base44’s troubleshooting guide</a> has an official checklist for when published changes don’t appear: clear the browser cache, try another browser or device, confirm you clicked Publish, redeploy any backend function you changed, and check the error logs. A backend function you edited keeps running its old version until it’s redeployed.</p><p>Sixteen reports were problems that existed only in the editor preview or the browser cache, such as a preview that kept going white after every AI change while the live app worked. Revert the last change first. If both the preview and the live app fail with a 500 error, Base44’s guide calls that a server-side problem the builder usually can’t fix, and that one is for support.</p><h3>It loads for you but not for your users</h3><p>This is the most confusing one, because everything looks fine when you test it. As the owner, you can see things your users can’t.</p><h3>Check App Visibility</h3><p>Every app has a visibility setting in Dashboard, then Overview, then App Visibility: Public (anyone, no sign-in), Private (only people you invited) or Workspace (only your Base44 workspace). People who weren’t invited to a Private app see an error or a request-access pop-up. Private applies to every page, including a landing page, and since February 6, 2026 new Private apps need the Starter plan or higher. The details are on Base44’s <a href="https://docs.base44.com/Setting-up-your-app/Managing-access">access page</a>. Invites also do nothing until the app is published, so an invited person can still be locked out of an unpublished app.</p><h3>Data that only you can see</h3><p>On any app with user accounts, this is the one I’d check first. Base44 protects each table with data permissions, and a blocked read doesn’t show an error. Its <a href="https://docs.base44.com/developers/backend/resources/entities/security">security docs</a> say a denied read behaves as if the data doesn’t exist: the list just comes back empty. So a page can be full for you and empty for a normal user, with nothing in the console. The built-in Users table is a common trap: only the owner and collaborators can read it, so member profiles and leaderboards work for you and break for everyone else.</p><p>To see what a normal user sees, use “Act as a user” or “Test Permissions in preview”, and run the Security scan, which flags missing or wrong rules. If saving fails with a 403 error, the user doesn’t have permission to write to that table.</p><h3>Custom domains</h3><p>Ten reports were custom domain problems: stuck on “Pending verification”, or a Bad Gateway error on the domain while the base44.app address worked. Base44’s <a href="https://docs.base44.com/Setting-up-your-app/Connecting-an-external-domain">domain guide</a> says to remove any AAAA (IPv6) records, allow up to 48 hours, and, if your DNS is on Cloudflare, set Base44’s records to “DNS only” (grey cloud). Proxying them through Cloudflare can cause SSL errors and pages that load on base44.app but not on your domain. I always test the base44.app address first: if that works, the problem is the domain, not the app.</p><h3>Login and sign-up problems</h3><p>Login failures were the second biggest group, with 27 reports: verification codes that never arrived, invites that skipped the set-password step, Google sign-in errors and redirect loops. Base44’s <a href="https://docs.base44.com/Setting-up-your-app/Managing-login-and-registration">login docs</a> cover the common causes:</p><ul><li><strong>Emails in spam.</strong> Verification and reset emails come from no-reply@base44-apps.com unless you set up your own sending domain. Ask users to check spam and allowlist that address.</li><li><strong>A renamed reset page.</strong> Apps built since June 2026 have their own login pages, and the reset link always points to /reset-password. If the forgot-password or reset-password page is renamed or deleted, password resets break.</li><li><strong>Google sign-in.</strong> By default the Google window says base44.com. Showing your own domain needs the Builder plan, a connected custom domain, the right redirect address and Google’s approval, which can take up to five days.</li><li><strong>Self sign-up on a Private app.</strong> If people can register but then see access denied, the app is probably Private. Make it Public and protect the pages that need a login.</li></ul><h3>It worked yesterday, and an AI edit broke it</h3><p>Fifteen reports describe the same loop: the app worked, someone asked the AI for a change or a fix, and something else broke. Each new fix broke something new and spent more credits.</p><p>The most important rule comes from Base44’s own troubleshooting guide: asking the AI chat to revert never undoes anything. Only the Revert button on a message, or Version History, rolls the app back. Base44 also advises trying the automatic fix once or twice, then switching to Discuss mode (about 0.3 credits a message) to describe the problem instead of letting the AI keep editing. One warning if you use GitHub sync: after you connect it, Version History can’t restore versions from before the connection.</p><p>This is the group that worries me most, because the worst report in it wasn’t a crash. In a client portal built on Base44, the AI “fixed” a display bug by changing how files were looked up, and two weeks after launch one company could see another company’s files. Nothing looked broken, which is why nobody noticed.</p><p>When I built <a href="https://tusharbhendarkar.com/tools/client-approvals">Client Approvals</a>, I wrote a test that checks one workspace can never see another workspace’s requests. After any AI change that touches data, that’s the check I’d run by hand: sign in as a normal user and look at what they can see.</p><p><strong>Does your app hold customer data?</strong> I can check its permissions and what each kind of user can actually see, and send you a short list of what to fix, ranked by risk.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Check%20my%20Base44%20app&#39;s%20data%20permissions">Email me</a></p><h3>Features that quietly stop: credits, plans and keys</h3><p>Some failures look like bugs but are really limits. Base44 has two kinds of credits, explained on its <a href="https://docs.base44.com/Account-and-billing/Credits">credits page</a>: message credits, spent when the AI builds or edits your app, and integration credits, spent when the live app uses Base44’s built-in services such as email, AI calls and file uploads.</p><ul><li><strong>Running out doesn’t take the app down.</strong> Actions that use credits pause until your next reset. Since August 27, 2026 every email the app sends uses integration credits, so at the limit, workflow emails fail. Reading and writing your own data never uses credits.</li><li><strong>Credits are shared.</strong> They come from one pool for the whole workspace, so one busy app can use them up for all your apps. The Free plan is capped at 5 credits a day.</li><li><strong>Some features need a plan.</strong> Backend functions need the Builder plan or higher. Downgrading, or a disputed card payment that moves the workspace to Free, stops them, along with every integration that depends on them.</li><li><strong>Keys and webhooks.</strong> API keys for other services go in Secrets. In one report, a function kept using an old key after it was changed, until the app was republished. Webhooks from services that can’t sign in, such as Telegram or WhatsApp, return 403 unless the function is public.</li></ul><h3>Not showing up on Google? What I found on 45 live Base44 apps</h3><p>Sometimes “not showing” means the app works fine but can’t be found or shared. I build free website checkers, so I wanted to see how live Base44 apps look from the outside. I took 45 of them from Base44’s own showcase, its templates and Hacker News posts, ran each one through my <a href="https://tusharbhendarkar.com/tools/sitemap-checker">sitemap checker</a>, <a href="https://tusharbhendarkar.com/tools/open-graph-checker">Open Graph checker</a> and <a href="https://tusharbhendarkar.com/tools/security-headers-checker">security headers checker</a>, and fetched each home page the way Googlebot does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2reunX-8unPPB9O0vja_w.png" /></figure><p>Eight apps their makers had shared publicly were telling Google not to index them.</p><p>Eight of the 45 apps sent Google a noindex instruction on their home page, which tells search engines to leave the page out of their results. These were apps their makers had shared publicly. Base44’s <a href="https://docs.base44.com/Performance-and-SEO/SEO-and-search-visibility">SEO docs</a> describe the usual source: switching off the main SEO setting adds noindex and stops Base44 from writing your page content into the version crawlers read. Three more apps showed Google a page with no text on it at all. If your app isn’t showing up in Google, check that setting first.</p><p>The same docs say Base44’s search features (sitemap, robots.txt and social previews) are built for apps on a custom domain. The free base44.app address can be crawled, but it isn’t meant for search traffic, so if Google matters to you, connect your own domain.</p><p>Share previews were mostly there but often weak. Base44 builds them from the title, description and logo in your app settings, which is why many apps share a square logo, and many apps show a square image as a small thumbnail instead of a large card. Nineteen of the 40 share images were over 300 KB, and WhatsApp often skips images that big. My Open Graph checker shows exactly what your link looks like before you post it. On security, Base44 sets HTTPS correctly for every app, but 44 of 45 sent no Content-Security-Policy, the header that limits which scripts a page may run.</p><h3>When to stop prompting and get help</h3><p>Work through the causes in order: Base44 and your network first, then who can see the app, then its data and logins, and only then the code. It’s the same rule I use for <a href="https://tusharbhendarkar.com/blog/ai-chatbot-giving-wrong-answers">chatbots that give wrong answers</a>: find the stage that breaks, and fix only that.</p><p>If you need Base44 support, send them the app link, the time it happened, the errors from your browser console and what App Logs shows (Dashboard, then Logs, with the Errors only filter). Their guide asks for exactly that.</p><p>If you’re thinking of leaving Base44, know what export gives you. Downloading the code or syncing it to GitHub needs the Builder plan, and you get a standard React and Vite project. But that code still talks to Base44 for your data, logins and backend functions, so moving off Base44 means rebuilding the backend, not just downloading files. More guides like this one are in <a href="https://tusharbhendarkar.com/blog/topics/fix-ai-built-app">Fix an AI-built app</a>.</p><p>And if you’d rather hand it over, I take these on as client projects: send me the app link and what’s broken.</p><p><em>Originally published at </em><a href="https://tusharbhendarkar.com/blog/why-is-my-base44-app-not-working"><em>https://tusharbhendarkar.com</em></a><em> on October 8, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca9846130eca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lovable Supabase Integration: Cloud or Your Own Project, and How to Set It Up Safely]]></title>
            <link>https://medium.com/@tusharbhendarkar/lovable-supabase-integration-cloud-or-your-own-project-and-how-to-set-it-up-safely-beca3f67f049?source=rss-5064326a4029------2</link>
            <guid isPermaLink="false">https://medium.com/p/beca3f67f049</guid>
            <category><![CDATA[lovable]]></category>
            <category><![CDATA[lovabledev]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[lovableai]]></category>
            <category><![CDATA[supabas]]></category>
            <dc:creator><![CDATA[Tushar Bhendarkar]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 00:00:15 GMT</pubDate>
            <atom:updated>2026-10-19T03:44:04.409Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kU8oQBqhnYpycXz3ahLBpA.jpeg" /></figure><p>If you connect your own Supabase project to Lovable and launch as is, your sign-up emails won’t reach your customers. Supabase’s built-in email only sends to members of your own Supabase team, and only two an hour. It’s one of a handful of settings the Lovable Supabase integration leaves to you, and an easy one to discover only when your first real customer tries to sign up.</p><p>For my last post I sorted 264 public reports of broken Lovable apps. Sixty-eight of them were about Supabase: logins, connections and who can see what. The biggest single cause was the database access rules, switched off or open to everyone (12 reports), followed by confusion between Lovable Cloud and your own Supabase project (6) and security warnings that were never fixed, or turned out to be noise (6).</p><p>I build on Supabase myself. Launch Check and Client Approvals both run on it, so this is the setup I use, written for a Lovable app: which backend to pick, how to connect it, the settings Lovable doesn’t do for you, and how I test that one user can never see another user’s data.</p><h3>Lovable Cloud or your own Supabase project?</h3><p>Lovable Cloud is Supabase, run for you. It’s built on Supabase’s open-source foundation, each project gets its own Supabase project behind it, and it’s switched on by default, so most Lovable apps never need a separate Supabase account. Lovable’s <a href="https://docs.lovable.dev/integrations/supabase">Supabase docs</a> give three reasons to connect your own project instead: owning the account and billing, full Supabase dashboard access, or reusing a project you already have.</p><p>My rule: Cloud for a prototype or an internal tool, my own Supabase project for anything I’d sell or hand over to a client. Then the database, its bill and its backups are in my name, and I can open it without going through a builder.</p><p>Whichever you pick, decide early. There is no automatic move between the two in either direction. Since July 3, 2026 you can export a Cloud database and remove Cloud from a project, but removing it permanently deletes the Cloud data, storage, logins and functions. One more trap: Lovable turns Cloud on automatically when a feature needs a backend, because the permission defaults to Always allow. If you want your own Supabase, change it to Ask each time under Connectors, Cloud, Manage my agent’s permissions, before you build anything.</p><h3>How to connect your own Supabase project</h3><ol><li><strong>Create a Supabase project.</strong> The free tier is enough to start, and the integration works on every Lovable plan.</li><li><strong>Link your Supabase organization once.</strong> A Lovable workspace owner or admin does this; other members can then connect projects from it without their own Supabase account.</li><li><strong>Connect the project.</strong> For a new app, click + in the prompt box, open Databases and pick your Supabase project. For an existing app with no backend yet, open More, Cloud and choose “Already have a Supabase project? Connect it here”. That link disappears once Cloud is on.</li><li><strong>Check the Cloud view.</strong> It should show your Supabase project’s name and status, with links to its dashboard.</li></ol><p>From then on Lovable writes database changes as migrations, shows them for your approval, runs them and saves them in supabase/migrations. It deploys edge functions, stores keys for services like Stripe as Supabase secrets, and creates storage buckets when a feature needs uploads. One Lovable project connects to one Supabase project. Several Lovable projects can share one Supabase project, but they overwrite each other’s secrets, which Lovable now warns about.</p><p>Your app’s browser code talks to the database directly. The access rules on each table are what stop one visitor reading another’s data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vb1ZQfcDnWp9jdTR2GlgWg.png" /></figure><h3>The settings Lovable leaves to you</h3><p>On your own Supabase project, Lovable’s docs are clear that login settings, providers and email live in the Supabase dashboard, not in Lovable. These are the three I set before anyone else signs up.</p><h3>Emails: add your own email server</h3><p>Supabase’s <a href="https://supabase.com/docs/guides/auth/auth-smtp">email docs</a> say that without custom SMTP, auth emails only go to members of your Supabase organization, and real users get “Email address not authorized”. The built-in service also sends at most two emails an hour and isn’t meant for production. Add any SMTP provider (Supabase lists Resend, Postmark, AWS SES and others) under Authentication, SMTP Settings. The limit then starts at 30 emails an hour, and you can raise it.</p><h3>Login addresses: Site URL and redirect URLs</h3><p>The Site URL is where users land after confirming their email, resetting a password or signing in with Google. It starts as <a href="http://localhost:3000,">http://localhost:3000,</a> and it must be your live address. Every other address your app sends people back to has to be on the Redirect URLs list under Authentication, URL Configuration. If it isn’t, Supabase quietly sends the user to the Site URL instead, which is the classic “sign-in sends me to localhost” bug. Supabase’s <a href="https://supabase.com/docs/guides/auth/redirect-urls">redirect docs</a> suggest wildcards for preview addresses and exact paths for production. For Google sign-in, add Supabase’s callback address as an authorized redirect in Google Cloud. Without your own branding or a custom domain, Google’s consent screen shows your-project-id.supabase.co instead of your app’s name.</p><h3>Pausing on the free plan</h3><p>Supabase pauses free projects after about a week with too little database activity, after emailing you a warning. Restore it from the dashboard with Resume project; paid plans are never paused for inactivity. One catch from Supabase’s <a href="https://supabase.com/docs/guides/api/api-keys">API key docs</a>: the old anon and service_role keys are being retired by the end of 2026, and since November 2025 a project restored from a pause comes back without them. If your app still uses a long key starting with eyJ, plan the move to the new publishable key before a pause forces it.</p><p><strong>Would rather have this set up properly once?</strong> I connect Lovable apps to their own Supabase project, set up email, login addresses and access rules, and test them before launch, as a client project. Send me the app and what you need.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Set%20up%20Supabase%20for%20my%20Lovable%20app">Email me</a></p><h3>Row level security, in plain English</h3><p>Your app’s code runs in the visitor’s browser and talks to the database directly, using a publishable key that is public on purpose. Supabase’s own analogy: the publishable key is taped to the front door and only opens the lobby, and the secret key is the master key that stays in your pocket. What decides which rooms the lobby key opens is row level security (RLS): rules on each table that act like a WHERE clause added to every query.</p><p>Lovable writes these rules for you and checks them after schema changes, but it still tells you to verify every table yourself before going live. One reason: tables created with SQL, which is how migrations create them, need RLS switched on explicitly. This is the standard pattern for data that belongs to one user, from Supabase’s <a href="https://supabase.com/docs/guides/database/postgres/row-level-security">RLS guide</a>:</p><pre>alter table public.notes enable row level security; create policy &quot;Owners read their notes&quot; on public.notes for select to authenticated using ( (select auth.uid()) = user_id ); create policy &quot;Owners add their own notes&quot; on public.notes for insert to authenticated with check ( (select auth.uid()) = user_id ); create policy &quot;Owners edit their notes&quot; on public.notes for update to authenticated using ( (select auth.uid()) = user_id ) with check ( (select auth.uid()) = user_id ); create policy &quot;Owners delete their notes&quot; on public.notes for delete to authenticated using ( (select auth.uid()) = user_id ); create index on public.notes (user_id);</pre><p>One policy per action makes it obvious what each rule covers. WITH CHECK stops someone creating a row that belongs to another user, or moving a row to someone else when they edit it. Wrapping auth.uid() in a select and indexing user_id are performance fixes: in Supabase’s own benchmark on 100,000 rows, wrapping auth.uid() took a query from 179 ms to 9 ms, and indexing user_id took another from 171 ms to under 0.1 ms.</p><h3>Rules that look safe but are not</h3><ul><li><strong>A rule that lets everyone through.</strong> using (true) means RLS shows as enabled, and everyone gets in anyway. A read rule “to anon using (true)” gives every signed-out visitor every row.</li><li><strong>Several rules on one table.</strong> They combine with OR, so the most generous one wins.</li><li><strong>Roles kept in user_metadata.</strong> Users can edit their own metadata, so never base access on it. Keep roles in app_metadata or a table.</li></ul><h3>Things that skip RLS completely</h3><ul><li><strong>The secret key</strong> (the old service_role key) ignores every rule. It belongs in edge functions only, and Lovable warns that server code using it must check permissions itself.</li><li><strong>SECURITY DEFINER functions</strong> run as their owner, usually postgres, and anyone can call them by default, including signed-out visitors.</li><li><strong>Views</strong> run as their creator too. On Postgres 15 and up, create them with security_invoker = true.</li><li><strong>Storage</strong> has its own rules on storage.objects. Tight table rules don’t protect an uploaded file, and a broad read rule on storage lets anyone list every file.</li></ul><p>Supabase’s Security Advisor flags most of these, and its production checklist starts with it. One more date for your calendar: from October 30, 2026, Supabase stops exposing new tables to the API automatically in existing projects, according to its <a href="https://github.com/orgs/supabase/discussions/45329">announcement</a>. A new table without an explicit grant then returns “permission denied for table” (error 42501), even if its RLS rules are right. Lovable’s docs don’t mention this yet, so if a new table suddenly returns 42501 after that date, a missing grant is the first thing I’d check.</p><h3>How I test that one user can never see another’s data</h3><p>When I built <a href="https://tusharbhendarkar.com/tools/client-approvals">Client Approvals</a>, I wrote a database test that signs in as different people and tries to break the rules. A team member should see only their own workspace. They try to comment on another workspace’s request, attach a comment to the wrong item, post while pretending to be the client, and upload a file into another workspace’s folder. Another user tries to read those comments and list those files. A signed-out client with a share link should see exactly one request and nothing else. Every one of those attempts has to fail, and the test rolls everything back when it finishes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kcq3tE4YvSgWwuVpwPm12g.png" /></figure><p>Sign in as each kind of person and try every action. Anything not marked allowed must fail, for files as well as tables.</p><p>The trap is testing in the wrong place. Supabase’s SQL editor runs as the table owner, which ignores RLS, so a query that returns rows there proves nothing about what your users see. Use Supabase’s user impersonation (in public beta), or run the check as a real role. This is the shape of it, inside a transaction so nothing is kept:</p><pre>begin; -- act as user B, signed in select set_config(&#39;request.jwt.claims&#39;, json_build_object(&#39;sub&#39;, &#39;&lt;user B id&gt;&#39;, &#39;role&#39;, &#39;authenticated&#39;)::text, true); set local role authenticated; select count(*) from public.notes where user_id = &#39;&lt;user A id&gt;&#39;; -- must be 0 -- act as a signed-out visitor reset role; select set_config(&#39;request.jwt.claims&#39;, json_build_object(&#39;role&#39;, &#39;anon&#39;)::text, true); set local role anon; select count(*) from public.notes; -- must be 0 rollback;</pre><p>If you don’t write SQL, do the manual version: create two normal accounts, add something private in each, then try to open one account’s records and files while signed in as the other, and again while signed out. Both attempts must fail.</p><p><strong>Want a second pair of eyes on your rules?</strong> I can review the access rules on every table and storage bucket, run this kind of test against them, and send you a short list of what to fix, ranked by risk.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Check%20my%20Supabase%20access%20rules">Email me</a></p><h3>When the integration stops working</h3><p>These are the problems that come up most, from the reports and from Supabase’s own troubleshooting docs, with the fix for each:</p><ul><li><strong>“Supabase connection issue” in Lovable.</strong> Lovable can’t find the project: it was deleted, or the workspace lost access to the organization. Disconnect, or use Manage organizations and pick the project again. Disconnecting deletes nothing.</li><li><strong>Nothing loads right after turning on RLS.</strong> RLS with no policies blocks everything through the API. Add the policies the app needs.</li><li><strong>Data won’t load on Cloud.</strong> Lovable’s list: the instance is too small, a query error, RLS blocking the query, or a paused backend that needs Wake up.</li><li><strong>“Email address not authorized”.</strong> No custom SMTP yet. See the email section above.</li><li><strong>Users land on localhost after signing in.</strong> The Site URL or Redirect URLs list is missing your live address.</li><li><strong>“Too Many Requests” at sign-up.</strong> Supabase allows 30 sign-up and sign-in requests per 5 minutes per IP address by default.</li><li><strong>“Infinite recursion” (error 42P17).</strong> Two tables’ policies read each other, which is common with sharing features. Move the check into a helper function in a private schema.</li><li><strong>A scan warning you can’t clear.</strong> Leaked password protection needs Supabase’s Pro plan, so it can’t be switched on for a free project.</li></ul><h3>Moving from Lovable Cloud to your own Supabase</h3><p>It’s possible, by hand. Lovable’s <a href="https://docs.lovable.dev/tips-tricks/external-deployment-hosting">migration guide</a> says to keep the app running on Cloud while you build the new backend, and to switch only when it’s complete. The schema, RLS policies, functions, triggers and storage bucket policies move with the migration files. Auth providers, secrets, table data, storage files, users and edge functions you move yourself.</p><p>The Cloud export is a PostgreSQL backup file that you restore with pg_restore, with limits of 15 GB of storage and one export a day, and it leaves out storage files, edge function code and secrets. Cloud projects changed since October 7, 2026 record their changes as Drizzle migrations, which supabase db push won’t run, so apply them in the order the guide lists. The final switch is two files in the Lovable project, .env and supabase/config.toml. Only remove Cloud after the new backend works, because removal deletes the Cloud data for good.</p><h3>The integration is the easy part</h3><p>Connecting Lovable to Supabase takes a few clicks. What makes it production-ready is everything around the connection: emails that reach real people, login addresses that point at your live site, and access rules that you’ve actually tried to break. If your app is already misbehaving, I wrote up what breaks most often in <a href="https://tusharbhendarkar.com/blog/lovable-app-not-working">Lovable app not working</a>, and there are more guides in <a href="https://tusharbhendarkar.com/blog/topics/fix-ai-built-app">Fix an AI-built app</a>.</p><p>And if you’d rather hand it over, I take these on as client projects: send me the app link and what you need.</p><p><em>Originally published at </em><a href="https://tusharbhendarkar.com/blog/lovable-supabase-integration"><em>https://tusharbhendarkar.com</em></a><em> on October 8, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=beca3f67f049" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lovable App Not Working? What Breaks Between the Demo and Production]]></title>
            <link>https://medium.com/@tusharbhendarkar/lovable-app-not-working-what-breaks-between-the-demo-and-production-acecbe121954?source=rss-5064326a4029------2</link>
            <guid isPermaLink="false">https://medium.com/p/acecbe121954</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[lovable]]></category>
            <category><![CDATA[mvp-development]]></category>
            <category><![CDATA[lovable-app]]></category>
            <dc:creator><![CDATA[Tushar Bhendarkar]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 00:00:07 GMT</pubDate>
            <atom:updated>2026-10-16T04:12:18.854Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEyZnUXCIFXgPhqLpSCtZQ.jpeg" /></figure><p>The Lovable apps in the most trouble were the ones that looked fine. I went through 264 public reports of Lovable apps breaking, from Reddit, Trustpilot, GitHub and Hacker News, and sorted each one by what caused it. The biggest groups were logins and database connections (37), Lovable itself being down (33), and apps that couldn’t be found on Google (32). Right behind them were 31 reports about data that was exposed or at risk, which is the one problem a working app can hide completely.</p><p>I’ve shipped that kind of bug myself. In one of my own products, any logged-in user could see other customers’ private data, because the app checked that you were logged in, but not that the data you asked for was yours. Nothing crashed and nobody complained, which is exactly why nobody had noticed.</p><p>That’s the real gap between a demo and production. A demo only has to work for you, on your laptop, while you watch. Production has to work for every user, on every network, when Lovable has a bad day, when your credits run out, and when someone tries to open data that isn’t theirs.</p><p>Below are the causes in the order I’d check them, each with the fix from Lovable’s own documentation. I build on Supabase and Stripe myself, the same backend most Lovable apps run on, so I’ve added what I check on my own apps. At the end is what I found when I ran 53 live Lovable apps through my free checkers.</p><p><strong>Rather have someone fix it?</strong> Send me the link and what’s broken. I’ll reply with what I think the cause is before you decide anything.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Fix%20my%20Lovable%20app">Email me</a></p><h3>What 264 broken Lovable apps had in common</h3><p>The reports run from 2025 to October 2026: 195 Reddit threads, 22 Trustpilot reviews, and the rest from Lovable’s status page, GitHub issues, Hacker News, YouTube and security write-ups. I put each one in a group based on the cause the thread confirmed or, when nobody found one, the main symptom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D45aNdPonDKYn5w5cuJxwQ.png" /></figure><p>Data exposure sits near the top, and it is the one cause you cannot see from inside the app.</p><p>No single cause dominates, which is why “just ask the AI to fix it” fails so often. The top four groups make up about half of all reports, and the AI can’t see most of them from inside the editor: an outage, a login setting in Supabase, how Google reads your site, or what a stranger can see in your database.</p><h3>Step 1: check Lovable, not your app</h3><p>When someone reports a published site is down, Lovable’s own <a href="https://docs.lovable.dev/features/hosting">hosting docs</a> say to check the status page first, and I agree. Open <a href="https://status.lovable.dev/">status.lovable.dev</a> before you change anything. It tracks published sites (under Hosting) separately from the editor, so you can tell whether the problem is your app or Lovable. Its public history only covers the last 90 days, and in that window it lists 36 incidents, including previews and publishing failing on August 10, 2026 and published TanStack apps going down on August 4.</p><p>The expensive mistake is spending credits during an outage. At least four reports lost credits that way, on prompts and builds that failed because Lovable itself was having problems. And if the app fails for one person but not for others, try their phone on mobile data. Two reports turned out to be an internet provider blocking the app.</p><h3>It works in the preview but not on the live site</h3><p>The preview is your working copy. The live site is a snapshot from the last time you published. Lovable’s <a href="https://docs.lovable.dev/features/publish">publish docs</a> are blunt about it: edits aren’t live until you open the Publish dialog and click Publish changes, and a small dot on the Publish button means you have unpublished changes. Publishing from that dialog costs no credits, even at a zero balance. If the dialog shows “Build errors need fixing” instead, publishing is blocked until the build passes.</p><h3>Sign-in works in the preview, fails on the live site</h3><p>This is the one I’d check first. Lovable’s <a href="https://docs.lovable.dev/features/authentication">login docs</a> say sign-in that works in the preview but fails on the published app or a custom domain is usually caused by missing Site URL and redirect URLs. On Lovable Cloud they’re updated automatically when you publish. On your own Supabase project they aren’t, so you have to add your live address yourself.</p><p>This surprises people. In Lovable, the <a href="https://docs.lovable.dev/features/projects/preview">preview and the published app</a> use the same backend and the same data, so test records you create in the preview land in your real database. Separate test and live databases were tried in a beta from February 5, 2026, then withdrawn for new Cloud projects on March 24, 2026.</p><h3>Login and database problems</h3><p>Logins and database connections were the biggest group, with 37 reports: Google sign-in breaking, password resets failing, confirmation emails that never arrived, and projects that couldn’t connect to Supabase. These are the usual causes:</p><ul><li><strong>Confirmation emails stop arriving.</strong> Lovable’s <a href="https://docs.lovable.dev/features/email-auth">login emails</a> have an hourly sending limit, which is the first thing to check when many people sign up at once, and the default sender often lands in spam.</li><li><strong>Google sign-in shows Lovable’s name.</strong> With Lovable Cloud’s built-in Google login, the sign-in screen can say Lovable instead of your app. The fix one thread landed on was setting up your own Google OAuth client and consent screen.</li><li><strong>Auto-confirm is still on.</strong> Turning off email confirmation makes testing easier, but Lovable warns it lets anyone sign up with an address they don’t own. Turn it back on before launch.</li><li><strong>The Supabase project is paused.</strong> A paused or still-provisioning Supabase project can’t be connected to Lovable, according to its <a href="https://docs.lovable.dev/integrations/supabase">Supabase docs</a>.</li></ul><p><strong>Taking your app from demo to launch?</strong> I take on client projects fixing apps built with Lovable, Bolt and Base44. Send me the link and what’s broken.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=My%20Lovable%20app%20is%20not%20working">Email me</a></p><h3>The failure that does not look broken: your data is open</h3><p>Most Lovable apps keep their data in a Supabase database. Each table has access rules, called row level security (RLS), that decide who can read or change which rows. If a rule is missing or too open, anyone who opens your app can read data that isn’t theirs, and everything still looks normal to you.</p><p>Lovable says this plainly. Its <a href="https://lovable.dev/blog/a-founders-guide-to-lovable-security">security guide</a> calls misconfigured RLS the most common cause of data exposure in Supabase-backed apps, and its Supabase docs tell you to check the rules yourself before going live. It does scan for it: a <a href="https://docs.lovable.dev/features/security">quick security scan</a> runs on every publish and looks for tables without RLS and rules that let everyone through. But findings don’t block publishing unless a workspace admin turns that on, the deeper code review is something you start by hand, and Lovable itself says its scans can’t guarantee security.</p><p>One thread is worth knowing about: users could see each other’s data even though RLS showed as enabled, because database functions, views and storage rules can get around it. A green check on one table isn’t proof for the whole app.</p><p>The check I trust is the one I use on my own apps. When I built <a href="https://tusharbhendarkar.com/tools/client-approvals">Client Approvals</a>, I wrote a test that checks one workspace can never see another workspace’s requests. You can do the manual version in a few minutes: create two normal accounts, add something private in each, then try to open one account’s records while signed in as the other. Both attempts must fail.</p><p><strong>Does your Lovable app hold customer data?</strong> I can check its access rules and what each kind of user can actually see, and send you a short list of what to fix, ranked by risk.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Check%20my%20Lovable%20app&#39;s%20data%20access">Email me</a></p><h3>It worked yesterday, and an AI edit broke it</h3><p>Twenty-one reports describe the same loop: a small fix breaks two working things, and undoing it costs four or five more messages. Lovable’s own <a href="https://docs.lovable.dev/prompting/prompting-debugging">debugging advice</a> is to use Try to fix once or twice, describe the bug precisely, switch to Plan mode to find the cause, and revert if the fixes have tangled the code. Plan mode costs one credit a message and doesn’t change code.</p><p>Every change creates a version you can restore from the <a href="https://docs.lovable.dev/features/projects/history">History panel</a>. But reverting restores code only: it doesn’t roll back your database or its migrations, so check your data after a revert. My habit is to stop prompting after the second failed fix and read the actual error instead. For a blank published site, Lovable says to paste the browser console error into the chat, because the agent can’t see errors outside the preview.</p><h3>Credits ran out, and the backend went to sleep</h3><p>Credits are the production surprise nobody plans for. Lovable’s <a href="https://docs.lovable.dev/introduction/credits-and-usage">credits page</a> says that when credits run out, building stops, AI features in your live app fail, and the Cloud database, storage and logins pause shortly after. The pages stay up, but anything that needs the backend stops. Adding credits may not restart it: you have to click Wake up under More, Cloud, Overview.</p><p>Since June 18, 2026, Lovable splits spending into Build credits, for prompting, and Run credits, for hosting and the backend of the live app. That’s when people started reporting idle projects draining credits. In one thread, a background job sending email every five seconds kept a near-idle project busy.</p><p>I learned this on one of my own products: its AI features had no spending limit, so one bad day could cost any amount. I added a hard cap and a switch to turn the feature off. On Lovable, the equivalent is the usage limits and alerts added on October 7, 2026. Set them before you launch, not after the first surprise.</p><h3>It broke when you moved it off Lovable</h3><p>Twenty-three reports were apps that worked on Lovable and broke on Vercel, Netlify or Cloudflare. Most trace back to one change: since May 13, 2026, new Lovable apps are built with TanStack Start, which renders pages on a server. Lovable’s <a href="https://docs.lovable.dev/tips-tricks/external-deployment-hosting">self-hosting guide</a> says these apps need a host that runs server code. That’s why so many exported apps built fine and then returned 404 on every page.</p><ul><li><strong>Newer apps (TanStack Start):</strong> deploy to a host that runs server code, and check which host the build targets. In one report the build defaulted to Cloudflare, and switching it fixed Vercel.</li><li><strong>Older apps (React and Vite):</strong> add a rewrite that sends every path to index.html, or direct links and refreshes return 404.</li><li><strong>Settings:</strong> set VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY on the new host before you build, and add the new domain to your login redirect URLs.</li><li><strong>What you take with you:</strong> exports include your code and database migrations, but not your data or stored files, and built-in AI calls keep running through Lovable’s credits until you replace them with your own accounts.</li></ul><h3>Not on Google? What I found on 53 live Lovable apps</h3><p>Thirty-two reports were about search: apps that never showed up on Google, or shared links with the wrong title and picture. Lovable explains the cause on its <a href="https://lovable.dev/blog/building-apps-using-tanstack-start">own blog</a>: apps built before May 2026 send a nearly empty page and draw everything with JavaScript, and link previews are read from that raw page.</p><p>Lovable now pre-renders those older pages for Google and other verified crawlers, and since July 28, 2026 you can <a href="https://docs.lovable.dev/features/upgrade-to-tanstack-start">upgrade an older project</a> to server rendering in place, typically for 10 to 35 credits. It also has a free <a href="https://docs.lovable.dev/features/seo-aeo">SEO and AI search review</a> that flags a missing sitemap, robots.txt and metadata.</p><p>I wanted to see what that looks like on real apps, so I took 53 live Lovable apps from Lovable’s own pages, Product Hunt, Hacker News and Reddit launch posts, and ran them through my free <a href="https://tusharbhendarkar.com/tools/sitemap-checker">sitemap checker</a>, <a href="https://tusharbhendarkar.com/tools/open-graph-checker">Open Graph checker</a> and <a href="https://tusharbhendarkar.com/tools/security-headers-checker">security headers checker</a>. I only read what any browser receives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJuQ9hKodiDTLEIm4WyI_Q.png" /></figure><p>Twenty-one apps give Google no list of their pages, and nine still share Lovable’s default image.</p><p>Twenty-one of the 53 had no sitemap at any of the usual addresses, so Google gets no list of their pages. Nine still shared Lovable’s default image, so a link to the app shows Lovable’s branding instead of its own. Four pointed their share image at a file that doesn’t load, and 13 used images over 300 KB, which WhatsApp often skips.</p><p>Two sitemaps listed pages on addresses that don’t respond, one of them a custom domain that no longer loads while the app’s lovable.app address still works. Lovable’s <a href="https://docs.lovable.dev/features/custom-domain">domain docs</a> list the usual causes: a leftover AAAA record, records left over from the previous host, or Cloudflare proxying the domain (set those records to DNS only). On security, all 53 were on HTTPS, but 51 sent no Content-Security-Policy and 50 could be loaded inside another site’s frame. If you host the app yourself, my security headers checker shows which headers to add.</p><h3>What actually changes between a demo and production</h3><p>Every cause in this post has the same shape. The demo worked because it only had to work once, for you. Production has to keep working for strangers, with an empty credit balance, on a bad day for Lovable, and when someone tries data that isn’t theirs.</p><p>I’ve been caught by a version of this too. One of my own products ran a daily job that published broken content about nine days a month, and nobody was told. It never threw an error. What fixed it wasn’t a smarter job: it was checking the result before publishing, and sending an alert when it failed.</p><p>So before you launch: publish and open the live address in a private window, sign up as a brand-new user, try to open another user’s data, set credit limits and alerts, and check what your link looks like when it’s shared. If you also build on Base44, I did the same research in <a href="https://tusharbhendarkar.com/blog/why-is-my-base44-app-not-working">why is my Base44 app not working</a>, and there are more guides in <a href="https://tusharbhendarkar.com/blog/topics/fix-ai-built-app">Fix an AI-built app</a>.</p><p>And if you’d rather hand it over, I take these on as client projects: send me the app link and what’s broken.</p><p><em>Originally published at </em><a href="https://tusharbhendarkar.com/blog/lovable-app-not-working"><em>https://tusharbhendarkar.com</em></a><em> on October 8, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acecbe121954" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lovable Stripe Integration: Built-in Payments or Your Own Stripe, and Why Payments Break]]></title>
            <link>https://medium.com/@tusharbhendarkar/lovable-stripe-integration-built-in-payments-or-your-own-stripe-and-why-payments-break-88f8fc041a9b?source=rss-5064326a4029------2</link>
            <guid isPermaLink="false">https://medium.com/p/88f8fc041a9b</guid>
            <category><![CDATA[stripe-integration]]></category>
            <category><![CDATA[stripe-payment]]></category>
            <category><![CDATA[payment-gateway]]></category>
            <category><![CDATA[lovable]]></category>
            <category><![CDATA[payment-processing]]></category>
            <dc:creator><![CDATA[Tushar Bhendarkar]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 00:00:05 GMT</pubDate>
            <atom:updated>2026-10-20T03:32:44.986Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qrPWM1_aAe34RD14btnBVQ.jpeg" /></figure><p>The worst Lovable payment bug is the one where the payment works. The customer is charged, Stripe shows the money, and the app never unlocks what they paid for. I went through 52 public reports of payments going wrong in Lovable apps, all from Reddit, and 14 of them were exactly that: a subscription status that never updated, a webhook that was never set up, or a signature check that rejected Stripe’s message.</p><p>Getting a checkout button on the page is the easy part. Both apps I built this year, Launch Check and <a href="https://tusharbhendarkar.com/tools/client-approvals">Client Approvals</a>, take subscriptions through Stripe, and the work is in everything after the button: test and live mode, webhooks, and the moment the database is told someone has paid.</p><p>This guide covers both ways Lovable connects to Stripe, how to take each one live, and the places a successful payment gets lost.</p><h3>What goes wrong with payments in Lovable apps</h3><p>I sorted the 52 reports by the cause each thread confirmed. Fourteen were payments that succeeded without the app finding out. Four were test and live mode mixed up, four were checkout redirects and success pages, and three were people burning credits asking the AI to fix payments. The largest group, 25, was a mix, but nine of those were founders who couldn’t use Stripe at all because of their country or type of business. I’ll come back to that one.</p><h3>Two ways to add Stripe to a Lovable app</h3><p>Lovable’s <a href="https://docs.lovable.dev/features/payments">payments docs</a> describe two separate paths. Built-in payments, launched in April 2026, have Lovable create and manage the payment account for you, on Stripe or Paddle. The older path connects your own Stripe account with a key.</p><p>My take: if this is your first paid product, use built-in payments, because the webhook work is the part people get wrong and Lovable does it for you. If you already run a business on Stripe, or you’re on the Free plan, connect your own account and treat the webhooks as your job.</p><h3>Built-in payments: setting up and going live</h3><p>Only project or workspace admins and owners can turn built-in payments on, and Lovable recommends adding login first so purchases link to users. In the preview everything runs in test mode with test cards; the published app runs live, and live checkout doesn’t work until the go-live steps are done. Products and prices copy from test to live when you publish, but discount codes don’t, so create those in live separately. Don’t edit products directly in the Stripe or Paddle dashboard either, which can leave test and live IDs out of step.</p><p>Going live on Stripe means claiming the Stripe account Lovable created for you, finishing Stripe’s onboarding, then copying your products and the app to live. On Paddle it’s a readiness check, identity and business verification, and a review of your domain, which usually takes about a day. The readiness check most often fails on missing privacy, terms or refund pages, or a site that isn’t published. Lovable also suggests connecting a custom domain first, because the provider reviews the live address.</p><h3>Your own Stripe account: setting up and going live</h3><p>Paste a restricted key (rk_) or secret key (sk_) into the Connect Stripe form, never into the chat. Publishable keys (pk_) don’t work. Lovable stores it as a backend secret called STRIPE_SECRET_KEY, and the payment code runs in edge functions. Stripe’s <a href="https://docs.stripe.com/keys">key docs</a> recommend restricted keys, which carry only the permissions you grant.</p><p>The trap is that this path has no separate test environment: the key you paste decides the mode. If you paste a live key, payments you make while testing in the preview are real. Use a test key until you’re ready. To go live, Lovable’s <a href="https://docs.lovable.dev/integrations/stripe">Stripe docs</a> list three steps: submit a live key, switch the app to live price IDs (they’re different from test ones), and make one real purchase on the published app.</p><p>Two more things to know. By default this path uses no webhooks: the app asks Stripe directly whether a signed-in user has an active subscription, and matches subscriptions to users by email address. And the customer portal, where people manage their subscription, has to be switched on once in the Stripe dashboard before it works.</p><p><strong>Taking payments live?</strong> I take on Stripe projects for Lovable apps: setting it up or fixing it, and testing the whole path from checkout to unlock on the live site.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Help%20with%20payments%20in%20my%20Lovable%20app">Email me</a></p><h3>When the payment works but the app does not know</h3><p>Here is the path a payment takes after the customer clicks pay, and where it breaks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vnMqeKmUK093p1RwSKVYUA.png" /></figure><p>Anything that breaks after step 2 means the customer paid and got nothing.</p><ul><li><strong>The endpoint is gone or doubled.</strong> Built-in payments register two webhook endpoints per environment. Lovable warns that deleting the app’s endpoint silently breaks unlocking, and that a duplicate one you added by hand delivers events the app can’t verify.</li><li><strong>The wrong signing secret.</strong> Every webhook endpoint has its own secret, and test and live secrets differ even for the same address, according to Stripe’s <a href="https://docs.stripe.com/webhooks">webhook docs</a>. Stripe says the wrong secret is the most common reason signature checks fail; the one from the Stripe command line tool differs from the dashboard’s too.</li><li><strong>The body was changed.</strong> The signature is checked against the raw request. Anything that parses or re-formats the body first breaks the check.</li><li><strong>The function expects a signed-in user.</strong> Stripe can’t sign in to your app, so a webhook function that requires a logged-in user rejects it. In some threads that was the whole bug. The function has to be public and rely on the signature instead.</li><li><strong>Upgrades and renewals aren’t handled.</strong> customer.subscription.updated fires on renewals and plan changes, so handling only the first purchase misses them. Stripe also doesn’t promise events arrive in order, and can send the same one twice, so record the event IDs you’ve already processed.</li></ul><p>My rule is simple: the success page says thank you, and only a verified webhook unlocks anything. Stripe’s own <a href="https://docs.stripe.com/checkout/fulfillment">fulfilment guide</a> says not to rely on the success page alone, and requires webhooks for subscriptions.</p><h3>Test mode and live mode are two separate worlds</h3><p>In Stripe, test and live objects are completely separate: a product or price created in test mode can’t be used for a live payment, and test cards like 4242 4242 4242 4242 only work in test mode. Copying a test product to live creates a new product with new IDs, which is why an app still holding test price IDs fails the moment it goes live. The customer portal has separate settings for each mode too, so switching it on in test doesn’t switch it on in live.</p><ol><li>Publish the app, and connect a custom domain if you can.</li><li>Add privacy, terms and refund pages.</li><li>Check you’re on live keys and live price IDs, with the live webhook secret if you use one.</li><li>Switch on the customer portal in live mode.</li><li>Buy your own product with a real card on the live site, and check it unlocks.</li><li>Upgrade, cancel and refund that test purchase, and check the app follows each change.</li></ol><h3>Before you take your first real payment</h3><h3>When Stripe is not an option</h3><p>Nine of the reports were founders who couldn’t use Stripe at all: their country isn’t supported, Stripe wanted a registered company, or their kind of business wasn’t accepted. Built-in payments can run on Paddle instead, which acts as the merchant of record: it sells to your customer on your behalf and handles VAT and sales tax, for 5% plus 50 cents per transaction (a flat 10% under $10). Stripe has its own merchant of record option, Managed Payments, in fewer countries. PayPal, Razorpay and other providers aren’t built in and need custom code.</p><p><strong>Not sure which payment setup fits your business?</strong> I set up payments for Lovable apps as client projects, including choosing the option that fits where you’re based and what you sell.</p><p><a href="/service/mailto:tusharbhendarkar44@gmail.com?subject=Payments%20for%20my%20Lovable%20app">Email me</a></p><h3>Disconnecting does not stop billing</h3><p>One last warning from Lovable’s docs. Disconnecting built-in payments is permanent and doesn’t cancel subscriptions or refund anyone, so your customers keep being billed. If your app uses its own Supabase project, disconnecting your own Stripe leaves the secret key there, so the payment functions can keep charging. Switching providers doesn’t migrate products, prices or subscriptions either. Cancel and clean up in Stripe first, then disconnect.</p><p>If your app is breaking in other places too, I wrote up the most common causes in <a href="https://tusharbhendarkar.com/blog/lovable-app-not-working">Lovable app not working</a>, and how the database side works in <a href="https://tusharbhendarkar.com/blog/lovable-supabase-integration">Lovable Supabase integration</a>. And if you’d rather hand it over, I take these on as client projects: send me the app and what’s going wrong with payments.</p><p><em>Originally published at </em><a href="https://tusharbhendarkar.com/blog/lovable-stripe-integration"><em>https://tusharbhendarkar.com</em></a><em> on October 8, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88f8fc041a9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>