Coder Social home page Coder Social logo

chatgpt-chrome-extension's Issues

fixing

but it can be fixed though

getting error message even if I am logged in

Error. Make sure you're running the server by following the instructions on https://github.com/gragland/chatgpt-everywhere. Also make sure you don't have an adblocker preventing requests to localhost:3000.

In the terminal I still see

Please sign in to ChatGPT using the Chromium browser window and dismiss the welcome modal...
Please sign in to ChatGPT using the Chromium browser window and dismiss the welcome modal...
Please sign in to ChatGPT using the Chromium browser window and dismiss the welcome modal...

image

system used:
Macosx

Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. & Unchecked runtime.lastError: Cannot create item with duplicate id ask-chatgpt

I am receiving both of these errors in my chrome extension. The app runs after node server.js. Shows
✔Training ChatGPT (1 plugin rules)
✔ You may now use the extension

but when I run ask gpt, the extension shows the below two errors:

Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
Unchecked runtime.lastError: Cannot create item with duplicate id ask-chatgpt

Error request

✖ Training ChatGPT (1 plugin rules)
file:///D:/chatgpt-chrome-extension-main/chatgpt-chrome-extension-main/node_modules/chatgpt/build/index.js:202
const error = new ChatGPTError(msg, { cause: res });
^

ChatGPTError: ChatGPT error 404: {
"error": {
"message": "The model text-chat-davinci-002-20221122 does not exist",
"type": "invalid_request_error",
"param": null,
"code": "model_not_found"
}
}

Exceeded current quota error but only used 0.02c out of $18

Getting this error after adding API key and installing chatgpt

ChatGPTError: ChatGPT error 429: {
"error": {
"message": "You exceeded your current quota, please check your plan and billing details.",
"type": "insufficient_quota",
"param": null,
"code": null
}
}

full error

at file:///C:/Users/samri/Documents/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:242:29
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
statusCode: 429,
statusText: 'Too Many Requests',
[cause]: Response {
[Symbol(realm)]: null,
[Symbol(state)]: {
aborted: false,
rangeRequested: false,
timingAllowPassed: true,
requestIncludesCredentials: true,
type: 'default',
status: 429,
timingInfo: {
startTime: 301.7064999938011,
redirectStartTime: 0,
redirectEndTime: 0,
postRedirectStartTime: 301.7064999938011,
finalServiceWorkerStartTime: 0,
finalNetworkResponseStartTime: 0,
finalNetworkRequestStartTime: 0,
endTime: 0,
encodedBodySize: 0,
decodedBodySize: 0,
finalConnectionTimingInfo: null
},
cacheState: '',
statusText: 'Too Many Requests',
headersList: HeadersList {
cookies: null,
[Symbol(headers map)]: Map(11) {
'date' => { name: 'Date', value: 'Sun, 02 Apr 2023 21:55:56 GMT' },
'content-type' => {
name: 'Content-Type',
value: 'application/json; charset=utf-8'
},
'content-length' => { name: 'Content-Length', value: '206' },
'connection' => { name: 'Connection', value: 'keep-alive' },
'vary' => { name: 'vary', value: 'Origin' },
'x-request-id' => {
name: 'x-request-id',
value: '65596114b624aa7a7a6aa27b0d4ad1d1'
},
'strict-transport-security' => {
name: 'strict-transport-security',
value: 'max-age=15724800; includeSubDomains'
},
'cf-cache-status' => { name: 'CF-Cache-Status', value: 'DYNAMIC' },
'server' => { name: 'Server', value: 'cloudflare' },
'cf-ray' => { name: 'CF-RAY', value: '7b1c51a75c0b61e3-YVR' },
'alt-svc' => {
name: 'alt-svc',
value: 'h3=":443"; ma=86400, h3-29=":443"; ma=86400'
}
},
[Symbol(headers map sorted)]: null
},
urlList: [
<ref *1> URL {
[Symbol(context)]: URLContext {
flags: 400,
scheme: 'https:',
username: '',
password: '',
host: 'api.openai.com',
port: null,
path: [Array],
query: null,
fragment: null
},
[Symbol(query)]: URLSearchParams {
[Symbol(query)]: [],
[Symbol(context)]: [Circular *1]
}
}
],
body: {
stream: ReadableStream {
[Symbol(kType)]: 'ReadableStream',
[Symbol(kState)]: {
disturbed: true,
reader: [ReadableStreamDefaultReader],
state: 'closed',
storedError: undefined,
stream: undefined,
transfer: [Object],
controller: [ReadableStreamDefaultController]
},
[Symbol(nodejs.webstream.isClosedPromise)]: {
promise: [Promise],
resolve: [Function (anonymous)],
reject: [Function (anonymous)]
}
}
}
},
[Symbol(headers)]: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: Map(11) {
'date' => { name: 'Date', value: 'Sun, 02 Apr 2023 21:55:56 GMT' },
'content-type' => {
name: 'Content-Type',
value: 'application/json; charset=utf-8'
},
'content-length' => { name: 'Content-Length', value: '206' },
'connection' => { name: 'Connection', value: 'keep-alive' },
'vary' => { name: 'vary', value: 'Origin' },
'x-request-id' => {
name: 'x-request-id',
value: '65596114b624aa7a7a6aa27b0d4ad1d1'
},
'strict-transport-security' => {
name: 'strict-transport-security',
value: 'max-age=15724800; includeSubDomains'
},
'cf-cache-status' => { name: 'CF-Cache-Status', value: 'DYNAMIC' },
'server' => { name: 'Server', value: 'cloudflare' },
'cf-ray' => { name: 'CF-RAY', value: '7b1c51a75c0b61e3-YVR' },
'alt-svc' => {
name: 'alt-svc',
value: 'h3=":443"; ma=86400, h3-29=":443"; ma=86400'
}
},
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'immutable',
[Symbol(realm)]: null
}
}
}

Node.js v18.15.0

"Failed to launch the browser process!" (Update: figured it out)

Everything else has gone fine up to the point where I run node server.js (.env file has been properly set up and everything). Am I missing something that is causing this error?

...Documents\GitHub\chatgpt-chrome-extension\node_modules\puppeteer-core\lib\cjs\puppeteer\node\BrowserRunner.js:299
reject(new Error([
^

Error: Failed to launch the browser process! spawn C:\Program Files\Google\Chrome\Application\chrome.exe ENOENT

ChatGPTAPI error 404

My nodejs version: v18.13.0
My operating system: windows

Just a few hours ago, the system was running well, but when I used it again, the system reported this error, as follows:

√ Connecting to ChatGPT
× Training ChatGPT (1 plugin rules)
file:///D:/chatgpt/chatgpt-chrome-extension-main/node_modules/chatgpt/build/index.js:1598
const error = new ChatGPTError(result.error.message);
^

ChatGPTError: ChatGPTAPI error 404
at ChatGPTAPIBrowser.sendMessage (file:///D:/chatgpt/chatgpt-chrome-extension-main/node_modules/chatgpt/build/index.js:1598:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Conversation.sendMessage (file:///D:/chatgpt/chatgpt-chrome-extension-main/server.js:28:17)
at async oraPromise (file:///D:/chatgpt/chatgpt-chrome-extension-main/node_modules/ora/index.js:368:18)
at async start (file:///D:/chatgpt/chatgpt-chrome-extension-main/server.js:79:3) {
statusCode: 404,
statusText: ''
}

Node.js v18.13.0

When I read the source code, I found that one of the connections could not be accessed
https://chat.openai.com/backend-api/conversation

When I access this connection through a browser, the response is as follows:

{
"detail": "Method Not Allowed"
}

how to get it to work on brave?

sorry if this is too beginner but I get the following error when running node server.js

PS C:\Users\Asus\chatgpt-chrome-extension> node server.js
C:\Users\Asus\chatgpt-chrome-extension\node_modules\puppeteer-core\lib\cjs\puppeteer\node\BrowserRunner.js:299
reject(new Error([
^

Error: Failed to launch the browser process! spawn C:\Program Files\Google\Chrome\Application\chrome.exe ENOENT

i tried copying the brave.exe path and pasting it in a few locations but it didnt work

appreciate any advice, thanks

getOpenAIAuth-Having issues getting my session ID

Hello. I am quite new to this, and an old fart. I am trying to follow the instructions for aquiring my session id from Chatgpt, but I simply am getting lost.

I am on Windows 10, and succesfully installed the puppeteer, just stuck on how exaclty to use it to get my session id?

Any help is appreciated.

Not working with ChatGPT Plus account

-chrome-extension (main)
$ node server.js
× Training ChatGPT (1 plugin rules)
file:///D:/SoftwareDevelopment/GitHub/GPT/chatgpt-chrome-extension/nod
e_modules/chatgpt/build/index.js:202
const error = new ChatGPTError(msg, { cause: res });
^

ChatGPTError: ChatGPT error 404: {
"error": {
"message": "That model does not exist",
"type": "invalid_request_error",
"param": null,
"code": null
}
}

at file:///D:/Workplace/SoftwareDevelopment/GitHub/GPT/chatgpt-chrome-extens

ion/node_modules/chatgpt/build/index.js:202:29
at process.processTicksAndRejections (node:internal/process/task_queues:95:5
) {
statusCode: 404,
statusText: 'Not Found',
[cause]: Response {
[Symbol(realm)]: null,
[Symbol(state)]: {
aborted: false,
rangeRequested: false,
timingAllowPassed: true,
requestIncludesCredentials: true,
type: 'default',
status: 404,
timingInfo: {
startTime: 302.7082999944687,
redirectStartTime: 0,
redirectEndTime: 0,
postRedirectStartTime: 302.7082999944687,
finalServiceWorkerStartTime: 0,
finalNetworkResponseStartTime: 0,
finalNetworkRequestStartTime: 0,
endTime: 0,
encodedBodySize: 0,
decodedBodySize: 0,
finalConnectionTimingInfo: null
},
cacheState: '',
statusText: 'Not Found',
headersList: HeadersList {
cookies: null,
[Symbol(headers map)]: Map(7) {
'date' => { name: 'Date', value: 'Sat, 11 Feb 2023 23:15:54 GMT' },
'content-type' => {
name: 'Content-Type',
value: 'application/json; charset=utf-8'
},
'content-length' => { name: 'Content-Length', value: '158' },
'connection' => { name: 'Connection', value: 'keep-alive' },
'vary' => { name: 'Vary', value: 'Origin' },
'x-request-id' => {
name: 'X-Request-Id',
value: '087313fcbe31bb0e1737046c1af37213'
},
'strict-transport-security' => {
name: 'Strict-Transport-Security',
value: 'max-age=15724800; includeSubDomains'
}
},
[Symbol(headers map sorted)]: null
},
urlList: [
<ref *1> URL {
[Symbol(context)]: URLContext {
flags: 400,
scheme: 'https:',
username: '',
password: '',
host: 'api.openai.com',
port: null,
path: [Array],
query: null,
fragment: null
},
[Symbol(query)]: URLSearchParams {
[Symbol(query)]: [],
[Symbol(context)]: [Circular *1]
}
}
],
body: {
stream: ReadableStream {
[Symbol(kType)]: 'ReadableStream',
[Symbol(kState)]: {
disturbed: true,
reader: [ReadableStreamDefaultReader],
state: 'closed',
storedError: undefined,
stream: undefined,
transfer: [Object],
controller: [ReadableStreamDefaultController]
},
[Symbol(nodejs.webstream.isClosedPromise)]: {
promise: [Promise],
resolve: [Function (anonymous)],
reject: [Function (anonymous)]
}
}
}
},
[Symbol(headers)]: Headers {
[Symbol(headers list)]: HeadersList {
cookies: null,
[Symbol(headers map)]: Map(7) {
'date' => { name: 'Date', value: 'Sat, 11 Feb 2023 23:15:54 GMT' },
'content-type' => {
name: 'Content-Type',
value: 'application/json; charset=utf-8'
},
'content-length' => { name: 'Content-Length', value: '158' },
'connection' => { name: 'Connection', value: 'keep-alive' },
'vary' => { name: 'Vary', value: 'Origin' },
'x-request-id' => {
name: 'X-Request-Id',
value: '087313fcbe31bb0e1737046c1af37213'
},
'strict-transport-security' => {
name: 'Strict-Transport-Security',
value: 'max-age=15724800; includeSubDomains'
}
},
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'immutable',
[Symbol(realm)]: null
}
}
}

Node.js v19.6.0

Error when running server.js on localhost:3000 "Cannot GET /"

When I try running node server.js from the Terminal in the folder the extension is unzipped to, I get the following error:

image

image

image

Transcribed messages:

Error. Make sure you're running the server by following the
instructions on https://github.com/gragland/chatgpt-chrome-
extension. Also make sure you don't have an adblocker preventing
requests to localhost:3000.
Cannot GET /

Can't establish connection

Hey Gabe,

Thanks for the extension! 🙌
After a lot of fiddling (cursed be Windows!) I managed to get the server.js running

✔ Connecting to ChatGPT
✔ Training ChatGPT (5 plugin rules)
✔ You may now use the extension,

and the extension installed, but then when I try using the extension via the right-click, I get the error on the screenshot below. The bottom one on the first run, then the top one on every next one.

Do you know what might be causing it?

000883

Thanks!

"That model does not exist" error

When trying to run the server, I get the following error:

$ node server.js
✖ Training ChatGPT (1 plugin rules)
file:///Users/user/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:202
              const error = new ChatGPTError(msg, { cause: res });
                            ^

ChatGPTError: ChatGPT error 404: {
    "error": {
        "message": "That model does not exist",
        "type": "invalid_request_error",
        "param": null,
        "code": null
    }
}

    at file:///Users/user/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:202:29
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  statusCode: 404,
  statusText: 'Not Found',
  [cause]: Response {
    [Symbol(realm)]: null,
    [Symbol(state)]: {
      aborted: false,
      rangeRequested: false,
      timingAllowPassed: true,
      requestIncludesCredentials: true,
      type: 'default',
      status: 404,
...

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'eventsource-parser'

I followed the install instructions, npm install gave no errors, but node server.js returned:

node:internal/process/esm_loader:97
internalBinding('errors').triggerUncaughtException(
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'eventsource-parser\dist\index.mjs' imported from chatgpt-chrome-extension\node_modules\chatgpt\build\index.js
Did you mean to import eventsource-parser/dist/index.js?
at new NodeError (node:internal/errors:399:5)
at finalizeResolution (node:internal/modules/esm/resolve:326:11)
at moduleResolve (node:internal/modules/esm/resolve:945:10)
at defaultResolve (node:internal/modules/esm/resolve:1153:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:77:40)
at link (node:internal/modules/esm/module_job:76:36) {
code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.14.2

Strange Problem

Attempted install several times, getting this error on Brave:

Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
Context
background.js
Stack Trace
background.js:0 (anonymous function)

Use ChatGPT API Key

Description

OpenAI has API Support where authentication is performed with an API Key. This form of authentication and interaction would actually be better than using Email Address and Password Credentials, especially since OpenAI supports OAuth with Google, thus eliminating users who use this auth method from using this extension.

https://platform.openai.com/docs/introduction

ChatGPTError: ChatGPT error 404 after running node server.js

$ node --trace-warnings server.js

  • Training ChatGPT (1 plugin rules)(node:15400) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
    at emitExperimentalWarning (node:internal/util:226:11)
    at fetch (node:internal/process/pre_execution:213:5)
    at file:///C:/Users/Admin/Desktop/chatgpt-extension/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:193:31
    at new Promise ()
    at ChatGPTAPI.sendMessage (file:///C:/Users/Admin/Desktop/chatgpt-extension/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:149:23)
    at async Conversation.sendMessage (file:///C:/Users/Admin/Desktop/chatgpt-extension/chatgpt-chrome-extension/server.js:25:17)
    at async oraPromise (file:///C:/Users/Admin/Desktop/chatgpt-extension/chatgpt-chrome-extension/node_modules/ora/index.js:368:18)
    at async start (file:///C:/Users/Admin/Desktop/chatgpt-extension/chatgpt-chrome-extension/server.js:69:3)
    × Training ChatGPT (1 plugin rules)
    file:///C:/Users/Admin/Desktop/chatgpt-extension/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:202
    const error = new ChatGPTError(msg, { cause: res });
    ^

ChatGPTError: ChatGPT error 404: {
"error": {
"message": "That model does not exist",
"type": "invalid_request_error",
"param": null,
"code": null
}
}

at file:///C:/Users/Admin/Desktop/chatgpt-extension/chatgpt-chrome-extension/node_modules/chatgpt/build/index.js:202:29
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

statusCode: 404,
statusText: 'Not Found',
[cause]: Response {
[Symbol(realm)]: null,
[Symbol(state)]: {
aborted: false,
rangeRequested: false,
timingAllowPassed: true,
requestIncludesCredentials: true,
type: 'default',
status: 404,
timingInfo: {
startTime: 366.8491999998223,
redirectStartTime: 0,
redirectEndTime: 0,
postRedirectStartTime: 366.8491999998223,
finalServiceWorkerStartTime: 0,
finalNetworkResponseStartTime: 0,
finalNetworkRequestStartTime: 0,
endTime: 0,
encodedBodySize: 0,
decodedBodySize: 0,
finalConnectionTimingInfo: null
},
cacheState: '',
statusText: 'Not Found',
headersList: HeadersList {
[Symbol(headers map)]: Map(7) {
'date' => 'Thu, 16 Feb 2023 22:35:28 GMT',
'content-type' => 'application/json; charset=utf-8',
'content-length' => '158',
'connection' => 'keep-alive',
'vary' => 'Origin',
'x-request-id' => '4482070b845f8d8f373759baf658719a',
'strict-transport-security' => 'max-age=15724800; includeSubDomains'
},
[Symbol(headers map sorted)]: null
},
urlList: [
<ref *1> URL {
[Symbol(context)]: URLContext {
flags: 400,
scheme: 'https:',
username: '',
password: '',
host: 'api.openai.com',
port: null,
path: [Array],
query: null,
fragment: null
},
[Symbol(query)]: URLSearchParams {
[Symbol(query)]: [],
[Symbol(context)]: [Circular *1]
}
}
],
body: {
stream: ReadableStream {
[Symbol(kType)]: 'ReadableStream',
[Symbol(kState)]: {
disturbed: true,
state: 'closed',
storedError: undefined,
stream: undefined,
transfer: [Object],
controller: [ReadableStreamDefaultController],
reader: undefined
},
[Symbol(used)]: true
}
}
},
[Symbol(headers)]: Headers {
[Symbol(headers list)]: HeadersList {
[Symbol(headers map)]: Map(7) {
'date' => 'Thu, 16 Feb 2023 22:35:28 GMT',
'content-type' => 'application/json; charset=utf-8',
'content-length' => '158',
'connection' => 'keep-alive',
'vary' => 'Origin',
'x-request-id' => '4482070b845f8d8f373759baf658719a',
'strict-transport-security' => 'max-age=15724800; includeSubDomains'
},
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'immutable',
[Symbol(realm)]: null
}
}
}

Node.js v18.8.0

ChatGPT Login problem

Hello,
I would like to use this extension, however, I am unable to log in to my ChatGPT account using a password as I have set it up with Google Authentication. Could you please advise on what password I should set in the .env file? I have tried using my Google password, but it resulted in a failed authentication process and the headless browser was closed.
Thank you,
Farooq.

Error: ChatGPTAPI error 429, Too Many Requests

There appears to be an issue with the second step of the sever initialization.

 const error = new ChatGPTError(msg);
 ChatGPTError: ChatGPTAPI error 429
 statusCode: 429,
 statusText: 'Too Many Requests'

Although I tried implementing a solution found here: Error: ChatGPTAPI error 429, it doesn't seem to fix the issue. Anyone else ran into this?

I also think it's worth mentioning that this error start appearing within the past few days from what I have gathered.

import dotenv from "dotenv-safe" error

import dotenv from "dotenv-safe";
^^^^^^

SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

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.