ai-docstring icon indicating copy to clipboard operation
ai-docstring copied to clipboard

Error: Request failed with status code 404

Open MehdiAria opened this issue 3 years ago • 2 comments

Describe the bug A clear and concise description of what the bug is.

Versions (please complete the following information):

  • autoDocstring Version: 0.1.3
  • Operating System: Windows 10
  • Vscode Version: 1.65.2

Original Code (with line to generate on):

class IndexView(generic.ListView):
    model = Category
    queryset = Category.objects.filter()
    template_name = 'landing/index.html'

Actual Result:

Error: Request failed with status code 404

Additional context Upon using ai-docstring on my Django project I was getting the error Error: connect ECONNREFUSED 127.0.0.1:5000. I tried changing ai-docstring: sever endpoint to 127.0.0.1:8000. Now I get the error 'Error: Request failed with status code 404'. Also, it seems like after using the extension, it sends a post request to the 'summery' URL which cannot be found on my running Django localserver: 'POST /summary HTTP/1.1" 404 2712'

MehdiAria avatar Mar 18 '22 20:03 MehdiAria

That would be expected behavior, see #5

Tyler-Rendina avatar Aug 26 '22 19:08 Tyler-Rendina

Changing to 127.0.0.1:8000 gives me the same issue (Error: connect ECONNREFUSED 127.0.0.1:8000) on VS Code

devmnob avatar Sep 19 '23 11:09 devmnob