Hi Frédéric, Thank you. I had a stupid bug which I found and fixed. I just couldn’t believe I had written code that didn’t work the first time! You’re correct, I proved there was no problem with permissions by using curl.
Thanks again. Karl. From: Frederic Giloux <[email protected]> Sent: Thursday, May 24, 2018 10:36 PM To: Karl Nicholas <[email protected]> Cc: [email protected] Subject: Re: Posting to REST on same cluster? Hi Karl, OpenShift does not differentiate between post and get. Also 405 is a server error: "the request method is known by the server but has been disabled and cannot be used". The issue is likely to be at the level of your application providing the REST API. To validate it you could log into a container serving the REST API (oc rsh <pod-name>) and use curl locally. Regards, Frédéric On Thu, May 24, 2018 at 4:35 PM, Karl Nicholas <[email protected]<mailto:[email protected]>> wrote: In OPENSHIFT I have one application in a cluster attempting to access another REST application but I'm getting a HTTP 405 Method Not Allowed for a POST request. The GET requests seem to be okay, so I'm thinking it's a permission problem. This should be pretty typical micro-services architecture on openshift. So far I cannot figure out where to look for permissions or how to fix this error. The URL for the service I have set to http://rs.opca.svc.cluster.local:8080/statutesrs/rs/<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Frs.opca.svc.cluster.local%3A8080%2Fstatutesrs%2Frs%2F&data=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636628233603146093&sdata=eWfSuQvlgg28%2Fq%2B8n74VBmBR17AJ2GcDQfLMVtX1jgo%3D&reserved=0>. The application attempting to do the post is named op. Is this a permissions problem or do I need a different URL? If permissions, how do I fix it? _______________________________________________ users mailing list [email protected]<mailto:[email protected]> http://lists.openshift.redhat.com/openshiftmm/listinfo/users<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.openshift.redhat.com%2Fopenshiftmm%2Flistinfo%2Fusers&data=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636628233603146093&sdata=jtvx6cszKfGxeL3ZKdrYZb4WseevOW%2FH0z4s1pEyj3g%3D&reserved=0> -- Frédéric Giloux Principal App Dev Consultant Red Hat Germany [email protected]<mailto:[email protected]> M: +49-174-172-4661<tel:+49-174-172-4661> redhat.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fedhat.com&data=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636628233603146093&sdata=tfyy0r9g71TCrGX%2FZmX3rNGrOmzftwHFBEM0i7EIg4s%3D&reserved=0> | TRIED. TESTED. TRUSTED. | redhat.com/trusted<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fredhat.com%2Ftrusted&data=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636628233603146093&sdata=pFD8hkytXZzriqnOpGDinknfiw11IGymVmnj5TSXlog%3D&reserved=0> ________________________________________________________________________ Red Hat GmbH, http://www.de.redhat.com/<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.de.redhat.com%2F&data=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636628233603146093&sdata=7nPV%2FGQFFEjNbY1a%2FkRI1IThfaGsYxZnknoIc9h8xAc%3D&reserved=0> Sitz: Grasbrunn, Handelsregister: Amtsgericht München, HRB 153243 Geschäftsführer: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
