Python Django Errno 54 'Connection reset by peer'

前端 未结 4 1532
失恋的感觉
失恋的感觉 2021-01-07 18:32

Having some trouble debugging this. I get this error always when i first start my app up, then intermittently thereafter. Could someone please help me by throwing out some d

4条回答
  •  难免孤独
    2021-01-07 19:07

    The same behaviour is seen if the favicon is in .png format as opposed to .ico.

    Also, contrary to advice seen on other sites, downgrading Python to v3.6 does not solve the problem. screenshot of error w. png favicon

    Seems to be a Django issue, It will probably be fixed permanently in a future Django release.

    Following https://bugs.python.org/issue27682#msg348302 I made the changes shown:

    I then replaced BrokenPipeError with ConnectionAbortedError. This seems to handle the exception.

提交回复
热议问题