Url configuration issue

I’m getting wrong url in twilio integration,
required url is : https://erp.domain.in/api/method/twilio_integration.twilio_integration.api.whatsapp_message_status_callback

but I’m getting: https://erp:8000/api/method/twilio_integration.twilio_integration.api.whatsapp_message_status_callback

why?
please help me to solve this issue

@megha007 open site-config.json and change the host_name there

1 Like

I’ve changed it, but there is no effect on url. After changing I have to restart bench or do anything ?

@megha007 bench migrate

what this command do? If I run it on server directly?

@megha007 Run patches, sync schema and rebuild files/translations

Sorry but nothing happened. Still getting following url

https://erp:8000/api/method/twilio_integration.twilio_integration.api.whatsapp_message_status_callback

1 Like

In twilio_integration/twilio_integration/doctype/whatsapp_message/whatsapp_message.py

change line 35 from:
'status_callback': '{}/api/method/twilio_integration.twilio_integration.api.whatsapp_message_status_callback'.format(get_site_url(frappe.local.site))

to:
'status_callback': '{}/api/method/twilio_integration.twilio_integration.api.whatsapp_message_status_callback'.format(frappe.utils.get_url())