Hello! I’ve been working on a project where I need to integrate python files to a web based frontend for a chatbot type game. Initially I kept getting the POST 405 (Method Not Allowed) error, so I tried to create a package.json file to resolve it but that just set the project status to and the page no longer loads. I’ve tried installing npm but that didn’t work either. Does anyone know how to fix this?
Below is the package.json I have:
I’m only 40% sure this will work, but I think you might need to change repository.url to something like https://glitch.com/edit/#!/insightinspectorchat because all of my project repository urls looks like that and work fine. It could also be because static sites don’t have a package.json file, at least from what I’ve seen.
Thanks!
I was able to get the page to load from the project log errors, but the python still isn’t connecting and the status is still . I’ve been trying to install flask through a requirements.txt but it’s not working. I also have a server.py file that might be of some use in determining what’s wrong. Here’s what the terminal error, the new package.json, and the server.py file look like.