[GH-ISSUE #1793] Invalid file. Please open the Issue in Proxyman's Github #1786

Closed
opened 2026-03-03 19:54:23 +03:00 by kerem · 7 comments
Owner

Originally created by @steilerDev on GitHub (Oct 2, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1793

Originally assigned to: @NghiaTranUIT on GitHub.

Description

Hey Team - my app is generating a HAR file that I try to open with your amazing application. Unfortunately I'm getting 'Invalid file. Please open the Issue in Proxyman's Github'.

I'm 99% it's me, but after looking through the HAR file spec, I cannot figure out what's wrong with the file. Any pointers to understand why Proxyman can't open the file (maybe a debug log) would be appreciated!

{
  "log": {
    "version": "1.2",
    "creator": {
      "name": "icloud-photos-sync",
      "version": "0.0.0-development"
    },
    "pages": [],
    "entries": [
      {
        "request": {
          "method": "post",
          "url": "https://idmsa.apple.com/appleauth/auth/signin",
          "httpVersion": "HTTP/1.1",
          "cookies": [],
          "headers": [
            {
              "name": "Accept",
              "value": "application/json, text/plain, */*"
            },
            {
              "name": "Content-Type"
            },
            {
              "name": "Origin",
              "value": "https://www.icloud.com"
            }
          ],
          "queryString": [
            {
              "name": "isRememberMeEnabled",
              "value": true
            }
          ],
          "headersSize": -1,
          "bodySize": 335,
          "content": {
            "size": 335,
            "mimeType": "text/html",
            "text": "{\"accountName\":\"someone@web.de\",\"password\":\"somePass\",\"trustTokens\":[\"HSARMTOKEN+SRVX\"]}"
          },
          "postData": {
            "text": "{\"accountName\":\"someone@web.de\",\"password\":\"somePass\",\"trustTokens\":[\"HSARMTOKEN+SRVX\"]}"
          }
        },
        "response": {
          "status": 200,
          "statusText": "",
          "headers": [
            {
              "name": "server",
              "value": "Apple"
            },
            {
              "name": "date",
              "value": "Mon, 18 Sep 2023 19:52:46 GMT"
            },
            {
              "name": "content-type",
              "value": "application/json;charset=UTF-8"
            },
            {
              "name": "transfer-encoding",
              "value": "chunked"
            },
            {
              "name": "connection",
              "value": "keep-alive"
            },
            {
              "name": "x-apple-i-request-id",
              "value": "effcdc2b-565c-11ee-9973-2ffdb5c64de1"
            },
            {
              "name": "x-frame-options",
              "value": "DENY"
            },
            {
              "name": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "name": "x-xss-protection",
              "value": "1; mode=block"
            },
            {
              "name": "strict-transport-security",
              "value": "max-age=31536000; includeSubDomains; preload"
            },
            {
              "name": "content-security-policy",
              "value": "default-src 'self' ; child-src blob: ; connect-src 'self' https://www.apple.com https://appleid.cdn-apple.com https://webcourier.sandbox.push.apple.com https://xp-qa.apple.com ; font-src 'self' https://www.apple.com https://appleid.cdn-apple.com https://idmsa.apple.com https://gsa.apple.com https://idmsa.apple.com.cn https://signin.apple.com ; frame-src 'self' https://appleid.apple.com https://gsa.apple.com ; img-src 'self' https://www.apple.com https://appleid.cdn-apple.com https://*.mzstatic.com data: https://*.apple.com ; media-src data: ; object-src 'none' ; script-src 'self' https://www.apple.com https://appleid.cdn-apple.com https://idmsa.apple.com https://gsa.apple.com https://idmsa.apple.com.cn https://signin.apple.com ; style-src 'unsafe-inline' 'self' https://www.apple.com https://appleid.cdn-apple.com https://idmsa.apple.com https://gsa.apple.com https://idmsa.apple.com.cn https://signin.apple.com ;"
            },
            {
              "name": "referrer-policy",
              "value": "origin"
            },
            {
              "name": "x-buildversion",
              "value": "R15_2"
            },
            {
              "name": "scnt",
              "value": "AAAA-jcwRUYxRUYyRTc2NTBDMEQ0MTJFRkJENDlFQjdBNjc0NDk0QUMyMjhCMEMyNjIyNjRBMUVGRTYxOUI5NUM5QkFEMDQ4ODlGQjREMDlCQzgzQkE0NjlEOTMyOEUyOTE2MkU0RkE1RTlBMTQ4QTdDNzVENUQ5NDFEQUJBQzYwMzVENkE2ODU0ODZDQjc1NUE0QjQ3MkM5OTM4REU0QzNENzE2MDY3MDA1OUUxMzFDMDg1MTZDQUMzOEU2NzI5MDc0MEJCQTZDMjhEQzEyNjEwREFENTFCM0YzNDBEM0RGOUM3NEJGRUI1OTk2QkE4RTcxRnwxAAABiqnn9a1vj5qZPiR2UQU_7rjxxrlvdq5DdeDMKkN6VsF22jjmNqDkRHQsna7kAAXcrpzZdx2KL-hll6v0oEy93dYj3TQNxJmsbZq1sHJw8pp7aLyYHw"
            },
            {
              "name": "set-cookie",
              "value": "[\"dslang=US-EN; Domain=apple.com; Path=/; Secure; HttpOnly\",\"site=USA; Domain=apple.com; Path=/; Secure; HttpOnly\",\"acn01=; Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:10 GMT; Domain=apple.com; Path=/; Secure; HttpOnly\",\"aasp=70EF1EF2E7650C0D412EFBD49EB7A674494AC228B0C262264A1EFE619B95C9BAD04889FB4D09BC83BA469D9328E29162E4FA5E9A148A7C75D5D941DABAC6035D6A685486CB755A4B472C9938DE4C3D7160670059E131C08516CAC38E67290740BBA6C28DC12610DAD51B3F340D3DF9C74BFEB5996BA8E71F; Domain=idmsa.apple.com; Path=/; Secure; HttpOnly\"]"
            },
            {
              "name": "pragma",
              "value": "no-cache"
            },
            {
              "name": "expires",
              "value": "Thu, 01 Jan 1970 00:00:00 GMT"
            },
            {
              "name": "cache-control",
              "value": "no-cache, no-store, no-store"
            },
            {
              "name": "x-apple-id-session-id",
              "value": "70EF1EF2E7650C0D412EFBD49EB7A674494AC228B0C262264A1EFE619B95C9BAD04889FB4D09BC83BA469D9328E29162E4FA5E9A148A7C75D5D941DABAC6035D6A685486CB755A4B472C9938DE4C3D7160670059E131C08516CAC38E67290740BBA6C28DC12610DAD51B3F340D3DF9C74BFEB5996BA8E71F"
            },
            {
              "name": "x-apple-auth-attributes",
              "value": "u5AI3ad5ioh6yMhGdqDtFJ404b3ZRd0a9bDZBPB8zOGZ4JoPBzfwIqA03LzZWFMJ87Iz2yW4o49QdDbBhG3ib3mabGUhaz/madRnXFaC2ogJTq/+RK/lqsYUmEZo5Psi273BzmFhdURdJvQyRzQWrnPikGxXD9cXq5SDloCP/lkoCC+zkyWBAAXcrqWbz/A="
            },
            {
              "name": "x-apple-session-token",
              "value": "NC4cxcC1FExehVFxwmPrwU30T++QEXvZfeVABbZTb53uRomMx+0aQy1XqvmO0YVOewy1/PSQ7KOeQ0Y4W/or1eYTIc9KvLkfuRv/8L+WiDYcnfk/s36BYUj0dsOoxwLRPkTuDI140F4zmJeneVFbe1RSbs8BIR0IYLjJGhAXs7oXRl+o1zALM3nG8TU4rVihCy1UYpeaS9CIaiU7w5G6JVoWOi0hvfDVIFV3Fd3pYGfflgOHZ6kr8Cr1OyU59cY33/LPr83MhUOWpVmRWyXYXwvzIYb7FOZiCbVJoo4R9AC1ndcSWjhmvQM2/Kf+yM6XggmizcYro/txMBERTcMmXgnWVveBs2HuEyo5w3Zo48u93KeCB3/ay+dhlcQPBAxUeSxCj5U8aVWXR6+IkqK/Yb4iZpfvGZvyFRRt7ogVAxg5/KnDma9TBFvLY8ZEA5rpWDEuYLlZeftHuICqYY0nNugUo8MKfAQyCczGxWGXf0xUoAXMiJYQjG7qDravoKmmeba1mwkW0XgZffQqWjKfLOZN0QhsANqWtFrhA5fWCSTTmpRMpJ6HCRjVd8I+B2ivnlHUnQ/K76urnppLnwQFLsCxX7xDjxP81kCKYj2M2k2yeqyYLeRl/FeALUwQtbUmj1w7RCvZ1bnMtUPXfxq3yS3ThgOUUF7Hvv8l7Gq8b7P0dBNrBLQVSEGh3PMcUZz7pzl2M5ZyZGkEmUOO9sqLql5a0gJyEXkKTIjY+cAlOWx6dmZqxiPRQvEwimnOmncI7Y+wmxgTW4SRTxdK+A2RFExapWrFSbBiDrNOEh6qOJ6L2I/oiM6GYTMr00BmmUDlOJwcVf/p5m4BmZ+hT7WFALQmcCEjVEZqr8cYDMp0wMWyNf5uIqg/U5lkekTO2PuvF/aJ/lBFYwRpJ+EwfFknZD2R+HUojPDJ4HHqByQKjPln3F+wE92gM77ZcUbslq4m52rxAAXcrqajjZs="
            },
            {
              "name": "x-apple-id-account-country",
              "value": "DEU"
            },
            {
              "name": "vary",
              "value": "accept-encoding"
            },
            {
              "name": "content-language",
              "value": "en-US-x-lvariant-USA"
            }
          ],
          "startedDateTime": "2023-09-18T19:52:46.144Z",
          "time": 13682205867,
          "httpVersion": "HTTP/1.1",
          "cookies": [],
          "bodySize": 19,
          "redirectURL": "",
          "headersSize": -1,
          "content": {
            "size": 19,
            "mimeType": "application/json;charset=UTF-8",
            "text": "{\"authType\":\"hsa2\"}"
          },
          "cache": {},
          "timings": {
            "blocked": -1,
            "dns": -1,
            "ssl": -1,
            "connect": -1,
            "send": 10,
            "wait": 10,
            "receive": 10,
            "_blocked_queueing": -1
          }
        },
        "startedDateTime": "2023-09-18T19:52:45.170Z",
        "time": -1,
        "cache": {},
        "timings": {
          "blocked": -1,
          "dns": -1,
          "ssl": -1,
          "connect": -1,
          "send": 10,
          "wait": 10,
          "receive": 10,
          "_blocked_queueing": -1
        }
      }
    ]
  }
}
Originally created by @steilerDev on GitHub (Oct 2, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1793 Originally assigned to: @NghiaTranUIT on GitHub. ## Description Hey Team - [my app](https://github.com/steilerDev/icloud-photos-sync) is generating a HAR file that I try to open with your amazing application. Unfortunately I'm getting 'Invalid file. Please open the Issue in Proxyman's Github'. I'm 99% it's me, but after looking through the HAR file spec, I cannot figure out what's wrong with the file. Any pointers to understand _why_ Proxyman can't open the file (maybe a debug log) would be appreciated! ``` { "log": { "version": "1.2", "creator": { "name": "icloud-photos-sync", "version": "0.0.0-development" }, "pages": [], "entries": [ { "request": { "method": "post", "url": "https://idmsa.apple.com/appleauth/auth/signin", "httpVersion": "HTTP/1.1", "cookies": [], "headers": [ { "name": "Accept", "value": "application/json, text/plain, */*" }, { "name": "Content-Type" }, { "name": "Origin", "value": "https://www.icloud.com" } ], "queryString": [ { "name": "isRememberMeEnabled", "value": true } ], "headersSize": -1, "bodySize": 335, "content": { "size": 335, "mimeType": "text/html", "text": "{\"accountName\":\"someone@web.de\",\"password\":\"somePass\",\"trustTokens\":[\"HSARMTOKEN+SRVX\"]}" }, "postData": { "text": "{\"accountName\":\"someone@web.de\",\"password\":\"somePass\",\"trustTokens\":[\"HSARMTOKEN+SRVX\"]}" } }, "response": { "status": 200, "statusText": "", "headers": [ { "name": "server", "value": "Apple" }, { "name": "date", "value": "Mon, 18 Sep 2023 19:52:46 GMT" }, { "name": "content-type", "value": "application/json;charset=UTF-8" }, { "name": "transfer-encoding", "value": "chunked" }, { "name": "connection", "value": "keep-alive" }, { "name": "x-apple-i-request-id", "value": "effcdc2b-565c-11ee-9973-2ffdb5c64de1" }, { "name": "x-frame-options", "value": "DENY" }, { "name": "x-content-type-options", "value": "nosniff" }, { "name": "x-xss-protection", "value": "1; mode=block" }, { "name": "strict-transport-security", "value": "max-age=31536000; includeSubDomains; preload" }, { "name": "content-security-policy", "value": "default-src 'self' ; child-src blob: ; connect-src 'self' https://www.apple.com https://appleid.cdn-apple.com https://webcourier.sandbox.push.apple.com https://xp-qa.apple.com ; font-src 'self' https://www.apple.com https://appleid.cdn-apple.com https://idmsa.apple.com https://gsa.apple.com https://idmsa.apple.com.cn https://signin.apple.com ; frame-src 'self' https://appleid.apple.com https://gsa.apple.com ; img-src 'self' https://www.apple.com https://appleid.cdn-apple.com https://*.mzstatic.com data: https://*.apple.com ; media-src data: ; object-src 'none' ; script-src 'self' https://www.apple.com https://appleid.cdn-apple.com https://idmsa.apple.com https://gsa.apple.com https://idmsa.apple.com.cn https://signin.apple.com ; style-src 'unsafe-inline' 'self' https://www.apple.com https://appleid.cdn-apple.com https://idmsa.apple.com https://gsa.apple.com https://idmsa.apple.com.cn https://signin.apple.com ;" }, { "name": "referrer-policy", "value": "origin" }, { "name": "x-buildversion", "value": "R15_2" }, { "name": "scnt", "value": "AAAA-jcwRUYxRUYyRTc2NTBDMEQ0MTJFRkJENDlFQjdBNjc0NDk0QUMyMjhCMEMyNjIyNjRBMUVGRTYxOUI5NUM5QkFEMDQ4ODlGQjREMDlCQzgzQkE0NjlEOTMyOEUyOTE2MkU0RkE1RTlBMTQ4QTdDNzVENUQ5NDFEQUJBQzYwMzVENkE2ODU0ODZDQjc1NUE0QjQ3MkM5OTM4REU0QzNENzE2MDY3MDA1OUUxMzFDMDg1MTZDQUMzOEU2NzI5MDc0MEJCQTZDMjhEQzEyNjEwREFENTFCM0YzNDBEM0RGOUM3NEJGRUI1OTk2QkE4RTcxRnwxAAABiqnn9a1vj5qZPiR2UQU_7rjxxrlvdq5DdeDMKkN6VsF22jjmNqDkRHQsna7kAAXcrpzZdx2KL-hll6v0oEy93dYj3TQNxJmsbZq1sHJw8pp7aLyYHw" }, { "name": "set-cookie", "value": "[\"dslang=US-EN; Domain=apple.com; Path=/; Secure; HttpOnly\",\"site=USA; Domain=apple.com; Path=/; Secure; HttpOnly\",\"acn01=; Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:10 GMT; Domain=apple.com; Path=/; Secure; HttpOnly\",\"aasp=70EF1EF2E7650C0D412EFBD49EB7A674494AC228B0C262264A1EFE619B95C9BAD04889FB4D09BC83BA469D9328E29162E4FA5E9A148A7C75D5D941DABAC6035D6A685486CB755A4B472C9938DE4C3D7160670059E131C08516CAC38E67290740BBA6C28DC12610DAD51B3F340D3DF9C74BFEB5996BA8E71F; Domain=idmsa.apple.com; Path=/; Secure; HttpOnly\"]" }, { "name": "pragma", "value": "no-cache" }, { "name": "expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "name": "cache-control", "value": "no-cache, no-store, no-store" }, { "name": "x-apple-id-session-id", "value": "70EF1EF2E7650C0D412EFBD49EB7A674494AC228B0C262264A1EFE619B95C9BAD04889FB4D09BC83BA469D9328E29162E4FA5E9A148A7C75D5D941DABAC6035D6A685486CB755A4B472C9938DE4C3D7160670059E131C08516CAC38E67290740BBA6C28DC12610DAD51B3F340D3DF9C74BFEB5996BA8E71F" }, { "name": "x-apple-auth-attributes", "value": "u5AI3ad5ioh6yMhGdqDtFJ404b3ZRd0a9bDZBPB8zOGZ4JoPBzfwIqA03LzZWFMJ87Iz2yW4o49QdDbBhG3ib3mabGUhaz/madRnXFaC2ogJTq/+RK/lqsYUmEZo5Psi273B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": "x-apple-id-account-country", "value": "DEU" }, { "name": "vary", "value": "accept-encoding" }, { "name": "content-language", "value": "en-US-x-lvariant-USA" } ], "startedDateTime": "2023-09-18T19:52:46.144Z", "time": 13682205867, "httpVersion": "HTTP/1.1", "cookies": [], "bodySize": 19, "redirectURL": "", "headersSize": -1, "content": { "size": 19, "mimeType": "application/json;charset=UTF-8", "text": "{\"authType\":\"hsa2\"}" }, "cache": {}, "timings": { "blocked": -1, "dns": -1, "ssl": -1, "connect": -1, "send": 10, "wait": 10, "receive": 10, "_blocked_queueing": -1 } }, "startedDateTime": "2023-09-18T19:52:45.170Z", "time": -1, "cache": {}, "timings": { "blocked": -1, "dns": -1, "ssl": -1, "connect": -1, "send": 10, "wait": 10, "receive": 10, "_blocked_queueing": -1 } } ] } } ```
kerem 2026-03-03 19:54:23 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (Oct 2, 2023):

Let me check 💻

<!-- gh-comment-id:1743192488 --> @NghiaTranUIT commented on GitHub (Oct 2, 2023): Let me check 💻
Author
Owner

@NghiaTranUIT commented on GitHub (Oct 2, 2023):

"queryString": [
            {
              "name": "isRememberMeEnabled",
              "value": true
            }
          ],

It should be

"queryString": [
            {
              "name": "isRememberMeEnabled",
              "value": "true"
            }
          ],
<!-- gh-comment-id:1743208910 --> @NghiaTranUIT commented on GitHub (Oct 2, 2023): ``` "queryString": [ { "name": "isRememberMeEnabled", "value": true } ], ``` It should be ``` "queryString": [ { "name": "isRememberMeEnabled", "value": "true" } ], ```
Author
Owner

@NghiaTranUIT commented on GitHub (Oct 2, 2023):

Look like I found a bug. queryString doesn't take into account, so the URL doesn't have any Query.

<!-- gh-comment-id:1743209874 --> @NghiaTranUIT commented on GitHub (Oct 2, 2023): Look like I found a bug. `queryString` doesn't take into account, so the URL doesn't have any Query.
Author
Owner

@steilerDev commented on GitHub (Oct 2, 2023):

So queryString.value should always be a string (instead of a pure boolean/number?)

<!-- gh-comment-id:1743219372 --> @steilerDev commented on GitHub (Oct 2, 2023): So `queryString.value` should always be a string (instead of a pure boolean/number?)
Author
Owner

@NghiaTranUIT commented on GitHub (Oct 2, 2023):

Yes, it should be a string. You can export a HAR from Google Dev Tool, all value is string, even though it's a number.

<!-- gh-comment-id:1743220933 --> @NghiaTranUIT commented on GitHub (Oct 2, 2023): Yes, it should be a string. You can export a HAR from Google Dev Tool, all value is string, even though it's a number.
Author
Owner

@NghiaTranUIT commented on GitHub (Oct 2, 2023):

You can try this Beta build: https://download.proxyman.io/beta/Proxyman_4.12.0_Fix_queryString_from_HAR_file.dmg

It hot-fix the QueryString issue -> It will show the correct URL 👍
However, the QueryString Key&Value must be a string.

CleanShot 2023-10-02 at 22 37 06@2x

<!-- gh-comment-id:1743252315 --> @NghiaTranUIT commented on GitHub (Oct 2, 2023): You can try this Beta build: https://download.proxyman.io/beta/Proxyman_4.12.0_Fix_queryString_from_HAR_file.dmg It hot-fix the QueryString issue -> It will show the correct URL 👍 However, the QueryString Key&Value must be a string. ![CleanShot 2023-10-02 at 22 37 06@2x](https://github.com/ProxymanApp/Proxyman/assets/5878421/91a7be53-b37f-4c2b-bf0b-fe31956c24e6)
Author
Owner

@steilerDev commented on GitHub (Oct 2, 2023):

Thank you for the quick support 👍👏

<!-- gh-comment-id:1743599481 --> @steilerDev commented on GitHub (Oct 2, 2023): Thank you for the quick support 👍👏
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1786
No description provided.