GHProjectCard return null on getContent()
See original GitHub issueDescribe the bug I need a issue list from a project column. The implementation is in a jenkins shared library. It’s easy to use. Unfortunately I get an error. See this Code. github-api is included as a dependency with version 1.122
To Reproduce
import ....
final GitHub github = GitHub.connectToEnterpriseWithOAuth('https://github.enterprise.com/api/v3', null, 'usertoken123')
final GHProjectColumn projectColumn = github.getProjectColumn(12345)
projectColumn.listCards().each { projectCard ->
echo """
ProjectCard: ${projectCard}
ContentUrl: ${projectCard.getContentUrl()}
Content: ${projectCard.getContent()}
"""
GHIssue issue = projectCard.getContent()
// issue must not be null
}
Expected behavior
projectCard.getContent()
return the existing issue object or a helpful error message.
Desktop (please complete the following information):
- OS: unimportant
- Browser unimportant
- Version 1.122
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
imap getContent() returns null - Oracle Communities
I am able to read the Message meta data. But not the mail body. If i use getContent() it gives nullPointerException. Any idea...
Read more >URLConnection getContent() return null - Stack Overflow
I had a similar problem: While InputStream stream = (InputStream) url.getContent() works well on Android 4+, Android 2.2 did return null ...
Read more >is this Bug in getContent() PageReference function?
Here, I getEmpty PDF file, since the Query in MyVFPDF page's extention class' contructor is returning Null value, i.e. No Record, but same...
Read more >Urlconnection Getcontent() Return Null With Code Solution
The getErrorStream() is the method of HttpURLConnection class. This method is used to get an error stream if the connection is disconnected. How...
Read more >DownloadHandlerAssetBundle.GetContent returns null for ...
I don't understand the comment about avoiding caching. If you don't want the caching, don't pass the extra arguments to GetAssetBundle(), only ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@km2018 I’ll see if I can find time to create an example for you later today.
@km2018 Invitation sent.