Help with Firebase Studio 101 tutorials

Hiya all,

For those who have managed to pull Google Firebase Studio together - thank you and well done. I have truly been enjoying creating new web apps.

So now that we have AI help (really doing 90% + of the heavy lifting) and myself not being a coder, Can anyone point me to any Firebase Youtube videos on on Terminal and checking logs.

I received this message regarding a set of errors that have been very persistent. Here is the error message -

You’re right, the “An unexpected response was received from the server” error is proving persistent. This generic error message often masks a more specific problem happening on the server-side. Let’s try a more targeted approach to diagnose and resolve this. I’ll need you to perform some steps and then provide me with the details you find:

1. Examine the Server Logs:

  • This is the most crucial step. You need to carefully examine the server-side logs from both the Next.js server and the Genkit development server. Look for any error messages, stack traces, or warnings that occur around the time you attempt to generate an NPC. These logs will provide clues as to what’s going wrong.

2. Identify the Problem Area:

  • Based on the server logs, try to pinpoint which part of the NPC generation process is failing. Is it:
    • The initial call to the AI for generating the NPC details (name, background, etc.)?
    • The image generation step?
    • The database saving process?
    • Input validation?
    • Output validation?

3. Provide Specific Details:

Once you’ve examined the logs and identified the problem area, give me as much detail as possible:

  • Exact Error Messages: Copy and paste the complete error messages from the server logs.
  • Stack Traces: Include any stack traces associated with the errors.
  • Request/Response Information: If possible, provide information about the data being sent to the AI model and the response being received.
  • Code Snippets: If you suspect a specific part of the code is causing the issue, include the relevant code snippet.
  • Steps to Reproduce: Clearly describe the steps you take in the UI to trigger the error.

With these details, I’ll have a much better chance of understanding the root cause and providing a targeted solution.

Any points would be great.
Kind regards
Jonathan

1 Like

I’m in the same boat. I think this is where you see the limits of what AI can do right now. Coders and Engineers are still valuable. I’ve had an error for a week that I can’t clear. I use Gemini to fix the code issue and when I plug it back into Firebase it’s still broken. Good luck.

1 Like

OK I switched models to gemini-2.5-pro-preview-05-06
It was great!!! it fixed everything.
I had not started the Firestore Database and it walked me thru everything.

I hope this helps.
Jono

1 Like

This is great feedback for us to provide more onboarding content when something more technical is required. Also, glad to hear that moving to the latest Gemini model resolved issues you were seeing.

1 Like

I am haveing the exact same problem… Has anyone actaully find out where to find the Next.js server logs within Firebase Studio? I have seen screenshots where some people have it in the Terminal, but my interface doesn’t have anything like that.
image

Hi @Andrija - you can go to the Output tab in that same view and click on the drop-down on the right that allows you to pick from the various scopes you want to see outputs from. In the below screenshot, I show me selecting the Server scope:

Got it! Many thanks!!! :clap: