Building Agentic Apps with Flutter and Firebase Studio: Failed to order items. Please try again

In ‘Building Agentic Apps with Flutter and Firebase Studio’ code lab step #6, when I click ‘Buy 10 remaining items’, I’m getting the error message within the simulator:

Failed to order items. Please try again.

BTW, I have tried a few times without success. In the ‘Output’ console, I’m seeing the following error message:

2025-05-03T05:46:43Z [android] I/flutter ( 5664): Error: Exception: Server responded with a non-200 status code: 500

Ok, I was getting the following issue for some reason after checking that I was barely using the Gemini API:

Thus, I was able to resolve the issue by creating another Gemini API Key and associating it to the project. Now, things appear to work as expected using the Firebase Studio Simulator.

1 Like