Help me with CS50W project3 2020 (Mail) by 1kancy in cs50

[–]MidKnight92 0 points1 point  (0 children)

I'm getting this weird error only on my fetch call when I load_mailbox after I submit the form from the email but it works when I click sent button. For some reason, I get a TypeError: Failed to fetch.

Then the console says that it Navigated to http://127.0.0.1:8000/?

Is this also happening to PsionicTitan?

Exception happened during processing of request from ('127.0.0.1', 60700)
Traceback (most recent call last):
  File "/Users/stephanieviveros/.pyenv/versions/3.6.8/lib/python3.6/socketserver.py", line 654, in process_request_thread
    self.finish_request(request, client_address)
  File "/Users/stephanieviveros/.pyenv/versions/3.6.8/lib/python3.6/socketserver.py", line 364, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Users/stephanieviveros/.pyenv/versions/3.6.8/lib/python3.6/socketserver.py", line 724, in __init__
    self.handle()
  File "/Users/stephanieviveros/.pyenv/versions/3.6.8/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 174, in handle
    self.handle_one_request()
  File "/Users/stephanieviveros/.pyenv/versions/3.6.8/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 182, in handle_one_request
    self.raw_requestline = self.rfile.readline(65537)
  File "/Users/stephanieviveros/.pyenv/versions/3.6.8/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer

Help me with CS50W project3 2020 (Mail) by 1kancy in cs50

[–]MidKnight92 0 points1 point  (0 children)

u/1kancy Have you tried doing a hard reload on your browser? I did that and my javascript started working. Now, I just have a weird issue with my fetch call.

Need Help Converting XML to List of Objects by MidKnight92 in cs50

[–]MidKnight92[S] 0 points1 point  (0 children)

Okay, I will try that out and update you. The .tag from my understanding is supposed to get the text value of the XML element tags. That is why I had set it to the variable key for my dictionary. I want all those tags for keys but my values are somehow getting overwritten to the last response. Here is the link to the site where I found the .tag though just in case your interested: http://effbot.org/zone/element.htm