These are chat archives for spring-cloud/spring-cloud

3rd
Oct 2017
Gabriel Sousa
@gabrielfsousa
Oct 03 2017 08:33
how i active deregisterCriticalServiceAfter ?
dennisrojaspereira
@dennisrojaspereira
Oct 03 2017 13:22
Hi for all !
I created a interceptor with prehandle but the post execute full upload and after this execute the method preHandle. Exists any form to intercept before the upload of file because i have a flag and when is activated return code error before upload all file?
dennisrojaspereira
@dennisrojaspereira
Oct 03 2017 13:31
Sorry, but i can't explain my case correct. I have a method in controller called upload and sometime i need block any upload because my server has a global variable called busy. When browser or curl post a file , i need create a interceptor when this flag is true any upload post need return a customized error code by http status. I try create a interceptor but the method override preHandle is called after the file is upload but i need return this code before because the client don't need upload entire file.
pradeepkusingh
@pradeepkusingh
Oct 03 2017 16:34
@spencergibb @dsyer I am seeing one issue where if I directly call a service using HEAD it gives me 200 OK http response, but if I go through apigateway I am getting 502 bad gateway, can you please help ?
pradeepkusingh
@pradeepkusingh
Oct 03 2017 16:42
more info: org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 502 Bad Gateway[\r][\n]"
Tue Oct 03 10:39:21 MDT 2017 DEBUG [APP:null TRACKING_ID:null ACCOUNT_NUM:null] org.apache.http.wire - http-outgoing-1 << "Content-Type: text/plain; charset=utf-8[\r][\n]"
Tue Oct 03 10:39:21 MDT 2017 DEBUG [APP:null TRACKING_ID:null ACCOUNT_NUM:null] org.apache.http.wire - http-outgoing-1 << "X-Cf-Routererror: endpoint_failure[\r][\n]"
Tue Oct 03 10:39:21 MDT 2017 DEBUG [APP:null TRACKING_ID:null ACCOUNT_NUM:null] org.apache.http.wire - http-outgoing-1 << "X-Content-Type-Options: nosniff[\r][\n]"
if I hit another method on same apps it works fine....same method suports HEAD and GET both and if I hit GET.I get proper response from apigateway