Skip to content

Start-V2025SodPolicy fails with MethodNotAllowed #139

@dab894

Description

@dab894

Describe the bug A clear and concise description of what the bug is.

Start-V2025SodPolicy fails with MethodNotAllowed

To Reproduce Steps to reproduce the behavior:

PS C:\temp> $report=Start-V2025SodPolicy $sod.id -verbose -debug -WithHttpInfo
DEBUG: Calling method: Start-V2025SodPolicy
DEBUG: Parameter Value
DEBUG: --------- -----
DEBUG: WithHttpInfo True
DEBUG: Id *****
DEBUG: Calling method: Invoke-V2025ApiClient
DEBUG: Parameter Value
DEBUG: --------- -----
DEBUG: Method POST
DEBUG: Uri /sod-policies//violation-report/run
DEBUG: Accepts application/json
DEBUG: ContentTypes
DEBUG: Body
DEBUG: HeaderParameters {}
DEBUG: QueryParameters {}
DEBUG: FormParameters {}
DEBUG: CookieParameters {}
DEBUG: ReturnType ReportResultReference
DEBUG: IsBodyNullable False
DEBUG: Calling Endpoint: https://****.api.identitynow.com/v2025/sod-policies/
/violation-report/run
VERBOSE: Request Headers:
Name Value


X-SailPoint-SDK Powershell-1.6.4
User-Agent OpenAPI-Generator/1.6.4/ps
Authorization Bearer *****
Accept application/json

VERBOSE: Request Body:
VERBOSE: Requested HTTP/1.1 POST with 0-byte payload
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Received HTTP/1.1 146-byte response of content type application/json
Invoke-WebRequest: C:*****\Documents\PowerShell\Modules\PSSailpoint.V2025\1.6.4\Private\V2025ApiClient.ps1:194
Line |
194 | $Response = Invoke-WebRequest -Uri $UriBuilder.Uri `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| { "errorName": "NotSupportedException", "errorMessage": "RESTEASY003065: Cannot consume content type",
| "trackingId": "666e5a79e16b44cda1a683d117cfe2db" }

Expected behavior A clear and concise description of what you expected to
happen.

It should start the report. It works through the API.

Actual behavior A clear and concise description of what actually happens.

VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Retrying after interval of 5 seconds. Status code for previous attempt: MethodNotAllowed
VERBOSE: Received HTTP/1.1 146-byte response of content type application/json
Invoke-WebRequest: C:<redacted>\Documents\PowerShell\Modules\PSSailpoint.V2025\1.6.4\Private\V2025ApiClient.ps1:194
Line |
194 | $Response = Invoke-WebRequest -Uri $UriBuilder.Uri `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| { "errorName": "NotSupportedException", "errorMessage": "RESTEASY003065: Cannot consume content type",
| "trackingId": "666e5a79e16b44cda1a683d117cfe2db" }

Additional context Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions