#so I am trying to build a chrome extension that translates normal speech into polite Office talk

7 messages · Page 1 of 1 (latest)

minor valve
#

a little background, i have never coded anything in my life (shocker) but since chat gpt I now how the ability to "write code". i had chat gpt build me a chrome extension, it wrote code for a popup.js file, a server.js file and even instructed me on how to set up an environmental variable to protect my api key. I built the extension and upload all the files in developer mode to chrome.

The app UI was what i expected, it had all the forms and buttons and styles. the only issue is that when i enter the text to be translated, literally nothing happens. there is no text returned, just nothing happens.

i double checked to make sure that my server built on express.js was live and listening, it was.

naturally i asked chat gpt about the errors and what could be wrong, it gave multiple suggestions to which i carefully investigated. i made sure my server was open and listening on port 3000, i double checked that my api key was correct and in the .env file in the same directory as the extension container.

but I am stuck, I even opened postman and ran a request from my local server, and it returned errors, I asked chat gpt about the errors and it basically is telling me that the api is not returning the json request. so i am just at a loss, i don't have the experience to trouble shoot this but i am excited about building this simple app.

if there is anyone who can help or provide guidance of any kind i would be eternally grateful, if you would like to see the code in my files i have no problem sending over the project file for reference . again , any help would be greatly appreciated, especially if anyone else is having a similar issue.

thanks again, and I'm super excited to be a part of this coding community.

lethal flare
#

Hey there! Unfortunately ChatGPT can't really be used to make a full fledged app with no programming background whatsoever, because it will oftentimes be incorrect or not able to identify what the issue is

#

Can you share your js files here? Lets take a look

minor valve
#

yes i can

#

i'm assuming you need the popup.js files and the server.js files let me know if you need any others.