HTTP 401

mail@pastecode.io avatar
unknown
json
3 years ago
7.9 kB
5
Indexable
Never
(lldb) po response.result
▿ FAILURE: cannotRefresh
  - failure : NewLook.ExternalRefreshTokenHttpError.cannotRefresh

(lldb) po error
NewLook.ExternalRefreshTokenHttpError.cannotRefresh

(lldb) po response.result
▿ FAILURE: cannotRefresh
  - failure : NewLook.ExternalRefreshTokenHttpError.cannotRefresh

(lldb) po response
▿ [Request]: POST https://api-aws7.dev-newlook.com/v1/identity/token
[Request Body]: 
client_id=5a5c3900-4e73-4109-9c36-e6f0e3afcc38&grant_type=refresh_token&refresh_token=e010dedd-57ca-408c-ac84-2a317fe19590&response_type=token%20id_token
[Response]: <NSHTTPURLResponse: 0x281ed3b60> { URL: https://api-aws7.dev-newlook.com/v1/identity/token } { Status Code: 401, Headers {
    "Cache-Control" =     (
        "no-store"
    );
    "Content-Type" =     (
        "application/json;charset=UTF-8"
    );
    Date =     (
        "Tue, 15 Jun 2021 13:01:51 GMT"
    );
    Pragma =     (
        "no-cache"
    );
    Server =     (
        Apache
    );
    "Strict-Transport-Security" =     (
        "max-age=86400; includeSubDomains",
        "max-age=31536000; includeSubdomains;"
    );
    "Www-Authenticate" =     (
        "Bearer error=\"invalid_token\", error_description=\"Invalid refresh token (expired): e010dedd-57ca-408c-ac84-2a317fe19590\""
    );
    "x-content-type-options" =     (
        nosniff
    );
    "x-frame-options" =     (
        DENY
    );
    "x-ratelimit-limit" =     (
        50
    );
    "x-ratelimit-remaining" =     (
        49
    );
    "x-ratelimit-reset" =     (
        920
    );
    "x-xss-protection" =     (
        "1; mode=block"
    );
} }
[Response Body]: 
{
  "errorCode": "invalid_token",
  "message": "Invalid refresh token (expired): e010dedd-57ca-408c-ac84-2a317fe19590"
}
[Result]: FAILURE
[Timeline]: Timeline: { "Request Start Time": 645454911.212, "Initial Response Time": 645454912.158, "Request Completed Time": 645454912.202, "Serialization Completed Time": 645454912.202, "Latency": 0.946 secs, "Request Duration": 0.990 secs, "Serialization Duration": 0.000 secs, "Total Duration": 0.990 secs }
  ▿ request : Optional<URLRequest>
    ▿ some : https://api-aws7.dev-newlook.com/v1/identity/token
      ▿ url : Optional<URL>
        ▿ some : https://api-aws7.dev-newlook.com/v1/identity/token
          - _url : https://api-aws7.dev-newlook.com/v1/identity/token
      - cachePolicy : 0
      - timeoutInterval : 60.0
      - mainDocumentURL : nil
      - networkServiceType : __C.NSURLRequestNetworkServiceType
      - allowsCellularAccess : true
      ▿ httpMethod : Optional<String>
        - some : "POST"
      ▿ allHTTPHeaderFields : Optional<Dictionary<String, String>>
        ▿ some : 5 elements
          ▿ 0 : 2 elements
            - key : "Content-Type"
            - value : "application/x-www-form-urlencoded; charset=utf-8"
          ▿ 1 : 2 elements
            - key : "Accept-Language"
            - value : "en"
          ▿ 2 : 2 elements
            - key : "X-NLK-COUNTRY"
            - value : "GB"
          ▿ 3 : 2 elements
            - key : "Authorization"
            - value : "NL 7eb49b7fa9b24cceadfd42f48f65c3dc:cCF67F9a438f4F7B9F2fF8e2435ec49f"
          ▿ 4 : 2 elements
            - key : "X-NLK-SITE"
            - value : "app-uk-site"
      ▿ httpBody : Optional<Data>
        ▿ some : 153 bytes
          - count : 153
          ▿ pointer : 0x0000000282f485a0
            - pointerValue : 10786997664
      - httpBodyStream : nil
      - httpShouldHandleCookies : true
      - httpShouldUsePipelining : false
  ▿ response : Optional<NSHTTPURLResponse>
    - some : <NSHTTPURLResponse: 0x281ed3b60> { URL: https://api-aws7.dev-newlook.com/v1/identity/token } { Status Code: 401, Headers {
    "Cache-Control" =     (
        "no-store"
    );
    "Content-Type" =     (
        "application/json;charset=UTF-8"
    );
    Date =     (
        "Tue, 15 Jun 2021 13:01:51 GMT"
    );
    Pragma =     (
        "no-cache"
    );
    Server =     (
        Apache
    );
    "Strict-Transport-Security" =     (
        "max-age=86400; includeSubDomains",
        "max-age=31536000; includeSubdomains;"
    );
    "Www-Authenticate" =     (
        "Bearer error=\"invalid_token\", error_description=\"Invalid refresh token (expired): e010dedd-57ca-408c-ac84-2a317fe19590\""
    );
    "x-content-type-options" =     (
        nosniff
    );
    "x-frame-options" =     (
        DENY
    );
    "x-ratelimit-limit" =     (
        50
    );
    "x-ratelimit-remaining" =     (
        49
    );
    "x-ratelimit-reset" =     (
        920
    );
    "x-xss-protection" =     (
        "1; mode=block"
    );
} }
  ▿ data : Optional<Data>
    ▿ some : 120 bytes
      - count : 120
      ▿ pointer : 0x0000000283072f80
        - pointerValue : 10788220800
  ▿ result : FAILURE: cannotRefresh
    - failure : NewLook.ExternalRefreshTokenHttpError.cannotRefresh
  ▿ timeline : Timeline: { "Request Start Time": 645454911.212, "Initial Response Time": 645454912.158, "Request Completed Time": 645454912.202, "Serialization Completed Time": 645454912.202, "Latency": 0.946 secs, "Request Duration": 0.990 secs, "Serialization Duration": 0.000 secs, "Total Duration": 0.990 secs }
    - requestStartTime : 645454911.211665
    - initialResponseTime : 645454912.157967
    - requestCompletedTime : 645454912.201658
    - serializationCompletedTime : 645454912.201768
    - latency : 0.9463019371032715
    - requestDuration : 0.9899929761886597
    - serializationDuration : 0.0001100301742553711
    - totalDuration : 0.990103006362915
  ▿ _metrics : Optional<AnyObject>
    - some : (Task Interval) <_NSConcreteDateInterval: 0x281ee14c0> (Start Date) 2021-06-15 13:01:51 +0000 + (Duration) 0.948722 seconds = (End Date) 2021-06-15 13:01:52 +0000
(Redirect Count) 0
(Transaction Metrics) (Request) <NSURLRequest: 0x281c53a10> { URL: https://api-aws7.dev-newlook.com/v1/identity/token }
(Response) <NSHTTPURLResponse: 0x281ed3c00> { URL: https://api-aws7.dev-newlook.com/v1/identity/token } { Status Code: 401, Headers {
    "Cache-Control" =     (
        "no-store"
    );
    "Content-Type" =     (
        "application/json;charset=UTF-8"
    );
    Date =     (
        "Tue, 15 Jun 2021 13:01:51 GMT"
    );
    Pragma =     (
        "no-cache"
    );
    Server =     (
        Apache
    );
    "Strict-Transport-Security" =     (
        "max-age=86400; includeSubDomains",
        "max-age=31536000; includeSubdomains;"
    );
    "Www-Authenticate" =     (
        "Bearer error=\"invalid_token\", error_description=\"Invalid refresh token (expired): e010dedd-57ca-408c-ac84-2a317fe19590\""
    );
    "x-content-type-options" =     (
        nosniff
    );
    "x-frame-options" =     (
        DENY
    );
    "x-ratelimit-limit" =     (
        50
    );
    "x-ratelimit-remaining" =     (
        49
    );
    "x-ratelimit-reset" =     (
        920
    );
    "x-xss-protection" =     (
        "1; mode=block"
    );
} }
(Fetch Start) 2021-06-15 13:01:51 +0000
(Domain Lookup Start) (null)
(Domain Lookup End) (null)
(Connect Start) (null)
(Secure Connection Start) (null)
(Secure Connection End) (null)
(Connect End) (null)
(Request Start) 2021-06-15 13:01:51 +0000
(Request End) 2021-06-15 13:01:51 +0000
(Response Start) 2021-06-15 13:01:52 +0000
(Response End) 2021-06-15 13:01:52 +0000
(Protocol Name) h2
(Proxy Connection) NO
(Reused Connection) YES
(Fetch Type) Network Load
(Request Header Bytes) 94
(Request Body Transfer Bytes) 162
(Request Body Bytes) 153
(Response Header Bytes) 421
(Response Body Transfer Bytes) 138
(Response Body Bytes) 120
(Local Address) 192.168.1.130
(Local Port) 54586
(Remote Address) 63.32.146.121
(Remote Port) 443
(TLS Protocol Version) 0x0303
(TLS Cipher Suite) 0xC02F
(Cellular) NO
(Expensive) NO
(Constrained) NO
(Multipath) NO



(lldb)