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

Cannot create or update property/namedvalues for api management #3916

Closed
annaji-msft opened this issue Jun 18, 2019 · 5 comments
Closed

Cannot create or update property/namedvalues for api management #3916

annaji-msft opened this issue Jun 18, 2019 · 5 comments
Labels
API Management Mgmt This issue is related to a management-plane library.

Comments

@annaji-msft
Copy link
Member

  • Package Name: azure-arm-apimanagement
  • Package Version: ^5.1.0
  • Operating system: Window
  • [x ] nodejs
    • version: 6.8.0

Describe the bug
trying to create property/namedvalue throws,

Error "mapper.constraints[constraintType].split is not a function" occurred in serializing the payload - {
"displayName": "foo",
"value": "bar",
"secret": true
}.

To Reproduce
Steps to reproduce the behavior:

  1. create a property/namedvalue using with payload
    {
    "displayName": "foo",
    "value": "bar",
    "secret": true
    }.

Expected behavior
Same as portal behavior. Should create a property/namedvalue

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

Additional context
this is what seems to cause it
https://github.com/Azure/azure-sdk-for-node/blob/e1887b81ee4f1b0d540d6b63c84c542829036edd/lib/services/apimanagement/lib/models/propertyContract.js#L104

at line
https://github.com/Azure/azure-sdk-for-node/blob/master/runtime/ms-rest/lib/serialization.js#L160

@annaji-msft
Copy link
Member Author

looks very similar to #3718

@solankisamir
Copy link
Member

@amarzavery this looks like bug in sdk

@amarzavery
Copy link
Contributor

@anganti - What is the name of the operation that you are trying to use?

@annaji-msft
Copy link
Member Author

@anganti - What is the name of the operation that you are trying to use?

client.property.createOrUpdate

https://github.com/microsoft/vscode-apimanagement/blob/ec192c24cf6d40129bee6ca9e121a47b24eaeae8/src/explorer/NamedValuesTreeItem.ts#L61

@praries880 praries880 added API Management Mgmt This issue is related to a management-plane library. labels Jun 19, 2019
@kpajdzik
Copy link
Contributor

Fixed in 2.5.1 - https://www.npmjs.com/package/ms-rest/v/2.5.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Management Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

No branches or pull requests

5 participants