codereview.gpt
codereview.gpt copied to clipboard
Fails without error message
Wanted to try this extension but I get an unexplained error when running this on my PR (this is in a private Github Repo). I'm already logged into to OpenAI and GitHub. Any idea what the issue might be?
@travelhelgi I had the same problem,
you can right-click on the extension window, then click inspect
, devtools
will open for you and there you will see the error in network
tab...
this is probably what I have, see the issue I opened yesterday:
Note that it tries to fetch the patch in your chrome extension, and I'm not sure if private repo's are supported as it might cause authentication issues. Does it work with a public repo & public PR?
Ah @ybloch already answered..
I get this when the PR is often too big.
Using Fiddler, I see that the response from OpenAI is..
HTTP/1.1 413 Payload Too Large
Date: Tue, 18 Apr 2023 10:44:22 GMT
Content-Type: application/json
Content-Length: 163
{"detail":{"message":"The message you submitted was too long, please reload the conversation and submit something shorter.","code":"message_length_exceeds_limit"}}
200 lines of code gives me this error. The example in the README has ~100 lines. I suppose the limit is somewhere in between.