Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

You're trying to access fields (repo.full_name and repo.links.commits.href) that don't exist in the

Roshan Bhagat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 30, 2025

I'm getting "Repository full name: undefined" displayed on my app, and when I look at the browser console, I see errors saying it cannot read properties of undefined. The issue is that when I call the fetchRepository resolver to get repository data from the Bitbucket API, the response doesn't have the fields I'm trying to access. Specifically, I'm trying to display repo.full_name, but that field doesn't exist in the response, so it shows as undefined. Even worse, when my code tries to access repo.links.commits.href to fetch the commits, it crashes because either the links object doesn't exist or the commits property isn't there. I'm not sure what field names the Bitbucket API is actually returning, so I don't know what to use instead of full_name or links.commits. This mismatch between what I'm expecting from the API and what it's actually sending is causing my app to break and display nothing useful to the user.

1 answer

0 votes
Aron Gombas _Midori_
Community Champion
December 1, 2025

If you check out the REST API specification, it will show you what fields and field names to expect in the response.

Considering that you have problem with multiple fields, isn't this possible that the problem is not with individual fields, but your "repo" object is undefined?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events