Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Invoke-WebRequest error Parameter LandingPage is not be null Parameter loginPageId is not valid

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
powershell
領域
api, security

調査の方向性

AST Write Batch PS5.ps1 を見つけ、https://graph.microsoft.com/beta/security/attacksimulation/simulations に送信されるリクエストを追跡し、$requestBody が landingPage と loginPage の値をどのように提供しているかに注目します。そのリクエストを現在の Attack Simulation Training API の要件と比較し、検証エラーを再現します。Done では、原因を特定し、適切なスクリプトの変更またはユーザー向けガイダンスを確立する必要があります。

索引モデルが issue の本文から書いたものです。

説明

Hi, I have been using "AST Write Batch PS5.ps1" successfully, however it is throwing following error now.

image

PS C:\Users\administrator.CORE> $response = Invoke-WebRequest https://graph.microsoft.com/beta/security/attacksimulation/simulations -Method 'POST' -Headers $headerParams -Body $requestBody -TimeoutSec 120 Invoke-WebRequest: {"error":{"code":"UnknownError","message":"{\"Code\":400,\"Message\":\"Bad request\",\"Target\":null,\"Details\":[{\"Code\":400,\"Message\":\"Parameter LandingPage is not be null\",\"Target\":null,\"Details\":null,\"InnerError\":null},{\"Code\":400,\"Message\":\"Parameter landingPageId is not valid\",\"Target\":null,\"Details\":null,\"InnerError\":null},{\"Code\":400,\"Message\":\"Parameter LoginPage is not be null\",\"Target\":null,\"Details\":null,\"InnerError\":null},{\"Code\":400,\"Message\":\"Parameter loginPageId is not valid\",\"Target\":null,\"Details\":null,\"InnerError\":null}],\"InnerError\":null}","innerError":{"date":"2024-09-10T13:10:19","request-id":"af2c126b-b226-4ac4-8d30-152cf1e39c40","client-request-id":"af2c126b-b226-4ac4-8d30-152cf1e39c40"}}} PS C:\Users\administrator.CORE>

Any help on this would be much appreciated, thank you.

主要言語
PowerShell
スター
16
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/attacksimulationandtraining のほかの issue

microsoft/attacksimulationandtraining の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。