My IWS plugin stopped working. Now when the remote server tries to do a GET to my plugin I get this error:
- Code: Select all
WebServer undefined page requested "http://flyingdiver.goprism.com/twilio/ping" from 34.229.219.100
That URL is correct, it hasn't changed. The IWS setup is right, I think. See attached screen shot. And here's the actual code:
- Code: Select all
####################
import cherrypy
from indigopy.basereqhandler import BaseRequestHandler
####################
def PluginName():
return u"Twilio Ping"
def PluginDescription():
return u"This is the Twilio Ping Plugin."
def ShowOnControlPageList():
return False # if True, then above name/description is shown on the Control Page list index
####################
class TwilioRequestHandler(BaseRequestHandler):
def __init__(self, logFunc, debugLogFunc):
BaseRequestHandler.__init__(self, logFunc, debugLogFunc)
def index(self, name=None):
logmessage = "Twilio Ping usage: http://host:port/twilio/ping\n\n"
self._Log(logmessage)
cherrypy.response.headers['Content-Type'] = 'text/plain'
return logmessage
index.exposed = True
def ping(self, **params):
cherrypy.server.indigoDb.VariableSetValue(cherrypy.server.indigoConn, "twilio_ping", "true")
cherrypy.response.headers['Content-Type'] = 'text/plain'
return "Twilio Ping Ack"
ping.exposed = True
Any ideas?