I’m trying to overwrite a field in one of my tables using python pycurl. Can someone show me an example of how to put data using pycurl? I’m able to get the data and parse it in my python script.
sample code:
c = pycurl.Curl()
c.setopt(c.URL, ‘https://smartparkingapplications.bubbleapps.io/version-test/api/1.1/obj/User/1583800112720x173266947140977800/put’)
c.setopt(c.UPLOAD, 1)
data = json.dumps(test2)
# READDATA requires an IO-like object; a string is not accepted
# encode() is necessary for Python 3
#buffer = BytesIO(data.encode('utf-8'))
c.setopt(c.READDATA, buffer)
c.perform()
c.close()
Error received: “Sorry, we ran into a temporary bug and can’t complete your request. We’ll fix it as soon as we can; please try again in a bit!”