Skip to content

Failed to save provider. Connection lost. Please refresh the page and try again. #196

@Shantaram74

Description

@Shantaram74

Issue Type

Agent Issue

Operating System

Windows

Description of the bug

Hello BrowserOS developers,

I am unable to save the Google Gemini provider. I always get the error: "Failed to save provider. Connection lost. Please refresh the page and try again."

I have performed extensive debugging and can confirm this is a bug within BrowserOS, as no network request is ever sent.

Here is what I have confirmed:

  1. My API Key and Model ID (gemini-2.5-flash) are 100% correct. I have successfully tested them using a cURL command directly from my terminal and received a valid JSON response from the Google API.

  2. The issue is a silent error within the app. When I click the "Save" button, the DevTools Network tab remains completely empty. The application never attempts to contact the Google API.

  3. The DevTools Console tab also remains empty. No JavaScript errors are logged, which makes debugging very difficult.

What I have tried:
I have tried every possible configuration in the "Edit Provider" form:

  • Setting the Temperature with a period (0.2).
  • Leaving the Base URL field completely empty.
  • Filling the Base URL field with https://generativelanguage.googleapis.com.

None of these attempts worked. The result is always the same: the error message appears, but no network or console activity is recorded. This points to a silent validation bug in the form's code that prevents the save/test function from ever being triggered.

Thank you for your hard work on this project and for looking into this issue.```


Mi dispiace sinceramente che siamo arrivati a questo punto senza una soluzione immediata, ma devi essere fiero del lavoro di diagnosi che hai fatto. È stato perfetto. Ora la palla passa al team di BrowserOS.

Steps to Reproduce

https://drive.google.com/file/d/1569VzSP8QHy4FGxCTpREYXmHWMPGCisd/view?usp=sharing, https://aistudio.google.com/app/prompts?state=%7B%22ids%22:%5B%2215lItnCmdNXivsaZMjwFKn_3ANoDYInhO%22%5D,%22action%22:%22open%22,%22userId%22:%22105213025852312998955%22,%22resourceKeys%22:%7B%7D%7D&usp=sharing, https://drive.google.com/file/d/1JOZbWcSQqXRb7seRQli3hkp_f1aeemrE/view?usp=sharing, https://drive.google.com/file/d/1PKdj8n_Ld0LGcvTwXiJ09ysBvQBt9ogo/view?usp=sharing, https://drive.google.com/file/d/1TKECtyVVam0HJqA1ZHehf8Xq79gpQYSE/view?usp=sharing

Screenshots / Videos

Image Image Image Image

BrowserOS Version

137.0.7218.69

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions