Comments (11)
405가 뜨는데 저기
@POST("api/v1/signup")
에 끝에 /로 닫아주세요.@POST("api/v1/signup/")
감사합니다 드디어 201이 떴네요ㅠㅠㅠ
정말감사합니다
from seminar-2021.
일단 5XX error 보다는 4XX error 쪽으로 접근하는게 좋습니다.
1번 방법이 제일 적절할 것 같은데...
RequestSignUp class 도 보여주시겠어요?
from seminar-2021.
일단 5XX error 보다는 4XX error 쪽으로 접근하는게 좋습니다. 1번 방법이 제일 적절할 것 같은데... RequestSignUp class 도 보여주시겠어요?
1번 방법의 requestsignup입니다.
from seminar-2021.
데이터 넣은것도 보여주시겠어요?
from seminar-2021.
이렇게 넣었습니다. (임시로 그냥 저기서 param 생성해서 넣었습니다)
loginService는
이렇게 했습니다.
from seminar-2021.
data class에 name이 아니라 username으로 넘겨주셔야 합니다!
from seminar-2021.
data class에 name이 아니라 username으로 넘겨주셔야 합니다!
아 제가 다시 1번 방법으로 되돌리다가 깜박했네요. 원래 username으로 했었습니다
from seminar-2021.
저렇게 보내서 log 보여주실 수 있나요?
from seminar-2021.
data class RequestSignup(
val email: String,
val username: String,
val password:String,
val role:String
)
interface LoginService {
@POST("api/v1/signup")
fun signup(@Body params: RequestSignup): Call<FetchSignup>
}
@Singleton
class LoginRepository @Inject constructor(private val loginService: LoginService){
fun signup(): Call<FetchSignup> {
val param = RequestSignup("[email protected]","aaa", "1234",
"participant")
return loginService.signup(param)
}
}
data class FetchSignup (
val name:String,
val token:String
)
정리하면 이렇게 했습니다.
from seminar-2021.
로그입니다.
from seminar-2021.
405가 뜨는데 저기 @POST("api/v1/signup")
에 끝에 /로 닫아주세요. @POST("api/v1/signup/")
from seminar-2021.
Related Issues (20)
- Nginx 배포 완료 후 서버가 작동하지 않는 문제
- 장고 과제4 서버 실행시 static file not found 에러 질문드립니다. HOT 11
- 안드로이드 과제4 Dagger Hilt로 만든 okhttpclient에서 logcat 출력 설정 방법 HOT 2
- local에서 Authorization Error HOT 2
- 백엔드 서버가 보낼 수 있는 여러 에러 응답 처리 관련 HOT 2
- 안드로이드 과제4 스펙 관련 HOT 2
- Django 과제4 RDS 데이터베이스 생성 요금?? HOT 3
- 안드로이드 과제4 에러 메시지 관련 HOT 3
- 장고 과제4 migration 관련 에러 질문 HOT 5
- RDS 생성 후 DATA GRIP 연동 부분에서 connection이 계속 fail합니다. HOT 1
- 장고 OperationalError: (1045, "Access denied for user 'waffle-backend'@'172.31.44.17') HOT 3
- 장고 과제4 nginx stop 혹은 restart 시 오류 관련 HOT 5
- nginx 502 bad gateway 에러 HOT 1
- 장고 과제 5 exception_handler을 찾지 못하는 문제 관련 HOT 4
- 장고 과제 4 Migration 관련 질의 HOT 1
- 장고 과제 5(2) 문제 의도 및 추가적인 질문 HOT 5
- 장고 과제 5(3) notebook 실행 오류 질문 HOT 8
- EC2에서 애플리케이션이 꺼지는 현상
- 안드로이드 과제 리뷰 관련하여 질문드립니다. HOT 1
- Can I set more than one constant of P control when using PID control for line tracing made with Arduino?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seminar-2021.