frappe / twilio-integration

Twilio integration for ERPNext
Other
57 stars 74 forks source link

Twilio Voice call error - localhost instead of mysite.com #46

Closed odaybari closed 1 year ago

odaybari commented 1 year ago

Hi all.

Thank you for the fantastic work.

I am running ERPnext 14.20.2 in docker container. When setting up twilio integration, the url of the api call says https://localhost and doesn't pickup the site url. below is the error message. <twilio.base.exceptions.TwilioRestException: HTTP 400 error: Unable to create record: VoiceUrl is not a valid URL: https://localhost/api/method/twilio_integration.twilio_integration.api.voice>

Can someone help me solve this. Do I need to install ngrok for docker images? Thanks

odaybari commented 1 year ago

Solved it. It was an Nginx proxy misconfiguration.

here is my working nginx directive

location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto https; proxy_pass http://0.0.0.0:8040; }

Hope this help someone.

odaybari commented 1 year ago

Solved it. It was an Nginx proxy misconfiguration.

here is my working nginx directive

location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto https; proxy_pass http://0.0.0.0:8040; }

Hope this help someone.