Skip to content

URLDecoder: Illegal hex characters in escape (%) pattern : %u7 #18

@actor20170211030627

Description

@actor20170211030627

Retrofit Code by Kotlin:

@POST("/xxx/xxxxx/add")
suspend fun newPatQuestionAdd(@Body request: AddProblem): BaseBean<QuestionAddBean?>

the param "request" have some fields, one of the field contains String %28%29%u704C%u5357%u9EBB%u5C06, this fied lead to crash, as follow:

Crash Report:

E  java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern : %u7
at java.net.URLDecoder.decode(URLDecoder.java:178)
at me.jessyan.art.http.log.RequestInterceptor.parseParams(RequestInterceptor.java:173)
at me.jessyan.art.http.log.RequestInterceptor.intercept(RequestInterceptor.java:50)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions