RE: Posting to REST on same cluster?

2018-05-25 Thread Karl Nicholas
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 <fgil...@redhat.com>
Sent: Thursday, May 24, 2018 10:36 PM
To: Karl Nicholas <karl.nicho...@outlook.com>
Cc: users@lists.openshift.redhat.com
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 ) and use curl locally.
Regards,
Frédéric

On Thu, May 24, 2018 at 4:35 PM, Karl Nicholas 
<karl.nicho...@outlook.com<mailto:karl.nicho...@outlook.com>> 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=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435%7C1%7C0%7C636628233603146093=eWfSuQvlgg28%2Fq%2B8n74VBmBR17AJ2GcDQfLMVtX1jgo%3D=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
users@lists.openshift.redhat.com<mailto:users@lists.openshift.redhat.com>
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=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435%7C1%7C0%7C636628233603146093=jtvx6cszKfGxeL3ZKdrYZb4WseevOW%2FH0z4s1pEyj3g%3D=0>



--
Frédéric Giloux
Principal App Dev Consultant
Red Hat Germany

fgil...@redhat.com<mailto:fgil...@redhat.com> M: 
+49-174-172-4661<tel:+49-174-172-4661>

redhat.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fedhat.com=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435%7C1%7C0%7C636628233603146093=tfyy0r9g71TCrGX%2FZmX3rNGrOmzftwHFBEM0i7EIg4s%3D=0>
 | TRIED. TESTED. TRUSTED. | 
redhat.com/trusted<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fredhat.com%2Ftrusted=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435%7C1%7C0%7C636628233603146093=pFD8hkytXZzriqnOpGDinknfiw11IGymVmnj5TSXlog%3D=0>

Red Hat GmbH, 
http://www.de.redhat.com/<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.de.redhat.com%2F=02%7C01%7C%7C9a1c6a66a6df4337d6c908d5c20164f3%7C84df9e7fe9f640afb435%7C1%7C0%7C636628233603146093=7nPV%2FGQFFEjNbY1a%2FkRI1IThfaGsYxZnknoIc9h8xAc%3D=0>
 Sitz: Grasbrunn,
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Paul Argiry, Charles Cachera, Michael Cunningham, Michael 
O'Neill
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Posting to REST on same cluster?

2018-05-24 Thread Frederic Giloux
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 ) and use curl locally.

Regards,

Frédéric

On Thu, May 24, 2018 at 4:35 PM, Karl Nicholas 
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/. 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
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>


-- 
*Frédéric Giloux*
Principal App Dev Consultant
Red Hat Germany

fgil...@redhat.com M: +49-174-172-4661

redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted

Red Hat GmbH, http://www.de.redhat.com/ Sitz: Grasbrunn,
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Paul Argiry, Charles Cachera, Michael Cunningham, Michael
O'Neill
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users