Probot app + trying to move project cards results in error

Hi! I am writing a Probot app (based on the v3 REST API) that moves a card between columns in a project board based on the label.

I have been able to identify which card and column and have packed that into a parameters key value array. Here is my source:

const targetCard = allCards.filter(card => card.content_url.endsWith(‘issues/’+payload.issue.number));
if( targetCard.length == 1){
var repoMoveCardsParams = context.repo({card_id: targetCard[0].id , column_id:2805807});
var myResult = await github.projects.moveProjectCard(repoMoveCardsParams);


However when this fires off, I get the following:

08:10:47.463Z INFO probot: repoMoveCardsParams
08:10:47.463Z INFO probot: (owner=affrae, repo=probot-testing, card_id=10200984, column_id=2805807)
08:10:47.464Z ERROR event: Empty value for parameter ‘id’: undefined (id=187ca540-64aa-11e8-8541-74a294c6765a)
HttpError: Empty value for parameter ‘id’: undefined
at Object.keys.forEach.parameterName (/Users/dfigucio/
at Array.forEach (<anonymous>)
at validate (/Users/dfigucio/
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)

event: {
“id”: “187ca540-64aa-11e8-8541-74a294c6765a”,
“event”: “issues.labeled”,
“repository”: “affrae/probot-testing”,
“installation”: 177616

The id matches the event id I am receiving the webhook for, and I have been able to interact with the github already via context.github in this robot.on call, such as removing other labels, etc.

Is there something I am missing?

Thanks in aadvance,


Based solely on that error message, it seems the API is expecting an ID parameter that isn’t being supplied here?