Control Raspberry Pi GPIO With Amazon Echo and Python

I Try entering the following into the ‘Enter Utterance’ box under the Service Simulator:
turn pin twenty one on. and a have problem: 502 Bad Gateway. help me?
thanks all

and services respones There was an error calling the remote endpoint, which returned HTTP 502 : Bad Gateway

Hi can you share some of the code and the output error ?


thank you.I finished it