codereview.gpt icon indicating copy to clipboard operation
codereview.gpt copied to clipboard

Fails without error message

Open travelhelgi opened this issue 1 year ago • 4 comments

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?

image

travelhelgi avatar Apr 17 '23 09:04 travelhelgi

@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:

https://github.com/sturdy-dev/codereview.gpt/issues/34

ybloch avatar Apr 18 '23 06:04 ybloch

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?

nickveenhof avatar Apr 18 '23 08:04 nickveenhof

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"}}

webstercharly avatar Apr 18 '23 10:04 webstercharly

200 lines of code gives me this error. The example in the README has ~100 lines. I suppose the limit is somewhere in between.

joelbrostrom avatar Apr 20 '23 09:04 joelbrostrom