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

The issue of ineffective post agent payload. #3363

Open
muserole opened this issue Mar 13, 2024 · 1 comment
Open

The issue of ineffective post agent payload. #3363

muserole opened this issue Mar 13, 2024 · 1 comment

Comments

@muserole
Copy link

I encountered an issue while using Post Agent. The same payload works fine when I use the Python request module, but it throws an error when I use Post Agent."

`
"loader": {

  "reducers": {
    "group_aggregation:date:": {
      "type": "aggregation",
      "filter": {
        "operator": "and",
        "filters": [
          {
            "property": "NX\\Q",
            "filter": {
              "value": {
                "type": "exact",
                "value": {
                  "type": "daterange",
                  "start_date": "2023-10-12",
                  "end_date": "2023-10-12"
                }
              }
            }
          }
        ]
      },
      "aggregation": {
        "aggregator": "count"
      }
    },
    "results:date:": {
      "type": "results",
      "filter": {
        "operator": "and",
        "filters": [
          {
            "property": "NX\\Q",
            "filter": {
              "operator": "date_is_within",
              "value": {
                "type": "exact",
                "value": {
                  "type": "daterange",
                  "start_date": "2023-10-12",
                  "end_date": "2023-10-12"
                }
              }
            }
          }
        ]
      }`
@muserole
Copy link
Author

{
  "post_url": "https://ocmacro.com/api/v3/queryCollection?src=change_group",
  "expected_receive_period_in_days": "1",
  "content_type": "json",
  "method": "post",
  "payload": {
    "collectionView": {
      "id": "29088bba-6e3b-42e2-999e-d5a29d229ddc",
      "spaceId": "6c376e85-26f0-4147-a310-0844cfbf4875"
    },
    "source": {
      "type": "collection",
      "id": "1f3820ad-e292-40a5-99d0-32b6a50a656a",
      "spaceId": "6c376e85-26f0-4147-a310-0844cfbf4875"
    },
    "loader": {
      "reducers": {
        "group_aggregation:date:": {
          "type": "aggregation",
          "filter": {
            "operator": "and",
            "filters": [
              {
                "property": "NX\\Q",
                "filter": {
                  "value": {
                    "type": "exact",
                    "value": {
                      "type": "daterange",
                      "start_date": "2023-10-12",
                      "end_date": "2023-10-12"
                    }
                  }
                }
              }
            ]
          },
          "aggregation": {
            "aggregator": "count"
          }
        },
        "results:date:": {
          "type": "results",
          "filter": {
            "operator": "and",
            "filters": [
              {
                "property": "NX\\Q",
                "filter": {
                  "operator": "date_is_within",
                  "value": {
                    "type": "exact",
                    "value": {
                      "type": "daterange",
                      "start_date": "2023-10-12",
                      "end_date": "2023-10-12"
                    }
                  }
                }
              }
            ]
          },
          "limit": 25
        }
      }
    }
  },
  "headers": {
    "Accept": "*/*",
    "Accept-Encoding": "gzip, deflate, br, zstd",
    "Accept-Language": "zh-CN,zh-TW;q=0.9,zh;q=0.8",
    "Content-Length": "8613",
    "Content-Type": "application/json",
    "Notion-Audit-Log-Platform": "web",
    "Notion-Client-Version": "23.13.0.128",
    "Origin": "https://ocmacro.com",
    "Referer": "https://ocmacro.com/trusting-glitter-4f0/dc35b34d89694811b24317d9414a4a21?v=29088bba6e3b42e2999ed5a29d229ddc",
    "Sec-Ch-Ua": "\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\"",
    "Sec-Ch-Ua-Mobile": "?0",
    "Sec-Ch-Ua-Platform": "Windows",
    "Sec-Fetch-Dest": "empty",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Site": "same-origin",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
    "X-Notion-Active-User-Header": ""
  },
  "emit_events": "true",
  "parse_body": "true",
  "no_merge": "true",
  "output_mode": "clean"
}

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