got invalid json object. error: Expecting ',' delimiter #12238

Closed
opened 2026-02-21 19:06:30 -05:00 by yindo · 6 comments
Owner

Originally created by @zbximo on GitHub (Mar 27, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

when i use e classfication node, somtimes it will produce a error: got invalid json object. error: Expecting ',' delimiter.
And iI track and view logs, the input is following:
{
"query": "6000"
}

{
"sys.query": "6000",
"sys.files": [],
"sys.conversation_id": "d0bf8bcd-addc-424f-90fa-8107cbe662bc",
"sys.user_id": "1893923125386395649",
"sys.dialogue_count": 5,
"sys.app_id": "0ce333d5-792d-43d7-a1be-318f52dea847",
"sys.workflow_id": "67249da9-3401-45f1-beb5-60c14e379ca4",
"sys.workflow_run_id": "8c2029af-f2c6-4a48-8acd-cd8b99f53e67"
}

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @zbximo on GitHub (Mar 27, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce when i use e classfication node, somtimes it will produce a error: got invalid json object. error: Expecting ',' delimiter. And iI track and view logs, the input is following: { "query": "6000" } { "sys.query": "6000", "sys.files": [], "sys.conversation_id": "d0bf8bcd-addc-424f-90fa-8107cbe662bc", "sys.user_id": "1893923125386395649", "sys.dialogue_count": 5, "sys.app_id": "0ce333d5-792d-43d7-a1be-318f52dea847", "sys.workflow_id": "67249da9-3401-45f1-beb5-60c14e379ca4", "sys.workflow_run_id": "8c2029af-f2c6-4a48-8acd-cd8b99f53e67" } ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bugstale labels 2026-02-21 19:06:30 -05:00
yindo closed this issue 2026-02-21 19:06:30 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 27, 2025):

The error message "Expecting ',' delimiter" typically indicates a syntax issue in the JSON structure. In the provided input, it seems like there are two separate JSON objects without a delimiter between them. JSON requires a single root element, so having two separate objects without a surrounding array or object is invalid.

To resolve this, you can either:

  1. Combine the two JSON objects into a single object if they are meant to be part of the same data structure.
  2. Wrap the two objects in an array if they are meant to be separate but part of a collection.

Here's an example of how you might wrap them in an array:

[
  {
    "query": "6000"
  },
  {
    "sys.query": "6000",
    "sys.files": [],
    "sys.conversation_id": "d0bf8bcd-addc-424f-90fa-8107cbe662bc",
    "sys.user_id": "1893923125386395649",
    "sys.dialogue_count": 5,
    "sys.app_id": "0ce333d5-792d-43d7-a1be-318f52dea847",
    "sys.workflow_id": "67249da9-3401-45f1-beb5-60c14e379ca4",
    "sys.workflow_run_id": "8c2029af-f2c6-4a48-8acd-cd8b99f53e67"
  }
]

Ensure that the JSON structure matches the expected format for the classification node in Dify. If the node expects a specific structure, you may need to adjust the JSON accordingly.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 27, 2025): <!-- Answer --> The error message "Expecting ',' delimiter" typically indicates a syntax issue in the JSON structure. In the provided input, it seems like there are two separate JSON objects without a delimiter between them. JSON requires a single root element, so having two separate objects without a surrounding array or object is invalid. To resolve this, you can either: 1. Combine the two JSON objects into a single object if they are meant to be part of the same data structure. 2. Wrap the two objects in an array if they are meant to be separate but part of a collection. Here's an example of how you might wrap them in an array: ```json [ { "query": "6000" }, { "sys.query": "6000", "sys.files": [], "sys.conversation_id": "d0bf8bcd-addc-424f-90fa-8107cbe662bc", "sys.user_id": "1893923125386395649", "sys.dialogue_count": 5, "sys.app_id": "0ce333d5-792d-43d7-a1be-318f52dea847", "sys.workflow_id": "67249da9-3401-45f1-beb5-60c14e379ca4", "sys.workflow_run_id": "8c2029af-f2c6-4a48-8acd-cd8b99f53e67" } ] ``` Ensure that the JSON structure matches the expected format for the classification node in Dify. If the node expects a specific structure, you may need to adjust the JSON accordingly. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/93c0a105-91e4-4189-b700-6b64b7d3e376?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/93c0a105-91e4-4189-b700-6b64b7d3e376?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/93c0a105-91e4-4189-b700-6b64b7d3e376?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/93c0a105-91e4-4189-b700-6b64b7d3e376?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/93c0a105-91e4-4189-b700-6b64b7d3e376?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/93c0a105-91e4-4189-b700-6b64b7d3e376?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/93c0a105-91e4-4189-b700-6b64b7d3e376?feedback_type=other)</sup>
Author
Owner

@xpsky202 commented on GitHub (Mar 27, 2025):

sorry, but it not my code, it is the dify source code error, I just create an agent at the console;

@xpsky202 commented on GitHub (Mar 27, 2025): sorry, but it not my code, it is the dify source code error, I just create an agent at the console;
Author
Owner

@zbximo commented on GitHub (Mar 27, 2025):

sorry, but it not my code, it is the dify source code error, I just create an agent at the console;

It's quite strange. The same workflow can work normally sometimes, and sometimes not normally.

@zbximo commented on GitHub (Mar 27, 2025): > sorry, but it not my code, it is the dify source code error, I just create an agent at the console; It's quite strange. The same workflow can work normally sometimes, and sometimes not normally.
Author
Owner

@xpsky202 commented on GitHub (Mar 27, 2025):

the same as you, does somebody know about this issue?

@xpsky202 commented on GitHub (Mar 27, 2025): the same as you, does somebody know about this issue?
Author
Owner

@JustLikeThis101 commented on GitHub (Apr 2, 2025):

Image

using agent with google search plugin, met same problem when using agent, version 1.1.3
weird, the error disappear when the plugin is disableed.
Image

@JustLikeThis101 commented on GitHub (Apr 2, 2025): ![Image](https://github.com/user-attachments/assets/234aefba-8996-405a-85d1-33f65391b038) using agent with google search plugin, met same problem when using agent, version 1.1.3 weird, the error disappear when the plugin is disableed. ![Image](https://github.com/user-attachments/assets/3c6075e1-afab-48e1-8717-ac1c75bf3841)
Author
Owner

@dosubot[bot] commented on GitHub (May 3, 2025):

Hi, @zbximo. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • Reported bug in Dify version 0.15.3 related to a classification node in a Docker setup.
  • Error involves an invalid JSON object, initially thought to be a syntax error.
  • You and xpsky202 clarified the issue stems from Dify's source code, not user input.
  • JustLikeThis101 noted a similar issue with the Google search plugin in version 1.1.3, which resolves when the plugin is disabled.

Next Steps

  • Please confirm if this issue is still relevant to the latest version of Dify. If so, you can keep the discussion open by commenting here.
  • If there is no further activity, the issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (May 3, 2025): Hi, @zbximo. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary** - Reported bug in Dify version 0.15.3 related to a classification node in a Docker setup. - Error involves an invalid JSON object, initially thought to be a syntax error. - You and xpsky202 clarified the issue stems from Dify's source code, not user input. - JustLikeThis101 noted a similar issue with the Google search plugin in version 1.1.3, which resolves when the plugin is disabled. **Next Steps** - Please confirm if this issue is still relevant to the latest version of Dify. If so, you can keep the discussion open by commenting here. - If there is no further activity, the issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12238