[arin-tech-discuss] Problems creating recipient org?
Brian Rak
brak at gameservers.com
Sat Jun 1 13:51:29 EDT 2013
An error would be expected, but not a 404 (or at the very least, I'd
expect some kind of indication I had the wrong content type).
On 5/31/2013 9:49 PM, Owen DeLong wrote:
> That seems like reasonable behavior to me.
>
> If you give it the wrong content-type header, it should respond with some form of error. Not sure 404 is exactly right, but it seems reasonable enough.
>
> Otherwise, you're expecting the software to play "guess the format" for submissions and that tends to make the software unnecessarily complex and usually leads to "interesting" bugs down the road.
>
> Owen
>
> On May 31, 2013, at 1:33 PM, Brian Rak <brak at gameservers.com> wrote:
>
>> We solved this, the issue is the content-type header. This needs to be application/xml or you get the 404 errors.
>>
>> On 5/30/2013 3:20 PM, Andy Newton wrote:
>>> Hi Brian,
>>>
>>> I'm looking at this and can see nothing immediately wrong. If you call our
>>> Registrations Services department, they can turn on traffic monitoring for
>>> a specific API Key and that might provide us with some more insight with
>>> regards to your problem.
>>>
>>> Their phone number is +1.703.227.0660
>>>
>>> I hope this is helpful.
>>>
>>> Andy Newton,
>>> Chief Engineer, ARIN
>>>
>>> On 5/29/13 3:38 PM, "Brian Rak" <brak at gameservers.com> wrote:
>>>
>>>> (Sorry about all the emails, I keep running into issues and there's very
>>>> little documentation outside of the API method lists)
>>>>
>>>> I'm trying to create a recipient org, and I keep getting a 404 error
>>>> back. This is pretty confusing, as the PARENTNETHANDLE I'm using
>>>> definitely exists.
>>>>
>>>> For example, I am sending the following request to https://reg.arin.net:
>>>>
>>>> POST /rest/net/NET-64-237-32-0-1/org?apikey=API-AAAA-BBBB-CCCC-DDDD
>>>> HTTP/1.1
>>>> Host: reg.arin.net
>>>> Accept: text/xml
>>>> Content-Type: text/xml
>>>> Content-Length: 344
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <org xmlns="http://www.arin.net/regrws/core/v1">
>>>> .....
>>>> </org>
>>>>
>>>> and getting the following back:
>>>>
>>>> < HTTP/1.1 404 Not Found
>>>> < Date: Wed, 29 May 2013 19:29:52 GMT
>>>> < Server: Apache-Coyote/1.1
>>>> < Content-Type: text/html;charset=utf-8
>>>> < Content-Length: 1541
>>>> < Set-Cookie: JSESSIONID=XXXXXXXX.jboss1; Path=/regcore
>>>> < Connection: close
>>>> <
>>>> * Closing connection #0
>>>> <html><head><title>JBoss Web/7.0.10.Final - Error
>>>> report</title><style><!--H1
>>>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;
>>>> font-size:22px;}
>>>> H2
>>>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;
>>>> font-size:16px;}
>>>> H3
>>>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;
>>>> font-size:14px;}
>>>> BODY
>>>> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
>>>> B
>>>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;
>>>> }
>>>> P
>>>> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-siz
>>>> e:12px;}A
>>>> {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
>>>> </head><body><h1>HTTP Status 404 - Could not find resource for relative
>>>> : /net/NET-64-237-32-0-1/org of full path:
>>>> http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-64-237-
>>>> 32-0-1/org?apikey=API-AAAA-BBBB-CCCC-DDDD</h1><HR
>>>> size="1" noshade="noshade"><p><b>type</b> Status
>>>> report</p><p><b>message</b> <u>Could not find resource for relative :
>>>> /net/NET-64-237-32-0-1/org of full path:
>>>> http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-64-237-
>>>> 32-0-1/org?apikey=API-AAAA-BBBB-CCCC-DDDD</u></p><p><b>description</b>
>>>> <u>The requested resource (Could not find resource for relative :
>>>> /net/NET-64-237-32-0-1/org of full path:
>>>> http://jboss1.cha.arin.net:8080/regcore/seam/resource/rest/net/NET-64-237-
>>>> 32-0-1/org?apikey=API-AAAA-BBBB-CCCC-DDDD)
>>>> is not available.</u></p><HR size="1" noshade="noshade"><h3>JBoss
>>>> Web/7.0.10.Final</h3></body></html>
>>>>
>>>>
>>>> The only information I've been able to find about this is someone using
>>>> PUT instead of POST. What am I missing here? Given that I'm getting a
>>>> 404 back I'm thinking that I have the wrong URL. I can't seem to find
>>>> any other URL that I could possibly use though. The NET object I'm
>>>> using definitely exists:
>>>> http://whois.arin.net/rest/net/NET-64-237-32-0-1/pft , so that's not it
>>>> either.
>>>> _______________________________________________
>>>> arin-tech-discuss mailing list
>>>> arin-tech-discuss at arin.net
>>>> http://lists.arin.net/mailman/listinfo/arin-tech-discuss
>>>>
>> _______________________________________________
>> arin-tech-discuss mailing list
>> arin-tech-discuss at arin.net
>> http://lists.arin.net/mailman/listinfo/arin-tech-discuss
More information about the arin-tech-discuss
mailing list