I am having issues trying to navigate using a proxy server for the purpose of API calls. Proxy is another Ignition gateway that has Web Dev and is receiving ongoing posts from AWS endpoint. When I receive post proxy should then post to my main Ignition gateway which has Web Dev as well and I will write to memory tag and other work for db.
In proxy I am writing to tag as well for testing purposes. The proxy is receiving posts just fine cause I can see data in memory tag but I still get this timeout error:
I also can’t post to the main client gateway from the proxy. I am using this code to test with:
jsonEntry = request['data']
if len(jsonEntry['payload']['decoded_vin']) > 1:
headers = request['headers']
system.tag.writeBlocking(["[default]Another_Test_Post"], str([jsonEntry]))
url = "https://postsfromthisurl.com"
system.net.httpPost(url=url, postParams=jsonEntry, headerValues=headers)
return {'response': 'Posted successfully!'}
else:
msg_test = "Issue with payload or vin is missing"
request['servletResponse'].setStatus(400)
return {'response': msg_test }
`