Coder Social home page Coder Social logo

Not working on GitLab about codereview.gpt HOT 5 OPEN

sturdy-dev avatar sturdy-dev commented on September 23, 2024
Not working on GitLab

from codereview.gpt.

Comments (5)

webstercharly avatar webstercharly commented on September 23, 2024 1

@nickveenhof I tried on private... So I had another test on a public repo, and I got a JS error:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getAttribute')
    at popup.js:2:290946

this is the random repo I tested: https://gitlab.com/Amppatil/home/-/merge_requests/1/diffs

You are getting this error because document.querySelector('.description textarea').getAttribute('data-value') cannot be found so is returning null on the querySelection.

The assumption of a description is an issue as not all MR in GitLab will render a description textarea, so that is a bug

from codereview.gpt.

nickveenhof avatar nickveenhof commented on September 23, 2024

Is the MR you tried it on public? I think the context/description of the MR might have been too big. The patches itself are truncated already but the description is not.

from codereview.gpt.

ybloch avatar ybloch commented on September 23, 2024

@nickveenhof I tried on private...
So I had another test on a public repo, and I got a JS error:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getAttribute')
    at popup.js:2:290946

this is the random repo I tested:
https://gitlab.com/Amppatil/home/-/merge_requests/1/diffs

from codereview.gpt.

webstercharly avatar webstercharly commented on September 23, 2024

It is not an issue of private vs public, here is a public PR/MR I tested on and get the same error as this issue:
https://github.com/vercel/satori/pull/287/files
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117832/diffs

POST https://chat.openai.com/backend-api/conversation HTTP/1.1
Host: chat.openai.com
Connection: keep-alive
Content-Length: 31273

I have tried it on a number of private PRs and they work fine up to a certain size.

HTTP/1.1 413 Payload Too Large
Date: Tue, 18 Apr 2023 10:57:01 GMT
Content-Type: application/json
Content-Length: 163
Connection: keep-alive

{"detail":{"message":"The message you submitted was too long, please reload the conversation and submit something shorter.","code":"message_length_exceeds_limit"}}

From my understand of ChatGPT you'd want to count the number of token's in the message before sending and consider sending multiple messages to the Chat asking for it to wait for a certain command before responding. Then there will be an issue with the Chat only able to remember so many previous messages / tokens, but it ultimately means multiple api calls.

from codereview.gpt.

nickveenhof avatar nickveenhof commented on September 23, 2024

Does this bug still exist in the latest dev version? We also just pushed out a new version to the chrome store

from codereview.gpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.