Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no response #21

Open
Granato25 opened this issue Mar 25, 2024 · 4 comments
Open

no response #21

Granato25 opened this issue Mar 25, 2024 · 4 comments

Comments

@Granato25
Copy link

i can't get it to work. i have set it up on fly.io, got all the api keys, upgraded eleven labs, everything is set in .env. when i call it, it establishes a websocket connection, it gets an incoming request from twilio, it response with the connection endpoint, it opens a new websocket connection, and then nothing happens, or at least i am not getting any reponses. tried everything with chatgpt but i am out of ideas on what the issue could be. any pointers?

@cweems
Copy link
Collaborator

cweems commented Mar 26, 2024

@Granato25 Sorry to hear about the issues here. Is there any chance you could post what gets logged out in your console? Do you know if it's failing at Deepgram, GPT, or 11labs?

@Granato25
Copy link
Author

that is all i am getting on fly.io after chatgpt added logging to app.js. I (chatgpt) also added logging to the files in the service folder but without results. I will try to add more logging to these files.

(i have replaced some characters with #)
log:

2024-03-26T20:51:13.592 app[683d5d2b126###] iad [info] Incoming POST request to /incoming

2024-03-26T20:51:13.593 app[683d5d2b126###] iad [info] Headers: {"content-type":"application/x-www-form-urlencoded; charset=UTF-8","i-twilio-idempotency-token":"de19ee3b-f366-4b8d-93c6-a8514945####","x-twilio-signature":"nvRyytMx8MDQ31nnhTqDKC####=","accept":"/","content-length":"828","x-home-region":"us1","host":"####gpt.fly.dev","user-agent":"TwilioProxy/1.1","x-request-start":"t=1711486273588###","fly-client-ip":"3.95.242.###","x-forwarded-for":"3.95.242.###, 66.241.124.###","fly-forwarded-proto":"https","x-forwarded-proto":"https","fly-forwarded-ssl":"on","x-forwarded-ssl":"on","fly-forwarded-port":"443","x-forwarded-port":"443","fly-region":"iad","fly-request-id":"01HSY8G21M#DHD7YR9V0FME####-iad","via":"1.1 fly.io","fly-traceparent":"00-cf644ae55fc399c068b7d6#d45efc0450-8cab345bf609####-00","fly-tracestate":""}

2024-03-26T20:51:13.593 app[683d5d2b126###] iad [info] Body: {"Called":"+17087878######","ToState":"IL","CallerCountry":"DE","Direction":"inbound","CallerState":"","ToZip":"","CallSid":"CAef6e3adef00#8f80c62c4d0dc0389####","To":"+1708787###","CallerZip":"","ToCountry":"US","StirVerstat":"TN-Validation-Passed-C","CallToken":"%7B%22parentCallInfoToken%22%3A%22eyJhbGciOiJFUzI1####.eyJjYWxsU2lkIjoiQ0FlZjZlM2FkZ#WYwMDhmODBjNjJ####ZGMwMzg5Y#mQ1OCIsImZyb20iOiIrNDkxNzcyNjQ4MTE3IiwidG8iOiIrMTcwODc4Nzg1NzY#iLCJpYXQ#iOiIxNzExNDg2MjczIn0.CGlUadRYs6u19XQRuaLALYmdXg7O27V4SWOhn-3tbmX5SXB32lLLj3g_tMTCOldUYm###wQX5wc4Ttd2lUw%22%2C%22identityHeaderTokens%22%3A%5B%5D%7D","CalledZip":"","ApiVersion":"2010-04-01","CalledCity":"","CallStatus":"ringing","From":"+4917726####","AccountSid":"ACceb97f7d3bf3b919e8b19be728####","CalledCountry":"US","CallerCity":"","ToCity":"","FromCountry":"DE","Caller":"+49177264###","FromCity":"","CalledState":"IL","FromZip":"","FromState":""}

2024-03-26T20:51:13.593 app[683d5d2b126####] iad [info] Response Sent for Incoming Request:

2024-03-26T20:51:13.648 app[683d5d2b126###] iad [info] New WebSocket connection established.

2024-03-26T20:51:13.648 app[683d5d2b126###] iad [info] Connection from ::ffff:172.16.5.###

@cweems
Copy link
Collaborator

cweems commented Mar 27, 2024

@Granato25 Is there any chance the SERVER in your .env file is set incorrectly? Or perhaps does it include https://? It should be something like my-server-url.fly.dev.

@Granato25
Copy link
Author

Thanks, I started over and have it working now. I ran into issues customizing it. I removed the example functions and I had to remove everything related to functions to make it work. It would be great if we could also setup language somewhere, so deepgram and eleven labs give better results. Right now it talks to me but is changing accents and it also doesn't understand my inputs. I will play with it more next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants