Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maing websites (python http.server) prevents form continuation #46

Open
w84death opened this issue May 21, 2024 · 3 comments
Open

Maing websites (python http.server) prevents form continuation #46

w84death opened this issue May 21, 2024 · 3 comments

Comments

@w84death
Copy link

Devon is waiting for the server to stop - but user can not do that. Perhaps there is an bug for killing the server.

I needed to kill devon, start again and continue each time. The old port was taken (so the server was still alive), devon was able to use next free port (8001, 8002).

Expected: devon should close the http server after user confirms that the page looks good. Or keep the server alive and do changes to the html/js files.

I can provide full log if needed.

@akiradev0x
Copy link
Contributor

@w84death Hey this is awesome feedback! Yes please post a log, we will get to making a branch to fix it tomorrow or the day after

@w84death
Copy link
Author

w84death commented May 22, 2024

Correction: with simple websites devon creates needed files and "Devon has left the chat.".

Yesterday it created server few times. I think creating games or more interactive projects forces it to start the server that leads to the dead-end.

Unfortunately I ran out of my API credits to do more tests at the moment. My .bash_log only shows starting devon.

to reproduce try forcing it to start a local server.

EDIT: I got the files from that project and initial prompt:

User: Make a website about slugs. Why those are cool, what they like, how to keep one for yourself. Make it flashy, animated, use a lot of emojis. For european users and slug types

server.py

import http.server
import socketserver

PORT = 8007
DIRECTORY = "."

class Handler(http.server.SimpleHTTPRequestHandler):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, directory=DIRECTORY, **kwargs)

with socketserver.TCPServer(("", PORT), Handler) as httpd:
    print("Serving at port", PORT)
    httpd.serve_forever()

This is after many restart that's why it's 8007. It started at default 8000.
Rest of the files are usual HTML/CSS files.

@akiradev0x
Copy link
Contributor

@Mihir1003 should be taking care of this. should allow us to spawn off new processes. pinging to let him fill you in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants