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

unexpected json.decoder.JSONDecodeError #9883

Open
angelika233 opened this issue May 6, 2024 · 0 comments
Open

unexpected json.decoder.JSONDecodeError #9883

angelika233 opened this issue May 6, 2024 · 0 comments

Comments

@angelika233
Copy link

Describe the bug
Hi! I'm writting this issue because all my great expectations stopped working in the previous week. They're run on pandas dataframe and json files used to work fine, but since last week each of them gives the same error. Extra data: line 1 column 8 (char 7). I have not made any changes to my environment and have even tried running it on different ge versions, but the issue persists. Could you please help me resolve this? Thank you!

To Reproduce

  {
    "data_asset_type": null,
    "expectation_suite_name": "my_data.demo",
    "expectations": [
      {
        "expectation_type": "expect_column_max_to_be_between",
        "kwargs": {
          "column": "updated_at",
          "min_value": 1
        },
        "meta": {}
      },
      {
        "expectation_type": "expect_column_max_to_be_between",
        "kwargs": {
          "column": "yesterdaycount",
          "min_value": 1
        },
        "meta": {}
      },
      {
        "expectation_type": "expect_table_row_count_to_be_between",
        "kwargs": {
          "min_value": 15000
        },
        "meta": {}
      },
      {
        "expectation_type": "expect_column_values_to_not_be_null",
        "kwargs": {
          "column": "backlog"
        },
        "meta": {}
      },
      {
        "expectation_type": "expect_column_values_to_not_be_null",
        "kwargs": {
          "column": "backlog_1"
        },
        "meta": {}
      }
    ],
    "ge_cloud_id": null,
    "meta": {
      "citations": [],
      "great_expectations_version": "0.14.1"
    }
  }

gives an error

json.decoder.JSONDecodeError: Extra data: line 1 column 8 (char 7)

Expected behavior
I except this json file to work and in this case pass expectations

Environment (please complete the following information):

  • Operating System: [e.g. Linux]
  • Great Expectations Version: [0.14.1] but other version have the same issue
  • Data Source: [pandas]
  • Cloud environment: [prefect] but for local run is the same

Additional context
The problem occured after ge release but I did not upgrade my ge version by then

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

No branches or pull requests

1 participant