I'm trying to make an API, but this error keeps troubling me. This snippet works in my local machine but gets broken when I ship it to Render using docker.
def init(app: flask.app.Flask):
@app.route("/user/<string:username>")
def user(username):
filename = "get_profile_details"
get_profile_details(
twitter_username=username,
filename=filename,
)
data = json.load(open(filename + ".json"))
return data
I'm trying to make an API, but this error keeps troubling me. This snippet works in my local machine but gets broken when I ship it to Render using docker.