While uploading a plugin via UPM, it returns the "Cannot read property 'replace' of undefined "

I am trying to add the "Workzone" plugin to my STASH instance, it returns 500 server error :


Failed to load resource: the server responded with a status of 500 (Internal Server Error)
com.atlassian.upm.atlassian-universal-plugin-manager-plugin:upm-web-resources.js:3474 Uncaught TypeError: Cannot read property 'replace' of undefined


How to resolve this error ?

1 answer

0 votes
Ben Woskow Atlassian Team Oct 26, 2015

Hi Harish,

Please update to the latest compatible UPM version and see if the error occurs. If it does, can you file a bug for us in the UPM project?

At the moment, the latest available UPM version is 2.20.3 however the latest compatible version may be an earlier one depending on your version of Bitbucket Server (formerly "Stash"). See a list of all UPM versions here.


Hi Ben, Upgraded the UPM and tried, but the error seems to recur. Is there a way i can manually install this plugin without the help of the UPM?

Ben Woskow Atlassian Team Oct 27, 2015

Possibly. It depends on when and why the error occurs. You can try clicking on the add-on's "Marketplace listing" link and then downloading the artifact there, and then uploading the artifact using UPM's "Upload add-on" link. However, I'd still like to determine the root cause so that we can fix this for you and other customers. Can you file a UPM bug? Given that the server returns a 500 error I'm expecting that there is a stacktrace that will give us some useful information. Also, to what UPM version did you update?

Hi Ben, Could you direct me on how to file that bug report? also i am skeptical if that would work since my corporate network blocks uploads/access to a few external sites.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,906 views 7 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you