B00TK1D / copilot-api

GitHub Copilot API
MIT License
103 stars 17 forks source link

Response body is empty #11

Open joelself opened 2 weeks ago

joelself commented 2 weeks ago

I installed the requirements, started the server and tried POSTing to it. Some examples:

{
    "prompt": "Write a function in python called print_hello_world thet prints the words Hello World.",
    "language": "python"
}
{
    "prompt": "def say_hello_world():\n print",
    "language": "python"
}

Both came back as 200 OK, but the Body was empty. I'll try and debug it once I figure out how to debug it.

jaylene-zhang commented 1 week ago

I also had the similar problem. When I try to print out the response from request there is nothing in it. Also, when I open the link I got the following error response. Have you found out where the problem is ?

Screen Shot 2024-07-05 at 4 52 04 PM
j0bekt01 commented 1 day ago

I also had the similar problem. When I try to print out the response from request there is nothing in it. Also, when I open the link I got the following error response. Have you found out where the problem is ? Screen Shot 2024-07-05 at 4 52 04 PM

As the error indicates you are using an unsupported GET method, use POST instead.