Skip to content

Database query not working #1

@Syed2096

Description

@Syed2096

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions