Closed Herschenglime closed 6 months ago
Looking at the error message a little closer, it looks like it might have to do with this call?
(ghub--graphql-req :url #s(url :type "https" :user nil :password nil :host "api.github.com" :portspec nil :filename "/graphql" :target nil :attributes nil :fullness t :silent nil :use-cookies t :asynchronous t)
I will say I'm not too familiar with Elisp so this might not be it, but it seems like the GraphQL request might be getting a left parenthesis from the Lisp code that wasn't properly scrubbed
Sounds like #639, which should be fixed now.
Oh yup, that fixed it! I had pulled in the updated code but it didn't seem to have taken effect, so it seems like the relevant steps were:
Closing now, thank you for your help!
In case somebody else is affected: it's enough to remove the corrupted repositories:
(pcase-dolist (`(,owner ,name ,id)
(forge-sql [:select [owner name id] :from repository]))
(when (text-properties-at 1 owner)
(message "Removing %s/%s" owner name)
(closql-delete (forge-get-repository :id id))))
Forge seems unable to successfully add a repository to the database and list pull requests. It is also unable to fetch my notifications.
When trying to add a private repository in an organization that I have access to, nothing updates. Trying to list pull requests returns the error "Cannot determine repository".
forge-pull-notifications also fails with the error
error in process filter: GraphQL Error: ((message . "Parse error on \"(\" (LPAREN) at [3, 17]") (locations ((line . 3) (column . 17))))
making me wonder if something is wrong with my setup as a whole and not just these repositories.I have my ghub credentials stored in Secret Service and my auth-sources uses "secrets:Login" to access the password. Making a request directly through ghub (with
(ghub-request "GET" "/user")
) works fine and returns my user details.I don't really know what specific aspects of my setup would be causing this, so as such I don't have concrete examples of how to reproduce the error. If there are any extra details you'd like, please let me know.
Thank you for your help!
Backtrace
Cannot determine repository
Notification pull backtrace