Sometimes Generated Images cannot be saved #124

Open
opened 2026-02-13 17:27:53 -06:00 by mirrors · 2 comments
Owner

Originally created by @Remik1r3n on GitHub (Dec 12, 2025).

I am not sure why is it. What I know is, When I use the same code to generate images:

2025-12-12 22:45:13.465 | DEBUG    | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 1, [None, [None, None, None, None, None, None, None, [19]], Fals...
2025-12-12 22:45:13.466 | DEBUG    | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 4, [None, [None, None, None, None, None, None, None, [19]], Fals...
2025-12-12 22:45:13.466 | DEBUG    | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 1, [None, [None, None, None, None, None, None, None, [19]], Fals...
2025-12-12 22:45:13.466 | DEBUG    | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 4, [None, [None, None, None, None, None, None, None, [19]], Fals...
2025-12-12 22:45:13.467 | DEBUG    | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 4, [None, [None, None, None, None, None, None, None, [19]], Fals...
2025-12-12 22:45:13.467 | DEBUG    | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, None, None, None, None, ['Reviewing the fit'], None, None, None, None, None, []], '44': False}]
2025-12-12 22:45:13.468 | DEBUG    | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [12, 1] ended at index 1 (key '1'), returning default. Context: [{'7': [3], '8': [[[[None, None, None, [None, 1, '11021556487265648790.png', 'https://lh3.googleusercontent.com/gg-dl/ABS2GSkW8H5fVdwqgp72DSBOqEpw1xqQ_vbXK-m5lb7QKJ67__5J-EQ5ZjoPdO17N6zWRXMEjlYJNfH...
2025-12-12 22:45:13.468 | DEBUG    | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [12, 7, 0] ended at index 1 (key '7'), returning default. Context: [{'7': [3], '8': [[[[None, None, None, [None, 1, '11021556487265648790.png', 'https://lh3.googleusercontent.com/gg-dl/ABS2GSkW8H5fVdwqgp72DSBOqEpw1xqQ_vbXK-m5lb7QKJ67__5J-EQ5ZjoPdO17N6zWRXMEjlYJNfH...

and response.images is empty, so nothing can be saved.

And if I change cookie to another account, without changing any code, it will work without any issue.

So, I'm confused. Any helps will be appreciated.

Originally created by @Remik1r3n on GitHub (Dec 12, 2025). I am not sure why is it. What I know is, When I use the same code to generate images: ``` 2025-12-12 22:45:13.465 | DEBUG | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 1, [None, [None, None, None, None, None, None, None, [19]], Fals... 2025-12-12 22:45:13.466 | DEBUG | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 4, [None, [None, None, None, None, None, None, None, [19]], Fals... 2025-12-12 22:45:13.466 | DEBUG | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 1, [None, [None, None, None, None, None, None, None, [19]], Fals... 2025-12-12 22:45:13.466 | DEBUG | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 4, [None, [None, None, None, None, None, None, None, [19]], Fals... 2025-12-12 22:45:13.467 | DEBUG | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, ['data_analysis_tool', [None, None, 'Loading Nano Banana Pro...'], 4, [None, [None, None, None, None, None, None, None, [19]], Fals... 2025-12-12 22:45:13.467 | DEBUG | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [4] ended at index 0 (key '4'), returning default. Context: [None, ['c_3371f64741771ff0', 'r_88512bfdc2ac859c'], {'7': [None, None, None, None, None, ['Reviewing the fit'], None, None, None, None, None, []], '44': False}] 2025-12-12 22:45:13.468 | DEBUG | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [12, 1] ended at index 1 (key '1'), returning default. Context: [{'7': [3], '8': [[[[None, None, None, [None, 1, '11021556487265648790.png', 'https://lh3.googleusercontent.com/gg-dl/ABS2GSkW8H5fVdwqgp72DSBOqEpw1xqQ_vbXK-m5lb7QKJ67__5J-EQ5ZjoPdO17N6zWRXMEjlYJNfH... 2025-12-12 22:45:13.468 | DEBUG | gemini_webapi.utils.parsing:get_nested_value:32 - Safe navigation: path [12, 7, 0] ended at index 1 (key '7'), returning default. Context: [{'7': [3], '8': [[[[None, None, None, [None, 1, '11021556487265648790.png', 'https://lh3.googleusercontent.com/gg-dl/ABS2GSkW8H5fVdwqgp72DSBOqEpw1xqQ_vbXK-m5lb7QKJ67__5J-EQ5ZjoPdO17N6zWRXMEjlYJNfH... ``` and `response.images` is empty, so nothing can be saved. And if I change cookie to another account, without changing any code, it will work without any issue. So, I'm confused. Any helps will be appreciated.
Author
Owner

@Remik1r3n commented on GitHub (Dec 12, 2025):

Images is actually successfully generated. If I back to Gemini Web and check Chats history, I can see the generated images. It's just not saved.

@Remik1r3n commented on GitHub (Dec 12, 2025): Images is actually successfully generated. If I back to Gemini Web and check Chats history, I can see the generated images. It's just not saved.
Author
Owner

@Chomtana commented on GitHub (Dec 23, 2025):

await client.init(timeout=300, auto_close=False, close_delay=300, auto_refresh=True)

Try increasing timeout to 300

Nano banana pro can't generate full image in 30s

@Chomtana commented on GitHub (Dec 23, 2025): `await client.init(timeout=300, auto_close=False, close_delay=300, auto_refresh=True)` Try increasing timeout to 300 Nano banana pro can't generate full image in 30s
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mirrors/Gemini-API#124
No description provided.