Python Manual for Function calculation small problem
Today, we do this with the Python Starter Manual for function calculations and get stuck with the error. In the introduction to the General entry function for WSGI:
{ "errorMessage": "'NoneType' object has no attribute 'split'", "errorType": "AttributeError", "stackTrace": [ [ "File \"/var/fc/runtime/python2.7/src/server.py\"", "line 276", "in do_POST", "wsgi_handler.run(application)" ], [ "File \"/usr/local/lib/python2.7/wsgiref/handlers.py\"", "line 92", "in run", "self.close()" ], [ "File \"/usr/local/lib/python2.7/wsgiref/simple_server.py\"", "line 33", "in close", "self.status.split(' ',1)[0], self.bytes_sent" ]
Refer to the simple Wsgi example-CSDN added this sentencecontext(‘200 OK‘, [(‘Content-Type‘, ‘text/html‘)])
def handler(event, context): context('200 OK', [('Content-Type', 'text/html')]) return '
Can.
Python Manual for Function calculation small problem