Ciao a tutti,
Ho aggiunto il plugin Github code review alla mia piattaforma discourse e, dopo aver funzionato bene per un po’, ora sta causando un errore. Non sta inviando i dati dal mio webhook Github alla piattaforma.
Nella risposta del webhook di Github, dice
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.
Nei log del browser l’errore è il seguente,
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.”}])
Sì, ho controllato anche i miei log, ma non ho trovato informazioni specifiche sull’errore. Sto usando il plugin Code review per integrare il mio Github con Discourse. Quindi il problema è con il plugin che ho usato?
Ogni volta che ho visto quell’errore, ho visto un backtrace ruby nei log. Ti consiglio di seguire quel file e ricaricare la pagina. Può essere difficile da cogliere poiché succedono molte cose. Puoi anche cercare nel file la stringa 500, anche se spesso ci saranno alcune stringhe 500 che non sono l’errore, quindi devi continuare a cercare. Puoi anche guardare in error.log.
Puoi certamente provare a rimuovere quello e qualsiasi altro plugin e ricostruire, specialmente se hai plugin non standard.
Ho ricostruito l’applicazione con gli stessi plugin e ora funziona, ma non sono sicuro del perché non funzionasse prima. Il plugin che sto usando fa parte dei plugin Enterprise di Discourse, quindi dovrei aspettarmi che causi problemi con la mia applicazione?