magit / forge

Work with Git forges from the comfort of Magit
GNU General Public License v3.0
1.31k stars 116 forks source link

error: Invalid search bound (wrong side of point) while fetching notifications #621

Closed seagle0128 closed 5 months ago

seagle0128 commented 9 months ago

I got this error with the latest version on 29.1/Arch.

Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)")
  #<subr re-search-forward>("^\\([^:]*\\): \\(.+\\)" #<marker at 1 in  *http api.github.com:443*> t nil)
  ad-Advice-re-search-forward(#<subr re-search-forward> "^\\([^:]*\\): \\(.+\\)" #<marker at 1 in  *http api.github.com:443*> t)
  apply(ad-Advice-re-search-forward #<subr re-search-forward> ("^\\([^:]*\\): \\(.+\\)" #<marker at 1 in  *http api.github.com:443*> t))
  re-search-forward("^\\([^:]*\\): \\(.+\\)" #<marker at 1 in  *http api.github.com:443*> t)
  ghub--handle-response-headers((:peer (:certificates ((:version 3 :serial-number "0b:89:05:37:12:5f:45:10:d6:37:2a:10:28:a9:29:a5" :issuer "C=US,O=DigiCert Inc,CN=DigiCert TLS Hybrid ECC SHA..." :valid-from "2023-02-16" :valid-to "2024-03-15" :subject "C=US,ST=California,L=San Francisco,O=GitHub\\, Inc...." :public-key-algorithm "EC/ECDSA" :certificate-security-level "High" :signature-algorithm "ECDSA-SHA384" :public-key-id "sha1:b6:3f:03:4b:19:b5:09:31:ad:35:c2:7b:0c:10:5b:..." :certificate-id "sha1:2d:79:6c:90:2d:ad:8a:2e:4f:d1:e2:99:ed:e8:91:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFaTCCBO+gAwIBAgIQC4...") (:version 3 :serial-number "07:f2:f3:5c:87:a8:77:af:7a:ef:e9:47:99:35:25:bd" :issuer "C=US,O=DigiCert Inc,OU=www.digicert.com,CN=DigiCer..." :valid-from "2021-04-14" :valid-to "2031-04-13" :subject "C=US,O=DigiCert Inc,CN=DigiCert TLS Hybrid ECC SHA..." :public-key-algorithm "EC/ECDSA" :certificate-security-level "Ultra" :signature-algorithm "RSA-SHA384" :public-key-id "sha1:3f:a4:c2:7e:9c:9c:89:2c:6b:98:6c:1c:3e:1f:40:..." :certificate-id "sha1:ae:c1:3c:dd:5e:a6:a3:99:8a:ec:14:ac:33:1a:d9:..." :pem "-----BEGIN CERTIFICATE-----\nMIIEFzCCAv+gAwIBAgIQB/...")) :certificate (:version 3 :serial-number "0b:89:05:37:12:5f:45:10:d6:37:2a:10:28:a9:29:a5" :issuer "C=US,O=DigiCert Inc,CN=DigiCert TLS Hybrid ECC SHA..." :valid-from "2023-02-16" :valid-to "2024-03-15" :subject "C=US,ST=California,L=San Francisco,O=GitHub\\, Inc...." :public-key-algorithm "EC/ECDSA" :certificate-security-level "High" :signature-algorithm "ECDSA-SHA384" :public-key-id "sha1:b6:3f:03:4b:19:b5:09:31:ad:35:c2:7b:0c:10:5b:..." :certificate-id "sha1:2d:79:6c:90:2d:ad:8a:2e:4f:d1:e2:99:ed:e8:91:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFaTCCBO+gAwIBAgIQC4...") :key-exchange "ECDHE-RSA" :protocol "TLS1.3" :cipher "AES-128-GCM" :mac "AEAD" :encrypt-then-mac nil)) #s(ghub--req :url #s(url :type "https" :user nil :password nil :host "api.github.com" :portspec nil :filename "/notifications?all=true" :target nil :attributes nil :fullness t :silent nil :use-cookies t :asynchronous t) :forge nil :silent nil :method "GET" :headers #f(compiled-function () #<bytecode -0x1c45afea21c8f8d1>) :handler ghub--handle-response :unpaginate t :noerror nil :reader nil :callback nil :errorback nil :value nil :extra nil))
  ghub--handle-response((:peer (:certificates ((:version 3 :serial-number "0b:89:05:37:12:5f:45:10:d6:37:2a:10:28:a9:29:a5" :issuer "C=US,O=DigiCert Inc,CN=DigiCert TLS Hybrid ECC SHA..." :valid-from "2023-02-16" :valid-to "2024-03-15" :subject "C=US,ST=California,L=San Francisco,O=GitHub\\, Inc...." :public-key-algorithm "EC/ECDSA" :certificate-security-level "High" :signature-algorithm "ECDSA-SHA384" :public-key-id "sha1:b6:3f:03:4b:19:b5:09:31:ad:35:c2:7b:0c:10:5b:..." :certificate-id "sha1:2d:79:6c:90:2d:ad:8a:2e:4f:d1:e2:99:ed:e8:91:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFaTCCBO+gAwIBAgIQC4...") (:version 3 :serial-number "07:f2:f3:5c:87:a8:77:af:7a:ef:e9:47:99:35:25:bd" :issuer "C=US,O=DigiCert Inc,OU=www.digicert.com,CN=DigiCer..." :valid-from "2021-04-14" :valid-to "2031-04-13" :subject "C=US,O=DigiCert Inc,CN=DigiCert TLS Hybrid ECC SHA..." :public-key-algorithm "EC/ECDSA" :certificate-security-level "Ultra" :signature-algorithm "RSA-SHA384" :public-key-id "sha1:3f:a4:c2:7e:9c:9c:89:2c:6b:98:6c:1c:3e:1f:40:..." :certificate-id "sha1:ae:c1:3c:dd:5e:a6:a3:99:8a:ec:14:ac:33:1a:d9:..." :pem "-----BEGIN CERTIFICATE-----\nMIIEFzCCAv+gAwIBAgIQB/...")) :certificate (:version 3 :serial-number "0b:89:05:37:12:5f:45:10:d6:37:2a:10:28:a9:29:a5" :issuer "C=US,O=DigiCert Inc,CN=DigiCert TLS Hybrid ECC SHA..." :valid-from "2023-02-16" :valid-to "2024-03-15" :subject "C=US,ST=California,L=San Francisco,O=GitHub\\, Inc...." :public-key-algorithm "EC/ECDSA" :certificate-security-level "High" :signature-algorithm "ECDSA-SHA384" :public-key-id "sha1:b6:3f:03:4b:19:b5:09:31:ad:35:c2:7b:0c:10:5b:..." :certificate-id "sha1:2d:79:6c:90:2d:ad:8a:2e:4f:d1:e2:99:ed:e8:91:..." :pem "-----BEGIN CERTIFICATE-----\nMIIFaTCCBO+gAwIBAgIQC4...") :key-exchange "ECDHE-RSA" :protocol "TLS1.3" :cipher "AES-128-GCM" :mac "AEAD" :encrypt-then-mac nil)) #s(ghub--req :url #s(url :type "https" :user nil :password nil :host "api.github.com" :portspec nil :filename "/notifications?all=true" :target nil :attributes nil :fullness t :silent nil :use-cookies t :asynchronous t) :forge nil :silent nil :method "GET" :headers #f(compiled-function () #<bytecode -0x1c45afea21c8f8d1>) :handler ghub--handle-response :unpaginate t :noerror nil :reader nil :callback nil :errorback nil :value nil :extra nil))
  ghub--retrieve(nil #s(ghub--req :url #s(url :type "https" :user nil :password nil :host "api.github.com" :portspec nil :filename "/notifications?all=true" :target nil :attributes nil :fullness t :silent nil :use-cookies t :asynchronous t) :forge nil :silent nil :method "GET" :headers #f(compiled-function () #<bytecode -0x1c45afea21c8f8d1>) :handler ghub--handle-response :unpaginate t :noerror nil :reader nil :callback nil :errorback nil :value nil :extra nil))
  ghub-request("GET" "/notifications" ((all . t)) :query nil :payload nil :headers nil :silent nil :unpaginate t :noerror nil :reader nil :username nil :auth forge :host "api.github.com" :callback nil :errorback nil :extra nil)
  ghub-get("/notifications" ((all . t)) :host "api.github.com" :auth forge :query nil :payload nil :headers nil :silent nil :unpaginate t :noerror nil :reader nil :callback nil :errorback nil)
  forge--ghub-get(nil "/notifications" ((all . t)) :host "api.github.com" :unpaginate t)
  #f(compiled-function (class githost &optional callback) #<bytecode 0x12581f08265e735e>)(forge-github-repository "github.com")
  apply(#f(compiled-function (class githost &optional callback) #<bytecode 0x12581f08265e735e>) forge-github-repository "github.com")
  forge--pull-notifications(forge-github-repository "github.com")
  #f(compiled-function () (interactive nil) #<bytecode 0x98d05d336a1f329>)()
  apply(#f(compiled-function () (interactive nil) #<bytecode 0x98d05d336a1f329>) nil)
  #f(compiled-function (fn &rest args) #<bytecode 0x8178248d8c7ecc9>)(#f(compiled-function () (interactive nil) #<bytecode 0x98d05d336a1f329>))
  apply(#f(compiled-function (fn &rest args) #<bytecode 0x8178248d8c7ecc9>) #f(compiled-function () (interactive nil) #<bytecode 0x98d05d336a1f329>) nil)
  (lambda (fn &rest args) (interactive #f(compiled-function (spec) #<bytecode 0x1ec009d2c7306b80>)) (apply '#f(compiled-function (fn &rest args) #<bytecode 0x8178248d8c7ecc9>) fn args))(#f(compiled-function () (interactive nil) #<bytecode 0x98d05d336a1f329>))
  apply((lambda (fn &rest args) (interactive #f(compiled-function (spec) #<bytecode 0x1ec009d2c7306b80>)) (apply '#f(compiled-function (fn &rest args) #<bytecode 0x8178248d8c7ecc9>) fn args)) #f(compiled-function () (interactive nil) #<bytecode 0x98d05d336a1f329>) nil)
  forge-pull-notifications()
  funcall-interactively(forge-pull-notifications)
  #<subr command-execute>(forge-pull-notifications nil nil nil)
  ad-Advice-command-execute(#<subr command-execute> forge-pull-notifications)
  apply(ad-Advice-command-execute #<subr command-execute> forge-pull-notifications)
  command-execute(forge-pull-notifications)
tarsius commented 9 months ago

The next time this happens, please post the content of the buffer.

seagle0128 commented 8 months ago

I dig out today. The issue happens while the repo wasn't added to forge database (via ' f).