묻고 답해요
141만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결
구글 api 로컬호스트 거부 문제
구글 캘린더 api 를 파이썬을 통해 사용하려고 하는데요 api 사용을 위한 인증을 하는중에 계속 localhost 에서 연결을 거부했다고 나오네요. 인터넷에 localhost 연결 방법을 여러가지 시도해봤는데도 안돼서 이렇게 질문드려요
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
설정대로 올렸는데 api-gateway가 ocalhost로 붙으려고해요;
안녕하세요. 수업 잘 듣고 있습니다. local test에서는 잘 되던 게 여기서 막히네요; 혹시 어떤 설정때문에 docker에서 설정한 uri로 안넘어가는 걸까요? 오류 로그는 아래에 남기겠습니다 2022-05-08 23:44:26.208 INFO 1 --- [or-http-epoll-1] c.m.s.filter.GlobalFilter : Global filter baseMessage: Spring Cloud Gateway Global Filter 2022-05-08 23:44:26.208 INFO 1 --- [or-http-epoll-1] c.m.s.filter.GlobalFilter : Global Filter Start: request id -> 983024ba-8 2022-05-08 23:44:26.213 ERROR 1 --- [or-http-epoll-1] a.w.r.e.AbstractErrorWebExceptionHandler : [983024ba-8] 500 Server Error for HTTP POST "/user-service/users" io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: localhost/127.0.0.1:38991 Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: Error has been observed at the following site(s): *__checkpoint ⇢ org.springframework.boot.actuate.web.trace.reactive.HttpTraceWebFilter [DefaultWebFilterChain] *__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain] *__checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain] *__checkpoint ⇢ HTTP POST "/user-service/users" [ExceptionHandlingWebHandler] Original Stack Trace: Caused by: java.net.ConnectException: finishConnect(..) failed: Connection refused at io.netty.channel.unix.Errors.newConnectException0(Errors.java:155) ~[netty-transport-native-unix-common-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.channel.unix.Errors.handleConnectErrno(Errors.java:128) ~[netty-transport-native-unix-common-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.channel.unix.Socket.finishConnect(Socket.java:320) ~[netty-transport-native-unix-common-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.doFinishConnect(AbstractEpollChannel.java:710) ~[netty-transport-classes-epoll-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.finishConnect(AbstractEpollChannel.java:687) ~[netty-transport-classes-epoll-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.epollOutReady(AbstractEpollChannel.java:567) ~[netty-transport-classes-epoll-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:470) ~[netty-transport-classes-epoll-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378) ~[netty-transport-classes-epoll-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) ~[netty-common-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.73.Final.jar!/:4.1.73.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.73.Final.jar!/:4.1.73.Final] at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]