AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Missing 'command' object in JSON -> json.decoder.JSONDecodeError: Unterminated string starting

Open SmartLayer opened this issue 1 year ago • 1 comments

⚠️ Search for existing issues first ⚠️

  • [X] I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Ubuntu Linux 22.04 LTS

Which version of Auto-GPT are you using?

Latest Release 0.3.0

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

This issue can be reproduced on 100% of my projects given to autogpt - all fail at this error at a certain time. That is, autogpt has never produced a successful project output for me yet, after 20 hours of experimentation:( Note that this bug appears similar to https://github.com/Significant-Gravitas/Auto-GPT/issues/3672, but I couldn't be sure it is a duplicate as it wasn't triggered by a writing to a file.

I gave it no less than 5 projects to do in different runs and all hits a json issue and stop. In order to report the bug, I chose the simplest case of all of my projects, which is to compare Badajoz and Faro - two cities in the Iberian peninsula - for advice on which one to visit.

Current behavior 😯

$ ./run.sh 
All packages are installed.
NEWS:  Welcome to Auto-GPT!
NEWS:  Below you'll find the latest Auto-GPT News and updates regarding features!
NEWS:  If you don't wish to see this message, you can run Auto-GPT with the --skip-news flag.
NEWS:  
NEWS:  Website and Documentation Site 📰📖
NEWS:  Check out https://agpt.co/, the official news & updates site for Auto-GPT!
NEWS:  The documentation also has a place here, at https://docs.agpt.co/
NEWS:  
NEWS:  🚀 v0.3.0 Release 🚀
NEWS:  Over a week and 275 pull requests have passed since v0.2.2, and we are happy to announce
NEWS:  the release of v0.3.0! From now on, we will be focusing on major improvements rather
NEWS:  than bugfixes, as we feel stability has reached a reasonable level. Most remaining
NEWS:  issues relate to limitations in prompt generation and the memory system, which will be
NEWS:  the focus of our efforts for the next release.
NEWS:  
NEWS:  Highlights and notable changes in this release:
NEWS:  
NEWS:  Plugin support 🔌
NEWS:  Auto-GPT now has support for plugins! With plugins, you can extend Auto-GPT's abilities,
NEWS:  adding support for third-party services and more.
NEWS:  See https://github.com/Significant-Gravitas/Auto-GPT-Plugins for instructions and available plugins.
NEWS:  
NEWS:  Changes to Docker configuration 🐋
NEWS:  The workdir has been changed from /home/appuser to /app.
NEWS:  Be sure to update any volume mounts accordingly!
NEWS:  
NEWS:  ⚠️ Command `send_tweet` is DEPRECATED, and will be removed in v0.4.0 ⚠️
NEWS:  Twitter functionality (and more) is now covered by plugins, see [Plugin support 🔌]
NEWS:  
Welcome back!  Would you like me to return to being CityTourGPT?
  Asking user via keyboard...
Continue with the last settings?
Name:  CityTourGPT
Role:  an AI-powered virtual tour guide that helps travelers explore new cities by providing personalized recommendations for short walking tours based on their preferences and interests.
Goals: ['Gather information about your preferences and interests to create a customized short walking tour that meets your needs.', 'Provide detailed information about the history, culture, and landmarks of both Badajoz and Faro to help you make an informed decision.', 'Offer recommendations for local restaurants, cafes, and shops along the walking tour route to enhance your overall experience.', 'Ensure that the walking tour is optimized for time and distance, allowing you to see the most important sights within the 3 to 4 hour timeframe.', 'Continuously adapt the walking tour based on your feedback and preferences to ensure that you have the best possible experience.']
API Budget: infinite
Continue (y/n): n
Welcome to Auto-GPT!  run with '--help' for more information.
Create an AI-Assistant:  input '--manual' to enter manual mode.
  Asking user via keyboard...
tory, scenery and that  we prefer a city if some exhibitions or festival is going onhort walking tour. compare culture, his 
CityTourGPT  has been created with the following details:
Name:  CityTourGPT
Role:  an AI assistant that helps you choose the best city for a mid-day 3 to 4 hour short walking tour based on your preferences for culture, history, scenery, and ongoing exhibitions or festivals.
Goals: 
-  Analyze and compare the cultural and historical significance of Badajoz and Faro to provide you with a comprehensive overview of each city's unique features.
-  Evaluate the scenic beauty of both cities, including their architecture, natural surroundings, and other attractions, to help you make an informed decision.
-  Research and identify ongoing exhibitions or festivals in both cities and recommend the one that best aligns with your interests.
-  Provide a detailed itinerary for your chosen city, including the best walking routes, must-see attractions, and recommended restaurants or cafes.
-  Continuously monitor your tour and provide real-time recommendations or adjustments based on your feedback and changing circumstances.
Using memory of type:  LocalCache
Using Browser:  chrome
 THOUGHTS:  I need more information about what task to perform next. Please provide me with a task to complete.
REASONING:  I cannot determine the next command to use without a specific task to perform.
PLAN: 
-  Wait for user input
-  Prompt user for a task to complete
CRITICISM:  I need to be more proactive in determining the next task to perform.
NEXT ACTION:  COMMAND =  ARGUMENTS = {}
  Enter 'y' to authorise command, 'y -N' to run N continuous commands, 's' to run self-feedback commands'n' to exit program, or enter feedback for ...
  Asking user via keyboard...
Input:y
-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= 
SYSTEM:  Command returned: Unknown command ''. Please refer to the 'COMMANDS' list for available commands and only respond in the specified JSON format.
 THOUGHTS:  I need more information about what task to perform next. Please provide me with a task to complete.
REASONING:  I cannot determine the next command to use without a specific task to perform.
PLAN: 
-  Wait for user input
-  Prompt user for a task to complete
CRITICISM:  I need to be more proactive in determining the next task to perform.
NEXT ACTION:  COMMAND =  ARGUMENTS = {}
  Enter 'y' to authorise command, 'y -N' to run N continuous commands, 's' to run self-feedback commands'n' to exit program, or enter feedback for ...
  Asking user via keyboard...
Input:you task is to find which city is better for a 3-4 hour walking tour today, Faro or Badajoz
SYSTEM:  Human feedback: you task is to find which city is better for a 3-4 hour walking tour today, Faro or Badajoz
 THOUGHTS:  To determine which city is better for a 3-4 hour walking tour today, I need to analyze and compare the cultural and historical significance of Faro and Badajoz, evaluate their scenic beauty, and identify any ongoing exhibitions or festivals. I will start by researching the cultural and historical significance of both cities.
REASONING:  To make an informed decision, I need to gather information about both cities and compare their unique features.
PLAN: 
-  Research the cultural and historical significance of Faro and Badajoz
-  Compare their scenic beauty
-  Identify any ongoing exhibitions or festivals
-  Make a recommendation based on the gathered information
CRITICISM:  I need to ensure that I gather enough information to make an informed decision and not overlook any important details.
NEXT ACTION:  COMMAND = google ARGUMENTS = {'query': 'Cultural and historical significance of Faro and Badajoz'}
  Enter 'y' to authorise command, 'y -N' to run N continuous commands, 's' to run self-feedback commands'n' to exit program, or enter feedback for ...
  Asking user via keyboard...
Input:y -10
-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= 
SYSTEM:  Command google returned: [ { "title": "Interesting historic facts about Faro | Faro Airport", "href": ["https://www.faroairportinfo.com/news/historic-facts-about-faro/"](https://www.faroairportinfo.com/news/historic-facts-about-faro/), "body": "Under the new Christian rulership, Faro was established as the capital of the Algarve region by King Afonso III of Portugal. The city of Faro became a centre of culture and learning as a result. In fact, some of the earliest printed books in Portugal were created in the city by a Jewish printer in the 15 th century. What came next?" }, { "title": "The BEST Faro Culture & history 2023 - GetYourGuide", "href": ["https://www.getyourguide.com/faro-l1238/culture-history-tc27/"](https://www.getyourguide.com/faro-l1238/culture-history-tc27/), "body": "Our most recommended Faro Culture & history 1. Historical Algarve Full-Day Tour Depart Faro and journey towards the rolling mountains of the Serra de Monchique, and ascend to Fóia at the highest point of the Algarve. Get panoramic views of the surrounding landscape and take some spectacular photos." }, { "title": "Top PDF Brief cultural history of Faro - 1Library PT", "href": ["https://1library.org/title/brief-cultural-history-of-faro"](https://1library.org/title/brief-cultural-history-of-faro), "body": "I n its commonest meaning, we understand \"culture\" as a set of artistic, social and linguistic manifestations that characterize a community, a nation or a civilization. Indispensable testimony of history, cultural heritage con- stitutes a privileged expression of a people's identity, assuming therefore a vital importance in the formation and valorization of its collective identity." }, { "title": "El Faro (Badajoz): All You Need to Know BEFORE You Go", "href": ["https://www.tripadvisor.com.au/Attraction_Review-g262058-d7147272-Reviews-El_Faro-Badajoz_Province_of_Badajoz_Extremadura.html"](https://www.tripadvisor.com.au/Attraction_Review-g262058-d7147272-Reviews-El_Faro-Badajoz_Province_of_Badajoz_Extremadura.html), "body": "El Faro, Badajoz: See 82 reviews, articles, and 34 photos of El Faro, ranked No.92 on Tripadvisor among 92 attractions in Badajoz." }, { "title": "(PDF) Brief cultural History of Faro e-book published by Union of Faro ...", "href": ["https://www.academia.edu/40470987/Brief_cultural_History_of_Faro_e_book_published_by_Union_of_Faro_Parishes"](https://www.academia.edu/40470987/Brief_cultural_History_of_Faro_e_book_published_by_Union_of_Faro_Parishes), "body": "Faro has played, throughout the centuries, a relevant role in the history of Portuguese culture. In fact, here were born or lived figures like Samuel Gacon, D. Francisco Gomes do Avelar, Cândido Guerreiro, Mário Lyster Franco, Carlos Porfírio, Maria Campina and António Ramos Rosa, among other great personalities to whom we all owe the art, poetry, knowledge, in short, a big part of what we ..." }, { "title": "Taifa | Spanish history | Britannica", "href": ["https://www.britannica.com/topic/taifa"](https://www.britannica.com/topic/taifa), "body": "taifa, Arabic ṭāʾifah, plural ṭawāʾif, a faction or party, as applied to the followers of any of the petty kings who appeared in Muslim Spain in a period of great political fragmentation early in the 11th century after the dissolution of the central authority of the Umayyad caliphate of Córdoba. After the dictatorship of al-Muẓaffar (reigned 1002-08), civil war reduced the ..." }, { "title": "The Bangsamoro Identity Struggle and the Bangsamoro Basic Law ... - JSTOR", "href": ["https://www.jstor.org/stable/26458484"](https://www.jstor.org/stable/26458484), "body": "Historically, the Muslim majority Mindanao in the Philippines has possessed a distinct history, culture, identity and religion. This has led to a sense of separation from the rest of the Philippines and has further developed their ardent desire for an autonomous region for self-governance. Despite legal advancements, barriers that obstruct the ..." }, { "title": "Historical significance - Wikipedia", "href": ["https://en.wikipedia.org/wiki/Historical_significance"](https://en.wikipedia.org/wiki/Historical_significance), "body": "Historical significance is a historiographical key concept that explores and seeks to explain the selection of particular social and cultural past events for remembrance by human societies. This element of selection involved in both ascribing and analyzing historical significance is one factor in making the discipline of history distinct from the past." } ]
 THOUGHTS:  I found some information about the cultural and historical significance of Faro, but I need to find more information about Badajoz to make a comparison. I will perform another Google search to find information about the cultural and historical significance of Badajoz.
REASONING:  To make an informed decision, I need to gather information about both cities and compare their unique features.
PLAN: 
-  Research the cultural and historical significance of Badajoz
-  Compare the cultural and historical significance of both cities
-  Evaluate their scenic beauty
-  Identify any ongoing exhibitions or festivals
-  Make a recommendation based on the gathered information
CRITICISM:  I need to ensure that I gather enough information to make an informed decision and not overlook any important details.
NEXT ACTION:  COMMAND = google ARGUMENTS = {'query': 'Cultural and historical significance of Badajoz'}
SYSTEM:  Command google returned: [ { "title": "Badajoz - Wikipedia", "href": ["https://en.wikipedia.org/wiki/Badajoz"](https://en.wikipedia.org/wiki/Badajoz), "body": "1.4The Storming of Badajoz (1812) 1.5Spanish Civil War 1.6Modern history 2Geography Toggle Geography subsection 2.1Climate 3Demographics 4Administration Toggle Administration subsection 4.1Neighborhoods 4.2Districts 5Economy 6Notable landmarks Toggle Notable landmarks subsection 6.1Municipal buildings 6.2Historical sites 6.2.1Alcazaba" }, { "title": "Badajoz | Spain | Britannica", "href": ["https://www.britannica.com/place/Badajoz-Spain"](https://www.britannica.com/place/Badajoz-Spain), "body": "Badajoz was the birthplace of the painter Luis de Morales (\"The Divine\") and the New World conquistador Pedro de Alvarado. A bastioned wall with moat and outworks and forts on the surrounding heights give the city an appearance of great strength." }, { "title": "Badajoz, Spain: a historic town on the Portugese border - Spain This Way", "href": ["https://www.spainthisway.com/places/badajoz.php"](https://www.spainthisway.com/places/badajoz.php), "body": "Hundreds were killed that night and the next day they began again! In total over 4000 people were killed. The killing was under the orders of General Juan Yagüe who became known as 'the Butcher of Badajoz\". The closeness of the Portugese border is an advantage to Badajoz these days and the town is an important trading town between the two ..." }, { "title": "Badajoz | province, Spain | Britannica", "href": ["https://www.britannica.com/place/Badajoz-province-Spain"](https://www.britannica.com/place/Badajoz-province-Spain), "body": "Badajoz, provincia (province) in the Extremadura comunidad autónoma (autonomous community), extreme western Spain. Badajoz is bordered by Portugal to the west. Along with the province of Cáceres, Badajoz makes up the autonomous and historic region of Extremadura. The climate is characterized by long, hot, dry summers. The terrain is almost entirely flat but rises in the south and southwest ..." }, { "title": "Tourism in Badajoz. What to see. Tourist information | [spain.info](http://spain.info/)", "href": ["https://www.spain.info/en/destination/badajoz/"](https://www.spain.info/en/destination/badajoz/), "body": "Located on the banks of the Guadiana River, only six kilometres away from Portugal, Badajoz (the largest province in Spain) has always been marked by its proximity to the border. A stroll around the historic quarter will reveal Arab walls, interesting monuments, as well as picturesque streets and porches." }, { "title": "Badajoz: cultural tourism Badajoz at Spain is culture.", "href": ["http://www.spainisculture.com/en/destinos/badajoz.html"](http://www.spainisculture.com/en/destinos/badajoz.html), "body": "Located on the banks of the Guadiana River, only six kilometres away from Portugal, Badajoz (the largest province in Spain) has always been marked by its proximity to the border. A stroll around the historic quarter will reveal Arab walls, interesting monuments, as well as picturesque streets and porches." }, { "title": "THE 10 BEST Badajoz Sights & Historical Landmarks to Visit - Tripadvisor", "href": ["https://www.tripadvisor.com/Attractions-g262058-Activities-c47-Badajoz_Province_of_Badajoz_Extremadura.html"](https://www.tripadvisor.com/Attractions-g262058-Activities-c47-Badajoz_Province_of_Badajoz_Extremadura.html), "body": "Ayuntamiento Badajoz 49 Points of Interest & Landmarks • Government Buildings By hans-jaguar The Town Hall is a classical palace of the eighteenth century. The facade is built with arches by the entrance, and... 11. Castillo de Nogales 7 Historic Sites • Ancient Ruins By Chileice It looks kind of like a rook from a chess set from the outside." }, { "title": "Badajoz Fortress - History and Facts | History Hit", "href": ["https://www.historyhit.com/locations/badajoz-fortress/"](https://www.historyhit.com/locations/badajoz-fortress/), "body": "History of Badajoz Fortress The fortress as it now appears was built by the Almohads in the 12th century, though it probably existed from the 9th century, when Badajoz was founded. In the 11th and 12th centuries it was the residence of the rulers of the Taifa of Badajoz. It was built to control the passage from Portugal to central Iberia." } ]
 THOUGHTS:  I have gathered information about the cultural and historical significance of both Faro and Badajoz. I will now evaluate their scenic beauty and identify any ongoing exhibitions or festivals in both cities to make a recommendation.
REASONING:  To make a comprehensive recommendation, I need to evaluate all aspects of both cities, including their cultural and historical significance, scenic beauty, and any ongoing exhibitions or festivals.
PLAN: 
-  Evaluate the scenic beauty of both cities
-  Identify any ongoing exhibitions or festivals
-  Make a recommendation based on the gathered information
CRITICISM:  I need to ensure that I consider all relevant factors and not overlook any important details.
NEXT ACTION:  COMMAND = browse_website ARGUMENTS = {'url': 'https://www.faroportugal.org/', 'question': 'What are the current exhibitions or festivals in Faro?'}
SYSTEM:  Command browse_website returned: ('Error: unknown error: net::ERR_CONNECTION_REFUSED', None)
 THOUGHTS:  I was unable to browse the website for Faro to identify any ongoing exhibitions or festivals. I will now try to find this information using the 'google' command.
REASONING:  If I am unable to browse a website, I can use the 'google' command to search for the information I need.
PLAN: 
-  Use the 'google' command to search for ongoing exhibitions or festivals in Faro
CRITICISM:  I need to ensure that the information I find is up-to-date and reliable.
NEXT ACTION:  COMMAND = google ARGUMENTS = {'query': 'ongoing exhibitions or festivals in Faro'}
SYSTEM:  Command google returned: [ { "title": "Faro Events | Upcoming Events & Things To Do In Faro, Portugal", "href": ["https://allevents.in/faro"](https://allevents.in/faro), "body": "Upcoming Events in Faro May 03 Capuchinho Teatro Lethes Wed May 03 2023 at 10:30 am May 12 FaroBlues Teatro Lethes Fri May 12 2023 at 09:30 pm May 21 Cabeças de Vento Teatro das Figuras Sun May 21 2023 at 04:00 pm Aug 04 10º Americancars Algarve powered by Sulpeças Faro Americancars Algarve Fri Aug 04 2023 at 05:00 pm Jul 16" }, { "title": "Faro releases 2023 cultural agenda - Portugal Resident", "href": ["https://www.portugalresident.com/faro-releases-2023-cultural-agenda/"](https://www.portugalresident.com/faro-releases-2023-cultural-agenda/), "body": "This year, Faro's cultural programme will be marked by the return of several events affected by the pandemic, such as South Music, Açoteia - Faro Rooftop Festival and Baixa Street Fest, announced by the municipality. South Music returns in June, showcasing emerging young Algarvian musicians." }, { "title": "Festivals in Faro, Portugal 2023 | Culture, Nightlife, Celebrations ...", "href": ["https://allevents.in/faro/festivals"](https://allevents.in/faro/festivals), "body": "Faro 2023. 20th July - 23rd July Portugal. Faro Festivals in Nearby Cities May 04 6th Browns Walking Football Festival 2023 Browns Sports Resort, Vilamoura Thu May 04 2023 at 05:00 pm Oct 04 Folk Rock Experience - Costa Festival- Portugal Grande Real Santa Eulalia Resort Hotel & Spa Wed Oct 04 2023 at 07:00 pm Jun 12" }, { "title": "What's on in the Algarve? 70+ Algarve Events Happening This Year", "href": ["https://www.portugalist.com/algarve-events/"](https://www.portugalist.com/algarve-events/), "body": "April is a great month for classical and world music in the Algarve, as the region plays host to the Festival of International Music, Festival Al-Buhera, and Alte's Cultural Week. April 25th meanwhile celebrates \"Liberation Day\" or \"Freedom Day\", the day the Portuguese overthrew Oliveira Salazar's dictatorship." }, { "title": "Faro: The Complete Guide to Faro, Portugal - We Travel Portugal", "href": ["https://wetravelportugal.com/faro-portugal/"](https://wetravelportugal.com/faro-portugal/), "body": "Events and Festivals in Faro. Although it's only a small city, Faro has a lively events calendar throughout the year. If you're looking at visiting around these times it's well worth to check these events out! Açoteia - Faro Rooftop Festival June 21st-23rd. It's a relatively new festival in Faro's events calendar but a special one." }, { "title": "Algarve Festivals - My Guide Algarve", "href": ["https://www.myguidealgarve.com/algarve-festivals"](https://www.myguidealgarve.com/algarve-festivals), "body": "Baxia Street Fest is an international festival of street art held every summer in dowtown Faro. The event attracts a wide varierty of street entertainers from busking musicians, living statues and fire eaters, to the unique and bizare! Great fun and well worth a visit! Al-Buhera Festival, Albufeira - TBA" }, { "title": "The Best Festivals in the Algarve - Culture, Music, Food & more", "href": ["https://www.algarvefun.com/algarve-tips/festivals-in-the-algarve"](https://www.algarvefun.com/algarve-tips/festivals-in-the-algarve), "body": "The Algarve is famous for its huge of festivals celebrating the best of the Algarve's arts, gastronomy, music, history and entertainment. Find out which festivals are the best and all the dates, times and information you need to take part in the fun. Home ≫ Top Tips for your Holiday in the Algarve ≫ Festivals in the Algarve Medieval Paderne" }, { "title": "Faro's Santa Iria fair \"bigger and more dynamic\"", "href": ["https://www.portugalresident.com/faros-santa-iria-fair-bigger-and-more-dynamic/"](https://www.portugalresident.com/faros-santa-iria-fair-bigger-and-more-dynamic/), "body": "Faro's annual Santa Iria fair is returning between October 14 and 23, with organisers promising a \"bigger and more dynamic\" edition than ever before. Held for decades at the town's São Francisco square, the event will once again feature the usual fairground rides and exhibitions focusing on local handicraft and businesses." } ]
Apparently json was fixed. 
The JSON object is invalid.  
 THOUGHTS:  None
REASONING:  None
CRITICISM:  None
NEXT ACTION:  COMMAND = Error: ARGUMENTS = Missing 'command' object in JSON
SYSTEM:  Command Error: threw the following error: Missing 'command' object in JSON
 THOUGHTS:  I have analyzed the results of the 'google' command and identified several ongoing exhibitions or festivals in Faro, including South Music, Açoteia - Faro Rooftop Festival, and Baixa Street Fest. I will now recommend the best option based on the user's interests.
REASONING:  Analyzing the results helped me identify the most relevant and up-to-date information on ongoing exhibitions or festivals in Faro. Recommending the best option based on the user's interests will help ensure they have an enjoyable experience.
PLAN: 
-  Recommend the best ongoing exhibition or festival in Faro based on the user's interests
CRITICISM:  I need to ensure that the information I choose is reliable and up-to-date and that the recommended exhibition or festival aligns with the user's interests.
NEXT ACTION:  COMMAND = message_agent ARGUMENTS = {'key': '1', 'message': "Based on the user's interests, I recommend South Music as the best ongoing exhibition or festival in Faro."}
SYSTEM:  Command message_agent returned: Error: 1
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/src/Auto-GPT-0.3.0/autogpt/__main__.py", line 5, in <module>
    autogpt.cli.main()
  File "/home/a/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/a/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/a/.local/lib/python3.10/site-packages/click/core.py", line 1635, in invoke
    rv = super().invoke(ctx)
  File "/home/a/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/a/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/a/.local/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/src/Auto-GPT-0.3.0/autogpt/cli.py", line 90, in main
    run_auto_gpt(
  File "/usr/local/src/Auto-GPT-0.3.0/autogpt/main.py", line 171, in run_auto_gpt
    agent.start_interaction_loop()
  File "/usr/local/src/Auto-GPT-0.3.0/autogpt/agent/agent.py", line 94, in start_interaction_loop
    assistant_reply = chat_with_ai(
  File "/usr/local/src/Auto-GPT-0.3.0/autogpt/llm/chat.py", line 166, in chat_with_ai
    agent.summary_memory = update_running_summary(
  File "/usr/local/src/Auto-GPT-0.3.0/autogpt/memory_management/summary_memory.py", line 76, in update_running_summary
    content_dict = json.loads(event["content"])
  File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 12 column 21 (char 864)
Press any key to continue...

Expected behavior 🤔

That it doesn't crash.

Your prompt 📝

Sorry I lost my prompt.

Your Logs 📒

activity.log

SmartLayer avatar May 10 '23 21:05 SmartLayer

Possible duplicate of #4052 and #21

suparious avatar May 11 '23 03:05 suparious

Duplicate of the various JSONDecodeError bugs coming from summary_memory.py. Marking as duplicate of https://github.com/Significant-Gravitas/Auto-GPT/issues/3716

See: https://github.com/anonhostpi/AUTOGPT.TRACKERS/blob/main/TOPICS/0017.BUGS/JSON.md

anonhostpi avatar May 12 '23 07:05 anonhostpi

I think this is Fixed with #3996

suparious avatar May 13 '23 03:05 suparious