Azure/azure-sdk-for-python

Code: BadRequest Message: The JSON provided in the request body is invalid. Property 'sizeWindow' value is not convertible to type 'System.Int32'.

jp250739 opened this issue · 5 comments

  • azure-mgmt-streamanalytics:
  • Version: 1.0.0:
  • Window 10:
  • Python 3.11.8:

Describe the bug
A clear and concise description of what the bug is.
during creation of stream analytics jobs via sdk

To Reproduce
Steps to reproduce the behavior:

  1. script is attached to reproduce issue.

Expected behavior
A clear and concise description of what you expected to happen.
new stream analytics jobs need to be created and run via script.
ASAJobCreation.txt

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Hi @jp250739 This bug should has been fixed with azure-mgmt-streamanalytics==2.0.0b2, please use that version and try.

Hi @ChenxiJiang333 now i am getting below error.
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
azure.core.exceptions.HttpResponseError: (422) The required property 'timeWindow' is missing from the request.
Code: 422
Message: The required property 'timeWindow' is missing from the request

Hi @ChenxiJiang333 now i am getting below error. raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) azure.core.exceptions.HttpResponseError: (422) The required property 'timeWindow' is missing from the request. Code: 422 Message: The required property 'timeWindow' is missing from the request

Hi, have you changed the request content after that? I used the script you provided and it worked well.
image

Hi @ChenxiJiang333 i noted this as well. this created job and configured input and output. checking further.

As far i have checked. azure-mgmt-streamanalytics==2.0.0b2 worked for me. thanks