TypeError: object is not callableTypeError: object is not callable
An object that is not a function was called with parentheses ().
json.JSONDecodeErrorThe JSON decoder could not parse the provided string as valid JSON.
The string passed to json.loads() or json.load() is not valid JSON. Common issues: the string is actually HTML (error page), empty string, truncated data, single quotes instead of double quotes, or trailing commas.
Print or log the raw data before parsing to see what you are actually trying to decode. Check the API response for error pages. Validate JSON with json.tool: python -m json.tool file.json. Handle the error for non-JSON responses.
import json; json.loads("not json") # JSONDecodeErrorTypeError: object is not callableAn object that is not a function was called with parentheses ().
ValueErrorA function received an argument of the right type but an inappropriate value.
pydantic.ValidationErrorPydantic data validation failed because the input data does not match the model's schema.
ImportErrorAn import statement failed to find or load the specified module or name.
IndexErrorA sequence index is out of the valid range for the given sequence.
AttributeErrorAn object does not have the requested attribute or method.