Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No endpoint found" debug-bridge not working properly in Zotero 7.0.1 #2947

Closed
carllx opened this issue Aug 15, 2024 · 14 comments
Closed

"No endpoint found" debug-bridge not working properly in Zotero 7.0.1 #2947

carllx opened this issue Aug 15, 2024 · 14 comments
Labels

Comments

@carllx
Copy link

carllx commented Aug 15, 2024

Debug log ID

436PJ9GD-apse/6.7.221-7

What happened?

Recently, due to issue #2944, I reinstalled the latest Zotero 7.1 from the beta version, along with the latest v6.7.221. However, the debug-bridge is not functioning properly. When executing the following command in Terminal:

curl \
 -s \
 -X POST \
 -H "Content-Type: application/javascript" \
 -H "Authorization: Bearer ddd" \
 --data-binary @/Users/usr/Documents/script.js \
"http://127.0.0.1:23119/debug-bridge/execute?quection=$quection&itemID=$itemID"

// No endpoint found

The response indicates that no endpoint was found.

@carllx carllx changed the title debug-bridge "No endpoint found" in Zotero 7.1 "No endpoint found" debug-bridge not working properly in Zotero 7.1 Aug 15, 2024
@carllx carllx changed the title "No endpoint found" debug-bridge not working properly in Zotero 7.1 "No endpoint found" debug-bridge not working properly in Zotero 7.0.1 Aug 15, 2024
@retorquere
Copy link
Owner

I'm looking into it but my response times are slower than usual, the zotero 7 release is bringing in a spike of requests, and I'm currently away to a competition with limited to to get behind a computer. I'm doing my best to address the issues and will be back to normal response times on Tuesday. I don't know why zotero 7 release responds differently than the beta it was tested on.

@carllx
Copy link
Author

carllx commented Aug 15, 2024

@retorquere Thank you for your reply and explanation. I fully understand your current situation with increased workload and limited time. I greatly appreciate that you are still paying attention to this issue despite your busy schedule.
I am trying other versions of Zotero, and although the problem has not been resolved, I will patiently wait until you have more time to investigate this issue in depth.
If I discover any new clues or relevant information, I will promptly update this issue.

Thank you again for your efforts and support. Good luck with your competition! We look forward to further resolving this issue when you return next Tuesday.

@retorquere
Copy link
Owner

I can't reproduce this. I am running this:

curl -v -H "Content-Type: application/javascript" --data 'return 4' "http://127.0.0.1:23119/debug-bridge/execute"

and that gets me 'Bearer token expected', not a message about no such endpoint. What exact message are you getting?

@retorquere
Copy link
Owner

My tests are also running without issue and that would not be possible without debug bridge. Any relevant errors in the logs?

@carllx
Copy link
Author

carllx commented Aug 17, 2024

I ran the following curl command:

curl -v -H "Content-Type: application/javascript" --data 'return 4' "http://127.0.0.1:23119/debug-bridge/execute"

The response I received was:

HTTP/1.0 404 Not Found
X-Zotero-Version: 7.0.1-beta.3+ec7ffa8c0
X-Zotero-Connector-API-Version: 2
Content-Type: text/plain

No endpoint found

When I checked Zotero.Server.Endpoints in the Error Console, I saw a list of objects, but "/debug-bridge/execute" was not among them. The endpoints I saw included various API endpoints, Better BibTeX endpoints, and connector endpoints, but nothing related to the debug bridge.

This seems to confirm that the debug-bridge endpoint is not available in my Zotero installation. Could this be related to the specific version I'm using (7.0.1-beta.3+ec7ffa8c0)?"

"/api/": function ()
"/api/creatorFields": function ()
"/api/groups/:groupID": function ()
"/api/groups/:groupID/collections": function ()
"/api/groups/:groupID/collections/:collectionKey": function ()
"/api/groups/:groupID/collections/:collectionKey/collections": function ()
"/api/groups/:groupID/collections/:collectionKey/items": function ()
"/api/groups/:groupID/collections/:collectionKey/items/tags": function ()
"/api/groups/:groupID/collections/:collectionKey/items/top": function ()
"/api/groups/:groupID/collections/:collectionKey/items/top/tags": function ()
"/api/groups/:groupID/collections/top": function ()
"/api/groups/:groupID/items": function ()
"/api/groups/:groupID/items/:itemKey": function ()
"/api/groups/:groupID/items/:itemKey/children": function ()
"/api/groups/:groupID/items/:itemKey/file": function ()
"/api/groups/:groupID/items/:itemKey/file/view": function ()
"/api/groups/:groupID/items/:itemKey/file/view/url": function ()
"/api/groups/:groupID/items/tags": function ()
"/api/groups/:groupID/items/top": function ()
"/api/groups/:groupID/items/top/tags": function ()
"/api/groups/:groupID/items/trash": function ()
"/api/groups/:groupID/items/trash/tags": function ()
"/api/groups/:groupID/items/trash/top": function ()
"/api/groups/:groupID/items/trash/top/tags": function ()
"/api/groups/:groupID/searches": function ()
"/api/groups/:groupID/searches/:searchKey": function ()
"/api/groups/:groupID/searches/:searchKey/items": function ()
"/api/groups/:groupID/tags": function ()
"/api/groups/:groupID/tags/:tag": function ()
"/api/itemFields": function ()
"/api/itemTypeCreatorTypes": function ()
"/api/itemTypeFields": function ()
"/api/itemTypes": function ()
"/api/schema": function ()
"/api/users/:userID/collections": function ()
"/api/users/:userID/collections/:collectionKey": function ()
"/api/users/:userID/collections/:collectionKey/collections": function ()
"/api/users/:userID/collections/:collectionKey/items": function ()
"/api/users/:userID/collections/:collectionKey/items/tags": function ()
"/api/users/:userID/collections/:collectionKey/items/top": function ()
"/api/users/:userID/collections/:collectionKey/items/top/tags": function ()
"/api/users/:userID/collections/top": function ()
"/api/users/:userID/groups": function ()
"/api/users/:userID/groups/:groupID": function ()
"/api/users/:userID/items": function ()
"/api/users/:userID/items/:itemKey": function ()
"/api/users/:userID/items/:itemKey/children": function ()
"/api/users/:userID/items/:itemKey/file": function ()
"/api/users/:userID/items/:itemKey/file/view": function ()
"/api/users/:userID/items/:itemKey/file/view/url": function ()
"/api/users/:userID/items/tags": function ()
"/api/users/:userID/items/top": function ()
"/api/users/:userID/items/top/tags": function ()
"/api/users/:userID/items/trash": function ()
"/api/users/:userID/items/trash/tags": function ()
"/api/users/:userID/items/trash/top": function ()
"/api/users/:userID/items/trash/top/tags": function ()
"/api/users/:userID/publications/items": function ()
"/api/users/:userID/publications/items/tags": function ()
"/api/users/:userID/publications/items/top": function ()
"/api/users/:userID/searches": function ()
"/api/users/:userID/searches/:searchKey": function ()
"/api/users/:userID/searches/:searchKey/items": function ()
"/api/users/:userID/settings": function ()
"/api/users/:userID/tags": function ()
"/api/users/:userID/tags/:tag": function ()
"/better-bibtex/cayw": function Handler()
"/better-bibtex/collection": function CollectionHandler()
"/better-bibtex/export/collection": function CollectionHandler()
"/better-bibtex/export/item": function ItemHandler()
"/better-bibtex/export/library": function LibraryHandler()
"/better-bibtex/export/selected": function SelectedHandler()
"/better-bibtex/json-rpc": function Handler2()
"/better-bibtex/library": function LibraryHandler()
"/better-bibtex/select": function SelectedHandler()
"/connector/attachmentProgress": function Progress()
"/connector/delaySync": function DelaySync()
"/connector/detect": function Detect()
"/connector/document/execCommand": function "/connector/document/execCommand"()
"/connector/document/respond": function "/connector/document/respond"()
"/connector/getClientHostnames": function GetClientHostnames()
"/connector/getSelectedCollection": function GetSelectedCollection()
"/connector/getTranslatorCode": function GetTranslatorCode()
"/connector/getTranslators": function GetTranslators()
"/connector/ieHack": function IEHack()
"/connector/import": function Import()
"/connector/installStyle": function InstallStyle()
"/connector/ping": function Ping()
"/connector/proxies": function Proxies()
"/connector/request": function Request()
"/connector/saveItems": function SaveItems()
"/connector/savePage": function SavePage()
"/connector/saveSingleFile": function SaveSingleFile()
"/connector/saveSnapshot": function SaveSnapshot()
"/connector/selectItems": function SelectItems()
"/connector/sendToBack": function "/connector/sendToBack"()
"/connector/sessionProgress": function SessionProgress()
"/connector/updateSession": function UpdateSession()
"/integration/macWordCommand": function "/integration/macWordCommand"()

@retorquere
Copy link
Owner

Can you try version 54 I just uploaded?

@carllx
Copy link
Author

carllx commented Aug 18, 2024

@retorquere, Thank you very much for your continued attention to this issue and for providing a new version for testing. I have attempted to update to version 54 that you just uploaded, but unfortunately, the problem still persists.

The specific situation is as follows:

  1. I updated to the latest version.

  2. Executed the following curl command:

    curl -v -H "Content-Type: application/javascript" --data 'return 4' "http://127.0.0.1:23119/debug-bridge/execute"
    
  3. The response is still:

    No endpoint found
    
  4. When checking Zotero.Server.Endpoints in the Error Console, I still don't see the "/debug-bridge/execute" endpoint.

It appears that after updating to the new version, the debug-bridge issue remains unresolved.

@retorquere
Copy link
Owner

Does debug bridge show as installed and active in the plugins pane?

@retorquere
Copy link
Owner

Wait you don't have debug bridge installed according to 436PJ9GD-apse?

@retorquere
Copy link
Owner

That would of course explain why you don't have the endpoint.

@carllx
Copy link
Author

carllx commented Aug 19, 2024

Thank you very much for your patient help @retorquere I have tried installing version 701 and its beta versions and have reinstalled versions 67210 67212 67218 67221 and 67222 of the BBT plugin However I am still unable to successfully use the Endpoints feature and I dont see the debug bridge option in the plugin panel To solve my personal problem I wrote an Endpoint myself I guess this might be a special case and it seems that only I have encountered this issue at the moment Therefore I have decided to close this issue.

@carllx carllx closed this as completed Aug 19, 2024
Copy link

Thanks for the feedback! Just so you know, GitHub doesn't let me control who can close issues, and @retorquere likes to leave bug reports and enhancements open as a nudge to merge them into the next release.

@retorquere
Copy link
Owner

retorquere commented Aug 19, 2024

Uh that's fine, but those are all BBT builds, and BBT does not include debug bridge. Debug bridge is a separate plugin, found at https://github.com/retorquere/zotero-better-bibtex/blob/master/test%2Ffixtures%2Fdebug-bridge%2FREADME.md , you just didn't have it installed.

@retorquere retorquere closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
@github-actions github-actions bot removed the reopened label Aug 19, 2024
@carllx
Copy link
Author

carllx commented Aug 19, 2024

Oh, I'm terribly sorry, @retorquere. I now realize the issue was due to my misunderstanding. I had been under the impression that Debug bridge was a built-in functionality of BBT. I sincerely apologize for taking up so much of your time with this confusion. Thank you for your patience throughout this process.

@github-actions github-actions bot reopened this Aug 19, 2024
@retorquere retorquere closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
@github-actions github-actions bot removed the reopened label Aug 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants