Failed to fetch gems. Unexpected response data structure. Client will try to re-initialize on next request. #144

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

Originally created by @hurryman2212 on GitHub (Feb 3, 2026).

When doing:

client = GeminiClient()
await client.init(
    timeout=180, auto_close=True, close_delay=300, auto_refresh=True
)
await client.fetch_gems()
2026-02-03 16:27:06.399 | DEBUG    | gemini_webapi.components.gem_mixin:fetch_gems:103 - Unexpected response data structure: )]}'

1625
[["wrb.fr","CNgdBe","[null,null,[[\"storybook\",[\"Storybook\",\"Create a customized picture book, for either children or adults, given a topic, an optional target audience age, and an optional art style for the images.\",null,[\"My 7 year old doesn't want to sleep over at their grandma's house. Create a storybook to help them cope.\",\"This is a photo of my college roommate, Amelia. She leaves empty mugs everywhere. Write a funny storybook about how she learns to clean them up.\",\"Using a Claymation art style, create a storybook about friendly bees and how useful they really are to the earth, to help my kids lose their fear of them.\",\"Using an Anime art style, create a storybook for my brother Akito who just moved out of my parents house and has to learn to be an adult now that he's in college.\"],null,null,[null,null,[\"menu_book\"],[\"#00B6BC\",\"#004144\",\"#004144\"],[\"#00696D\",\"#93E7EB\",\"#93E7EB\"]],true,true,[null,null,1,true,false],null,0,[],false],[],null,null,[false,true,true]],[\"productivity-helper\",[\"Productivity planner\",\"Stay on top of your work. Schedule tasks, daily updates, and weekly summaries from apps like Gmail, Calendar, and Drive to boost your productivity.\",null,[\"Create a work brief for me every morning.\",\"Plan and schedule my tasks for today.\",\"Summarize my key projects each week.\",\"Recommend what I should work on today.\"],null,null,[null,null,[\"task_alt\"],[\"#C88EE1\",\"#55226E\",\"#55226E\"],[\"#9700D2\",\"#F2CCFF\",\"#F2CCFF\"]],true,true,[null,null,null,true,false],null,0,null,false],[],null,null,[false,true,true]]]]",null,null,null,"system"]]
462
[["wrb.fr","CNgdBe","[null,null,[[\"eaa25c678477\",[\"gemini-webapi\",\"\",null,null,null,null,[\"\",null,null,[\"#D89800\",\"#4F3500\",\"#4F3500\"],[\"#7E5700\",\"#FFD289\",\"#FFD289\"]],false,false,[],[],0,null,false],[\"[\\\"**System Capabilities:**\\\\nYou have the ability to execute commands on the user's Linux computer.\\\\n...\",null,[1]],false,null,[true,true,true]]]]",null,null,null,"custom"],["di",347],["af.httprm",347,"-8822169445250875066",40]]
26
[["e",5,null,null,2128]]

"wrb.fr","CNgdBe","[null,null,[["eaa25c678477",["gemini-webapi","",null,null,null,null,["",null,null,["#D89800","#4F3500","#4F3500"],["#7E5700","#FFD289","#FFD289",false,false,[],[],0,null,false],["[\"System Capabilities:\\nYou have the ability to execute commands on the user's Linux computer.\\n...",null,[1]],false,null,[true,true,true]]]]",null,null,null,"custom"],["di",347],["af.httprm",347,"-8822169445250875066",40]]

is the only one that is currently existing (made by me).

Originally created by @hurryman2212 on GitHub (Feb 3, 2026). When doing: ``` client = GeminiClient() await client.init( timeout=180, auto_close=True, close_delay=300, auto_refresh=True ) await client.fetch_gems() ``` ``` 2026-02-03 16:27:06.399 | DEBUG | gemini_webapi.components.gem_mixin:fetch_gems:103 - Unexpected response data structure: )]}' 1625 [["wrb.fr","CNgdBe","[null,null,[[\"storybook\",[\"Storybook\",\"Create a customized picture book, for either children or adults, given a topic, an optional target audience age, and an optional art style for the images.\",null,[\"My 7 year old doesn't want to sleep over at their grandma's house. Create a storybook to help them cope.\",\"This is a photo of my college roommate, Amelia. She leaves empty mugs everywhere. Write a funny storybook about how she learns to clean them up.\",\"Using a Claymation art style, create a storybook about friendly bees and how useful they really are to the earth, to help my kids lose their fear of them.\",\"Using an Anime art style, create a storybook for my brother Akito who just moved out of my parents house and has to learn to be an adult now that he's in college.\"],null,null,[null,null,[\"menu_book\"],[\"#00B6BC\",\"#004144\",\"#004144\"],[\"#00696D\",\"#93E7EB\",\"#93E7EB\"]],true,true,[null,null,1,true,false],null,0,[],false],[],null,null,[false,true,true]],[\"productivity-helper\",[\"Productivity planner\",\"Stay on top of your work. Schedule tasks, daily updates, and weekly summaries from apps like Gmail, Calendar, and Drive to boost your productivity.\",null,[\"Create a work brief for me every morning.\",\"Plan and schedule my tasks for today.\",\"Summarize my key projects each week.\",\"Recommend what I should work on today.\"],null,null,[null,null,[\"task_alt\"],[\"#C88EE1\",\"#55226E\",\"#55226E\"],[\"#9700D2\",\"#F2CCFF\",\"#F2CCFF\"]],true,true,[null,null,null,true,false],null,0,null,false],[],null,null,[false,true,true]]]]",null,null,null,"system"]] 462 [["wrb.fr","CNgdBe","[null,null,[[\"eaa25c678477\",[\"gemini-webapi\",\"\",null,null,null,null,[\"\",null,null,[\"#D89800\",\"#4F3500\",\"#4F3500\"],[\"#7E5700\",\"#FFD289\",\"#FFD289\"]],false,false,[],[],0,null,false],[\"[\\\"**System Capabilities:**\\\\nYou have the ability to execute commands on the user's Linux computer.\\\\n...\",null,[1]],false,null,[true,true,true]]]]",null,null,null,"custom"],["di",347],["af.httprm",347,"-8822169445250875066",40]] 26 [["e",5,null,null,2128]] ``` [["wrb.fr","CNgdBe","[null,null,[[\"eaa25c678477\",[\"gemini-webapi\",\"\",null,null,null,null,[\"\",null,null,[\"#D89800\",\"#4F3500\",\"#4F3500\"],[\"#7E5700\",\"#FFD289\",\"#FFD289\"]],false,false,[],[],0,null,false],[\"[\\\"**System Capabilities:**\\\\nYou have the ability to execute commands on the user's Linux computer.\\\\n...\",null,[1]],false,null,[true,true,true]]]]",null,null,null,"custom"],["di",347],["af.httprm",347,"-8822169445250875066",40]] is the only one that is currently existing (made by me).
mirrors 2026-02-13 17:27:55 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@hurryman2212 commented on GitHub (Feb 4, 2026):

EDIT: create_gem also fails with the similar error. I guess update_gem probably broken too.

Failed to create gem. Unexpected response data structure. Client will try to re-initialize on next request.

2026-02-04 11:11:38.670 | DEBUG    | gemini_webapi.components.gem_mixin:create_gem:201 - Unexpected response data structure: )]}'
105
[["wrb.fr","oMH3Zd",null,null,null,[3],"generic"],["di",76],["af.httprm",75,"-3949492112187715402",35]]
25
[["e",4,null,null,141]]
@hurryman2212 commented on GitHub (Feb 4, 2026): EDIT: `create_gem` also fails with the similar error. I guess `update_gem` probably broken too. ``` Failed to create gem. Unexpected response data structure. Client will try to re-initialize on next request. 2026-02-04 11:11:38.670 | DEBUG | gemini_webapi.components.gem_mixin:create_gem:201 - Unexpected response data structure: )]}' 105 [["wrb.fr","oMH3Zd",null,null,null,[3],"generic"],["di",76],["af.httprm",75,"-3949492112187715402",35]] 25 [["e",4,null,null,141]] ```
Author
Owner

@HanaokaYuzu commented on GitHub (Feb 4, 2026):

Fixed in v1.18.1

@HanaokaYuzu commented on GitHub (Feb 4, 2026): Fixed in v1.18.1
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#144
No description provided.