Flask local server can handle it and wsgi can't handle it

Asked 2 years ago, Updated 2 years ago, 111 views

I am currently creating an application with Flask, and I am throwing the POSTed information into the JSON file, but when I start the local server and do the above, it can be processed normally.
Internal Server Error
at the point of POST and writing to the JSON file on the published wsgi server. will be printed.
The part where the error occurs is the process of writing to the file, but is it possible that the local server is successful and the wsgi server fails?

python python3 flask

2022-09-30 21:36

1 Answers

A failure I make is a lack of permission to the file system.
When you do it locally, you are the user, but the publishing server is the only user.
Also, the file path that is supposed to point to a particular directory points in a direction that is not a misconfiguration of the environment variable.


2022-09-30 21:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.