Skip to content

Conversation

xiaohuanlin
Copy link
Contributor

@xiaohuanlin xiaohuanlin commented Jan 9, 2024

f"{test_input} has non list value {parsed_value} for path {test_path}. "
"Must be list or null."
f"Path must contain list or null, "
f"but got {type(test_input['info']).__name__} at {repr(test_path)}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you fully evaluate {type(test_input['info']).__name__} and {repr(test_path)} here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. BTW, I am not sure if the failed test is introduced by me or not. Should I fix it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just changed {type(test_input['info']).__name__} to {type(parsed_value).__name__} since there are several tests based on different parameters and I can't fix the type name

@mroeschke mroeschke added Error Reporting Incorrect or improved errors from pandas IO JSON read_json, to_json, json_normalize labels Jan 10, 2024
@xiaohuanlin xiaohuanlin force-pushed the change_prompt_on_pull_records branch from 304a0e3 to bf65afc Compare January 10, 2024 01:20
@xiaohuanlin xiaohuanlin requested a review from mroeschke January 10, 2024 18:58
@mroeschke mroeschke added this to the 3.0 milestone Jan 10, 2024
@mroeschke mroeschke merged commit f87680d into pandas-dev:main Jan 10, 2024
@mroeschke
Copy link
Member

Thanks @xiaohuanlin

pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Error Reporting Incorrect or improved errors from pandas IO JSON read_json, to_json, json_normalize

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Whole JSON gets dumped from error in _pull_records()

2 participants