Unable to retrieve addon module URL

Hello.

I’m developing app with connect and I have a problem on my stage server.
I have a code that looks like this:

            <aui-item-link class="edit" href="#" data-id="{{id}}">Edit</aui-item-link>
            <aui-item-link class="review" href="#" data-id="{{id}}">Review</aui-item-link>
AJS.$(".edit").click(function(e) {
    e.preventDefault();
    let id = this.getAttribute('data-id');
    AP.require('dialog', function(dialog){
        dialog.create({
            key: 'item-edit',
            customData: { id: id }
        });
    });
});

AJS.$(".review").click(function(e) {
    e.preventDefault();
    let id = this.getAttribute('data-id');
    AP.require('dialog', function(dialog){
        dialog.create({
            key: 'item-review',
            customData: { id: id }
        });
    });
});
    app.get('/item/:id/edit', addon.authenticate(), controller.edit);

    app.get('/item/:id/review', addon.authenticate(), controller.review);
{
        "url": "/item/{ac.id}/edit",
        "options": {
          "chrome": false,
          "size": "x-large",
          "header": {
            "value": "Edit"
          }
        },
        "key": "item-edit",
        "conditions": [
          {
            "or": [
              {
                "condition": "user_is_sysadmin"
              },
              {
                "condition": "user_is_admin"
              }
            ]
          }
        ]
      },
      {
        "url": "/item/{ac.id}/review",
        "options": {
          "chrome": false,
          "size": "x-large",
          "header": {
            "value": "Review"
          }
        },
        "key": "item-review",
        "conditions": [
          {
            "or": [
              {
                "condition": "user_is_sysadmin"
              },
              {
                "condition": "user_is_admin"
              }
            ]
          }
        ]
      }

On my development instance it works properly. The edit action has the same code and works properly everywhere, but when I try to do review action on my stage server I get an error:

Error: The content resolver threw the following error:

Unable to retrieve addon module URL. Please check your specified module key.

I’ve looked into possible solution but nothing helped so far. Anyone had this issue?

Hi @DariuszLenart,

Can you explain the steps that lead up to the error you are observing.

Regards,
Dugald

Hello @dmorrow

Well there’s not much more to explain. I have been developing plugin locally and everything worked. I have deployed the addon on the server and installed in on another jira instance from that server and this error shows when I try to use the review link. Redeploying, reinstalling and similiar things don’t solve this.

Also, this works when installed on different jira instances. This error shows only on one instance that I have tested it so far.