SMS with - error

Good day all,
I’m trying to set up the sms centre in ERPNext. Currently, I have an account with and this is the provider I would like to try with.

Here is their API page.
Basically, this should be the format:,44123123457

So I set up my account this way:

And now I am trying to send myself a test sms, this way

But I got this error every time (I have tried it on the production branch and on the development branch as well.)

What am I missing? Did anybody managed to setup sms with

Thanks in advance for your help.

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 19, in handle
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 36, in execute_cmd
ret =, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 854, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 67, in runserverobj
frappe.desk.form.run_method.runserverobj(method, docs=docs, dt=dt, dn=dn, arg=arg, args=args)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/”, line 35, in runserverobj
r = doc.run_method(method)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 601, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 765, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 748, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/”, line 595, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/selling/doctype/sms_center/”, line 79, in send_sms
send_sms(receiver_list, cstr(self.message))
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/sms_settings/”, line 66, in send_sms
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/sms_settings/”, line 79, in send_via_gateway
status = send_request(ss.sms_gateway_url, args)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/doctype/sms_settings/”, line 96, in send_request
conn.request(‘GET’, api_url + urllib.urlencode(args), headers = headers) # send request
File “/usr/lib/python2.7/”, line 979, in request
self._send_request(method, url, body, headers)
File “/usr/lib/python2.7/”, line 1013, in _send_request
File “/usr/lib/python2.7/”, line 975, in endheaders
File “/usr/lib/python2.7/”, line 835, in _send_output
File “/usr/lib/python2.7/”, line 797, in send
File “/usr/lib/python2.7/”, line 778, in connect
self.timeout, self.source_address)
File “/usr/lib/python2.7/”, line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

I’m getting the same error with

Have you found a solution to this?

Update the version of erpnext. doing bench update

Your ERPNEXT instance is unable to resolve You need to figure out why.

Some possible problems that come to mind

Is it a self-hosted installation?
if yes, make sure you have set in DNS Server

This error can be solved by the people of in a better way. Their bulk SMS Customer care officers can solve this issue