我有两个API,一个基本上是根据发送的数据生成PDF。http://localhost:5000/api/sendReceiptData第二个API将使用第一个API,并且应该在响应中返回一个PDF作为附件。我已经试过了,但是我得到了错误TypeError: Object of type bytes is not JSON serializable
我有一个扩展为.xlsx的excel电子表格。我正试图让这个作为我的水瓶项目的一部分。ValueError: View function did not return a responsefile = pd.read_excel('output.xlsx')resp = make_response(file.to_excel(writer))
resp.headers["Content-