Basically, I have an upcoming school project (any computer science topic), and I decided to build a metadata viewer. I am not a programmer or coder, my coding course starts this year, and this project is just for intro and I am allowed to use online resources.
So, I just saw this GitHub Rep that was perfect for my project. I copied the code and deployed it on Heroku with some help from Google and finally I was successfully able to launch it. - https://meta-data-viewer.herokuapp.com/
The website seems to be working fine though, but the app doesn't work. When I enter an image's link over there, I just get an "500 internal server error", but the original website made by the original creator seems to work well, even I though I exactly copied the same code without editing anything.
I checked the log file on Heroku, but I don't understand anything. Here it is -
2022-05-22T20:40:43.939976+00:00 app[web.1]: result = func(*args, **kwargs) 2022-05-22T20:40:43.939976+00:00 app[web.1]: File "/app/./main.py", line 64, in fetch_data 2022-05-22T20:40:43.939976+00:00 app[web.1]: process = subprocess.Popen([EXIFTOOL_PATH, '-g0', '-j', '-c', '%+.6f', '-'], 2022-05-22T20:40:43.939977+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/subprocess.py", line 951, in init 2022-05-22T20:40:43.939978+00:00 app[web.1]: self._execute_child(args, executable, preexec_fn, close_fds, 2022-05-22T20:40:43.939978+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/subprocess.py", line 1821, in _execute_child 2022-05-22T20:40:43.939978+00:00 app[web.1]: raise child_exception_type(errno_num, err_msg, err_filename) 2022-05-22T20:40:43.939981+00:00 app[web.1]: PermissionError: [Errno 13] Permission denied: 'exiftool/exiftool' 2022-05-22T20:40:43.940707+00:00 app[web.1]: 10.1.30.195 - - [22/May/2022 20:40:43] "GET /?img=https%3A%2F%2Fwww.computerhope.com%2Fjargon%2Fd%2Fdd.jpg HTTP/1.1" 500 819 2022-05-22T20:40:45.279566+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=meta-data-viewer.herokuapp.com request_id=70404839-81e1-4e60-8489-c53ee110f270 fwd="5.107.156.38" dyno=web.1 connect=0ms service=1ms status=200 bytes=153 protocol=https 2022-05-22T20:40:45.279244+00:00 app[web.1]: 10.1.30.195 - - [22/May/2022 20:40:45] "GET /favicon.ico HTTP/1.1" 200 0 2022-05-22T20:48:58.921194+00:00 heroku[router]: at=info method=GET path="/" host=meta-data-viewer.herokuapp.com request_id=4fc65366-97a7-42d5-b3ea-bb14c2249331 fwd="5.107.156.38" dyno=web.1 connect=0ms service=2ms status=200 bytes=3913 protocol=https 2022-05-22T20:48:58.922029+00:00 app[web.1]: INFO:root:No image location specified 2022-05-22T20:48:58.922635+00:00 app[web.1]: 10.1.33.159 - - [22/May/2022 20:48:58] "GET / HTTP/1.1" 200 3757 2022-05-22T20:49:00.230925+00:00 app[web.1]: 10.1.33.159 - - [22/May/2022 20:49:00] "GET /favicon.ico HTTP/1.1" 200 0 2022-05-22T20:49:00.229447+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=meta-data-viewer.herokuapp.com request_id=185f7d6c-56d7-4d73-b973-944d3672cf8e fwd="5.107.156.38" dyno=web.1 connect=0ms service=1ms status=200 bytes=153 protocol=https
What can I try next?