Hi,
Did you check whether your WiPy is connected to wifi? If WiPy is not connected to wifi, you can receive oserror.
After being sure that your WiPy connected to wifi, please try your code.
Best,
@kjm Line 52 doesn't seem to be related to datapayload, so i suppose that data = ujson.dumps({"post_wrapper":payload})) do the work.
I don't know what OSError 128 mean but the line seem to be related to networking. Does your software have do correctly the connect with your wifi hotspot before trying to send your request ?