The API seems to work correctly when i use a sqlite database file on my local machine, however when I deploy the API to heroku and go to the image1 and image2 urls it returns...
File "/app/cryptoBotAPI.py", line 135, in image2
filehandler.write(BytesIO(test.data).read())
AttributeError: 'NoneType' object has no attribute 'data'
Any help would be appreciated thank you. Here is the link to my stackoverflow question...
https://stackoverflow.com/questions/68884541/open-and-save-file-to-database-flask-sqlalchemy
The API seems to work correctly when i use a sqlite database file on my local machine, however when I deploy the API to heroku and go to the image1 and image2 urls it returns...
File "/app/cryptoBotAPI.py", line 135, in image2
filehandler.write(BytesIO(test.data).read())
AttributeError: 'NoneType' object has no attribute 'data'
Any help would be appreciated thank you. Here is the link to my stackoverflow question...
https://stackoverflow.com/questions/68884541/open-and-save-file-to-database-flask-sqlalchemy