인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

word high's profile image
word high

asked

[Code Factory] [Intermediate] Flutter Real Practice! State Management, Cache Management, Code Generation, GoRouter, Authentication Logic, etc. Essential Skills to Become an Intermediate!

Requesting Auth API with Dio

로그인버튼을 눌렀을때 refreshToken이 안뜹니다ㅠㅠ

Resolved

Written on

·

641

·

Edited

0

안녕하세요! Dio로 Auth API 요청해보기 강의에서 11분50초쯤 알려주셧듯, 로그인버튼을 클릭했는데

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: DioError [DioErrorType.other]: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = 127.0.0.1, port = 64549 이렇게 에러가뜨면서 refreshToken이 안뜨는데 시뮬레이터 IP문제일까요..?

 

flutter하이브리드-앱

Answer 3

1

codefactory님의 프로필 이미지
codefactory
Instructor

안녕하세요!

포트를 64549번으로 지정하신 것 같네요.

포트가 3000번이어야합니다. 제 강의랑 비교해보시면 URL이 다르실거예요!

감사합니다!

0

word high님의 프로필 이미지
word high
Questioner

해결했습니다ㅠㅠ감사합니다!!

어떻게 해결하셧나이까!!

0

word high님의 프로필 이미지
word high
Questioner

final emulatorIp = '10.0.2.2:3000'; final simulatorIp = '127.0.0.1:3000'; final ip = Platform.isIOS ? simulatorIp : emulatorIp;

이렇게 똑같이 했는데 안되고 로그인버튼 누를때마다 port가 변경되네요ㅜ어떤걸 잘못했을까요?

codefactory님의 프로필 이미지
codefactory
Instructor

안녕하세요! 무언가 코드가 다른곳이 분명히 있을겁니다. 혹시 못찾으시면 깃헙에 프로젝트 올려서 공유해주세요!

word high's profile image
word high

asked

Ask a question