I am using serverless-offline to test my Lambda functions for a slack bot. When I run sls offline start and point Slack at my ngork.io URL for slack to verify I get:
Serverless: Starting Offline: dev/eu-west-2.
Serverless: Routes for event_receive:
Serverless: POST /event/receive
Serverless: Offline Lambda Server listening on http://localhost:4000
Serverless: Offline listening on http://localhost:3000
Serverless: POST /event/receive (位: event_receive)
**Proxy Handler could not detect JSON:**
INFO:root:Got data: {'token': 'xxx-remove-token-xxx', 'challenge': 'xxx-remove-token-xxx', 'type': 'url_verification'}
Serverless: Failure: {
"statusCode": 200,
"body": "xxx-remove-token-xxx"
}
I'm not sure whats going on.
I'm writing my code in Python3.7.
Your data is wrong I think it should be a string, not an object. Is that right ?
You mean the data I am receiving or the data going back?
I am noticing this too.
adding a
print("Something")
somewhere in the code produces
Proxy Handler could not detect JSON: Something
it used to be
Python: Something I think :thinking:
python --version
Python 3.6.6
Any updates in here?
Can someone PR a fix? Shouldn't be hard.
Most helpful comment
I am noticing this too.
adding a
somewhere in the code produces
Proxy Handler could not detect JSON: Somethingit used to be
Python: SomethingI think :thinking: