Janitor AI, a popular chatbot platform, has encountered a technical issue that is causing frustration for its users. Many individuals have reported receiving the ‘Undefined is not an object (evaluating ‘JSON.parse(h.substring(6)).choices’)’ error message while attempting to send messages through the bot.
This error prevents the bot from responding and repeatedly displays error messages. Despite users’ attempts to refresh the page or switch to different bots, the problem persists. Additionally, some users have also encountered a ‘cannot read properties of defined (reading ‘0’)’ error when interacting with the chatbot. This article aims to delve into this issue, explore potential causes, and provide possible solutions.
How to Fix Janitor AI undefined is Not an Object Error
The ‘Undefined is not an object’ error in Janitor AI suggests a problem with parsing JSON data. Specifically, it occurs when trying to access the ‘choices’ property from an undefined or null object. This error message indicates an issue with the underlying code or server infrastructure of Janitor AI. Users have expressed confusion as to why they are encountering these errors consistently, even after refreshing the page, switching bots, or attempting different API keys or accounts.
While waiting for an official fix from the Janitor AI team, users can attempt the following workarounds that might mitigate the issue:
Clear Browser Cache
Clearing the browser cache can help resolve potential conflicts or issues with cached data that may be causing the error.
Try Alternative Browsers
Switching to a different browser or using an incognito mode may help bypass any browser-specific issues that could be interfering with Janitor AI’s functionality.
Reaching out to the Janitor AI support team directly can provide valuable insights and potential solutions to the problem. They may have additional troubleshooting steps or updates on the progress of resolving the error.