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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

631 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot