question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Subscriptions are not correctly listed under the profile

See original GitHub issue

Bug description

If you create new APIM instance and subscribe to product you cannot see subscription listed under profile.

Reproduction steps

  1. Go to Azure Portal and create new API Management instance e.g. ‘worldsbestapim’
  2. Publish new Developer portal
  3. Sign up with new user using the newly published developer portal
  4. Navigate to ‘/products’ and subscribe product
  5. Navigate to ‘/profile’ page and you cannot see your new subscription

Expected behavior

Expected to see list of subscriptions. (Note: These seem to be listed okay in old developer portal).

Is your portal managed or self-hosted?

Managed

Release tag or commit SHA (if using self-hosted version)

N/A

API Management service name

worldsbestapim

Environment

  • Operating system: Windows
  • Browser: Google Chrome, Edge

Additional context

Browser console shows following error for theme.js:

Uncaught (in promise) TypeError: Cannot read property 'displayName' of undefined
    at new exports.Product (theme.js:2)
    at theme.js:2
    at Array.map (<anonymous>)
    at exports.ProductService.<anonymous> (theme.js:2)
    at Generator.next (<anonymous>)
    at fulfilled (theme.js:2)

Code at line 32675 fails since contract.properties is undefined:

, function(module, exports, __webpack_require__) {
    "use strict";
    Object.defineProperty(exports, "__esModule", {
        value: !0
    });
    const utils_1 = __webpack_require__(5);
    exports.Product = class {
        constructor(contract) {
            this.id = utils_1.Utils.getResourceName("products", contract.id, "shortId"),
            this.name = contract.name,
            this.displayName = contract.properties.displayName,
            this.description = contract.properties.description,
            this.approvalRequired = contract.properties.approvalRequired,
            this.state = contract.properties.state,
            this.subscriptionRequired = contract.properties.subscriptionRequired,
            this.subscriptionsLimit = contract.properties.subscriptionsLimit,
            this.terms = contract.properties.terms
        }
    }
}

image

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mploksvenningsencommented, Jun 3, 2020

I did, multiple times. I guess third time’s the charm because it appears now. Thanks @JanneMattila

1reaction
azaslonovcommented, May 22, 2020

Most of the regions should be updated this week, the rest of them by the end of next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question about subscription in user profile settings
We have turned it back off again yesterday but it may mean notifications, subscriptions may not work correctly until we get Elastic search...
Read more >
Subscription Manager Always Shows "Not Subscribed"
It seems your system is correctly using your subscription. Try this command to be sure: Raw. subscription-manager list --consumed. You can also ...
Read more >
Fix problems with subscriptions - Android - Google Play Help
Find missing subscriptions If you can't find your subscriptions, check that you're signed in to the correct account. Make sure to sign in...
Read more >
How to restore your purchase, or transfer your subscription
Those subscriptions might not be reflected correctly if you have multiple profiles, or are logged into the incorrect Apple ID/Google Play account.
Read more >
Profile Subscriptions
The Profile Subscription screen displays a list of the OCIS systems to which the current profile subscribes. The following information is provided on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found