Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is this error not intercepted #40

Closed
gugu1993 opened this issue Nov 12, 2021 · 1 comment
Closed

Why is this error not intercepted #40

gugu1993 opened this issue Nov 12, 2021 · 1 comment

Comments

@gugu1993
Copy link

Please complete the following information:

  •          sandwich:1.0.4
    
  • Affected Device(s) [e.g. Samsung Galaxy s10 with Android 9.0]
    compileSdkVersion: 30,
    buildToolsVersion: "29.0.3",
    Describe the Bug:
    retrofit2.HttpException: HTTP 400 Response.error()
    at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:53)
    at com.skydoves.sandwich.coroutines.ApiResponseCallDelegate$enqueueImpl$1.onResponse(ApiResponseCallDelegate.kt:33)
    at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
    at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    at java.lang.Thread.run(Thread.java:818)
    Add a clear description about the problem.

Expected Behavior:
net: <-- 400 http://******.com/auth.json (165ms)
net: Server: nginx/1.11.6
net: Date: Fri, 12 Nov 2021 01:20:42 GMT
net: Content-Type: application/json;char
net: Transfer-Encoding: chunked
net: Connection: keep-alive
net: {"code":11015,"message":"无效的客户端"}

@gugu1993
Copy link
Author

#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant