Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When special characters such as line breaks exist in "new_memories_with_actions", json conversion fails #2194

Open
yingjialong opened this issue Feb 5, 2025 · 1 comment · May be fixed by #2295

Comments

@yingjialong
Copy link

yingjialong commented Feb 5, 2025

🐛 Describe the bug

{
    "memory": [
        {
            "id": "0",
            "text": "app
                         store",
            "event": "NONE"
        }
    ]
}

When "new_memories_with_actions" is the above content,

new_memories_with_actions = json.loads(new_memories_with_actions)

runs and reports an error:
json.decoder.JSONDecodeError: Invalid control character

@a-mart
Copy link

a-mart commented Feb 25, 2025

having the same issue

@harshit078 harshit078 linked a pull request Mar 4, 2025 that will close this issue
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants