Skip to content

Debug API Not working - Cannot read properties of undefined #319

Closed
@jayendranarumugam

Description

@jayendranarumugam

Does this occur consistently?
Repro steps:

  1. Trying to Debug the API

APIM Details:
Developer Tier
Platform Version: stv2
Region: EAST US 2
Network: Internal VNET
apiVersionConstraint.minApiVersion : 2019-12-01

Action: azureApiManagement.debugPolicy
Error type: TypeError
Error Message: Cannot read properties of undefined (reading 'primaryKey')

Version: 1.0.6
OS: darwin
OS Release: 22.5.0
Product: Visual Studio Code
Product Version: 1.80.1
Language: en

Call Stack
extension.bundle.js:479:71081
OperationConsole.<anonymous> extension.bundle.js:479:71044
fulfilled extension.bundle.js:479:68637

Activity

zakariazafar

zakariazafar commented on Jul 25, 2023

@zakariazafar

any update on this issue?

jayendranarumugam

jayendranarumugam commented on Aug 10, 2023

@jayendranarumugam
Author

After some investigation, it seems this issue is happening only if the management api is 2019-12-01 . If i change this to null the issue is not happening. But the problem of this workaround will be security reason from ms

Microsoft recommends to make this to value not null and keep it 2019-12-01 or higher The reason for this would be
To prevent service secrets from being shared with read-only users, the minimum API version should be set to 2019-12-01 or higher.

So i think we should not start practising the workaround by making the api version to null and fix the extension code to support the version 2019-12-01 and above

jayendranarumugam

jayendranarumugam commented on Sep 5, 2023

@jayendranarumugam
Author

@DeagleGross / @malincrist / @quanterion thanks for fixing the issue. Is this part of any new release ? Is there a place we can check the changelog or release doc ?

malincrist

malincrist commented on Sep 8, 2023

@malincrist
Member

Hello @jayendranarumugam , the fix will come with a new release. You can track GitHub releases or the changelog from the VSCode extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @zakariazafar@jayendranarumugam@malincrist

      Issue actions

        Debug API Not working - Cannot read properties of undefined · Issue #319 · microsoft/vscode-apimanagement