sturdy-dev / codereview.gpt

Reviews your Pull/Merge Requests using ChatGPT
MIT License
529 stars 63 forks source link

Fails without error message #35

Open travelhelgi opened 1 year ago

travelhelgi commented 1 year ago

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

ybloch commented 1 year ago

@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

nickveenhof commented 1 year ago

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?

webstercharly commented 1 year ago

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"}}
joelbrostrom commented 1 year ago

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