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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.