question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Edit Issue Not Available With Integration

See original GitHub issue

Bug Report

Current Behavior Hello there - I’m like 90% of the way there to having an awesome experience with Probot, but am somewhat confused with why my call to context.github.issues.edit() is resulting in ERROR event: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/issues/#edit-an-issue"}

To be honest, I’m not really sure this is an issue with probot, but I don’t really know where else to turn.

I basically copied and pasted the code from here: https://github.com/probot/attachments/blob/master/index.js#L7

  // Your code here
module.exports = robot => {
 app.on('issues.opened', async context => {
    let params = context.issue({body: "any content here"})
      return context.github.issues.edit(params)
 }
}

When looking up the documentation, it does that that editing an issue is allowed, so i’m not sure what’s wrong with my code, or if this is a github infrastructure issue, or if it’s a bug somewhere else (which seems unlikely).

Expected behavior/code should get a 200 response,

Environment

  • Probot version(s): [e.g. v7.2]
  • Node/npm version: [e.g. Node 8/npm 5]
  • OS: [e.g. OSX 10.13.4, Windows 10]

Possible Solution

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hiimbexcommented, Nov 19, 2018

Ah, thanks @JasonEtco. This should be solved via: https://github.com/probot/create-probot-app/pull/41, I’ll release a new version of create-probot-app shortly.

1reaction
JasonEtcocommented, Nov 19, 2018

I was experiencing a similar issue yesterday, helping @matchai debug a Probot App. We ended up having to enable Repository metadata: read - definitely feels buggy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Aha! Roadmaps | Integration configuration errors
You need to edit an issue that already exists. Click Issues and filters, then click All issues. To limit your search to issues...
Read more >
Jira and Jira Align Integration: Jira Issue Field Best Practices
1. Navigate to a project that will be integrated · 2. Click Project Settings and then Screens · 3. Select the Screen listed...
Read more >
2430723 - Changes not Applied to Scheduled Integrations in ...
To Resolve this issue: Edit the Integration,; Go to "Scheduling"; Select a date in the future and click "Set Schedule"; Save the Integration...
Read more >
Change of behavior "Error: Resource not accessible by ...
It started to happen two days ago without any relevant change from our side in all PRs: rizinorg/rizin#1222 Here is our CodeQL action ......
Read more >
Manage issues - GitLab Docs
You can edit an issue's title and description. Prerequisites: ... On self-managed GitLab, by default this feature is not available. To make it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found