Can't launch jobs in debug mode

I cannot understand why I am refused access to the debug mode.

curl -s -X POST -H "Content-Type: application/json" -H "Travis-API-Version: 3"  -H "Authorization: token **************" -H "Accept: application/json" https://api.travis-ci.com/job/409019778/restart

–> works, answer is:

{
  "@type": "pending",
  "job": {
    "@type": "job",
    "@href": "/job/409019778",
    "@representation": "minimal",
    "id": 409019778
  },
  "state_change": "restart",
  "resource_type": "job"
}
curl -s -X POST -H "Content-Type: application/json" -H "Travis-API-Version: 3"  -H "Authorization: token *********************" -H "Accept: application/json" https://api.travis-ci.com/job/409019778/debug

–> fails, answer is:

{
  "@type": "error",
  "error_type": "wrong_credentials",
  "error_message": "access denied"
}

How can my credentials be fine for relaunching a job but not enough to launch a debug?

Because this job

belongs to a public repository, for which the debug feature has not been enabled.

I have now enabled the feature for you, so it will work.

But this particular job is a Windows job, so debugging jobs do not work. (This is noted in the documentation.)

1 Like

Thank you @BanzaiMan!
The same build have OSX jobs failing similarly, so I’ll debug those. I confirm jobs can now get launched and I can connect.

1 Like
Imprint