Hello Everyone,
I have added Github code review plugin in my discourse platform and after working fine for some time, now it is causing error. It is not sending the data from my Github webhook to the platform.
On Github webhook respose, it says
Oops - Error 500
Oops
The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.
Detailed information about the error was logged, and an automatic notification generated. We'll take a look at it.
No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site's feedback category.
In the logs on the browser the error is following,
GraphQLClient::GraphQLError ([{:type=>“NOT_FOUND”, :path=>[“repository”, “pullRequest”], :locations=>[{:line=>4, :column=>15}], :message=>“Could not resolve to a PullRequest with the number of 1.”}])
yup i have checked my logs also but no specific information regarding the error was found. I am using Code review plugin to integrate My Github with discourse. So Is it the problem with the plugin that i have used?
Whenever I have seen that error I have seen a ruby backtrace in the logs. I recommend that you tail that file and reload the page. It can be hard to catch as lots of stuff happens. You can also search that file for 500, though often there will be some 500 strings that are not the error so you have to keep looking. You can also look in error.log.
You can certainly try removing that and any other plugins and rebuilding, especially if you have any non standard plugins.
I have rebuild the application with same plugins and now its working but i am not sure why it wasn’t earlier. The plugin that i am using is part of discourse Enterprise plugins so should i expect it to cause issues with my application?