java - 403 Forbidden error via ZUUL only -
i following error:
aug 08, 2016 12:40:45 pm com.vaadin.server.defaulterrorhandler dodefault severe: org.springframework.web.client.httpclienterrorexception: 403 forbidden @ org.springframework.web.client.defaultresponseerrorhandler.handleerror(defaultresponseerrorhandler.java:91) @ org.springframework.web.client.resttemplate.handleresponse(resttemplate.java:641) @ org.springframework.web.client.resttemplate.doexecute(resttemplate.java:597) @ org.springframework.web.client.resttemplate.execute(resttemplate.java:557) @ org.springframework.web.client.resttemplate.exchange(resttemplate.java:503) @ com.primedex2.mservice.ui.trader.tradersrepo.modifytrader1step(tradersrepo.java:451)
whenever call put, delete or post via restfull api:
public <t> responseentity<t> exchange(string url, httpmethod method, httpentity<?> requestentity, parameterizedtypereference<t> responsetype, map<string, ?> urivariables) throws restclientexception { type type = responsetype.gettype(); requestcallback requestcallback = this.httpentitycallback(requestentity, type); responseextractor responseextractor = this.responseentityextractor(type); return (responseentity)this.execute(url, method, requestcallback, responseextractor, urivariables);
it works when set direct link (not via zuul.) has idea or had same struggle?
Comments
Post a Comment