Python 无法封送响应:datetime类型的对象不可JSON序列化
我正在使用boto3客户端访问AWS Elastic Beanstalk服务。 获取以下代码的“无法封送响应:datetime类型的对象不可JSON序列化”:Python 无法封送响应:datetime类型的对象不可JSON序列化,python,json,amazon-web-services,amazon-elastic-beanstalk,boto3,Python,Json,Amazon Web Services,Amazon Elastic Beanstalk,Boto3,我正在使用boto3客户端访问AWS Elastic Beanstalk服务。 获取以下代码的“无法封送响应:datetime类型的对象不可JSON序列化”: def check_ami_version(): response = client.describe_platform_version( PlatformArn='arn:aws:elasticbeanstalk:eu-west-1::platform/IIS 10.0 running on 64bit Windows
def check_ami_version():
response = client.describe_platform_version(
PlatformArn='arn:aws:elasticbeanstalk:eu-west-1::platform/IIS 10.0 running on 64bit Windows Server Core 2016/2.5.8'
)
return response
我正在发送文档中的字符串:
response=client.description\u平台\u版本(
PlatformArn='string'
)
不确定,为什么我不能发送一个字符串并得到一个好的响应
您能给我一些建议吗。错误一定是来自其他地方。