The first error seems to have been related to using the http version, not the https...I did a wireshark and saw that the server did a redirect, but the Python library didn't seem to follow properly. Changed to https and started getting different errors. Worked though those (mostly formatting and me not realizing that the data needs to be XML, not JSON)...it is now working.
Thank you! --Gavin Budd From: Jon Worley <[email protected]> Sent: Sunday, September 29, 2019 9:07 AM To: Gavin Budd <[email protected]> Cc: [email protected] Subject: Re: [arin-tech-discuss] Restful Question -- Error 403 Hello Gavin, The parent org handle field should be left blank, IIRC. That's the only thing I spotted with a quick look. Perhaps give that a try and see if it goes through OK. If not, reply back to the list or me directly so we can figure out what's going on. -Jon Worley Technical Services Lead ARIN Sent from my iPad On Sep 29, 2019, at 12:13 AM, Gavin Budd via arin-tech-discuss <[email protected]<mailto:[email protected]>> wrote: Hello, Apologies if this is a repeat, I am unsure if the first message I sent went through... I am trying to automate some ARIN registrations and am running into an odd error... When I try to create a new customer record, submitting this data (with actual values) via a python requests.post call, I get an error 403 with the error text as {'componentErrors': [], 'additionalMessages': [], 'code': 'E_UNSPECIFIED', 'message': 'This method for internal ARIN use only.'}. Any idea on what method they are referring to and how to correct it? This happens on both the OTE database and the live database. Thank you! --Gavin Budd URL: http://reg.ote.arin.net/rest/net/<PARENT_NET>/customer?apikey=<APIKEY<http://reg.ote.arin.net/rest/net/%3cPARENT_NET%3e/customer?apikey=%3cAPIKEY>> Data: { "customer xmlns": "http://www.arin.net/regrws/core/v1", "customerName": "Name", "iso3116-1": { "name": "UNITED STATES", "code2": "US", "code3": "USA", "e164": 1 }, "handle": "", "streetAddress": { "line number = \"1\"": "Address", "line number = \"2\"": "" }, "city": "City", "ISO3166-2": "ST", "postalCode": "55555", "parentOrgHandle": "ORG-ID" } _______________________________________________ arin-tech-discuss mailing list [email protected]<mailto:[email protected]> https://lists.arin.net/mailman/listinfo/arin-tech-discuss
_______________________________________________ arin-tech-discuss mailing list [email protected] https://lists.arin.net/mailman/listinfo/arin-tech-discuss
