Twitter/X translator: extension resorts to generic "embedded metadata"

A warning regarding the recourse to "embedded metadata" is displayed.Consequently, the content (title), author and time are not correctly captured.

The last thread on this forum seems to be 188BET靠谱吗https://forums.zotero.org/discussion/107010/zotero-connector-twitter-x-translator-seems-broken.
  • Working fine for me.Could you link to a post/page that isn't working for you?
  • I have not encountered a single instance of it working.188BET靠谱吗I have just tried it with all extensions disabled except Zotero – same result.

    For the sake of a test link, a tweet of mine: https://x.com/yue_dongchen/status/1789288640746791207

    Browser: Brave (Version 1.66.110, Chromium 125.0.6422.60)
  • Works with Firefox 126.0, fails with Chrome 125.0.6422.77 on macOS 14.5
  • I submitted a report.ID is 1633011655.

    I haven't tried it with Firefox.
  • I tested it with Firefox and the result seems identical.The ID is 1856450513.

    Please let me know if I should provide more information.
  • These are relevant error and debug logs (Chromium 125.0.6422.60):

    [JavaScript Error: "TypeError: matches is not iterable
    at scrape (eval at (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/sandboxManager.js:63:4), :102:26)
    at doWeb (eval at (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/sandboxManager.js:63:4), :85:2)
    188BET靠谱吗at Zotero.Translate.Web.rest (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/translate/translation/translate.js:1346:49)
    at chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/translate/translation/translate.js:1331:39" {file: "[object Object]"}]

    ---

    (3)(+0010567): Connector_Browser: onActivated for 188BET靠谱吗https://x.com/zotero/status/105608278976905216
    (3)(+0001598): translate message received in injected page 188BET靠谱吗https://x.com/zotero/status/105608278976905216
    (3)(+0000001): HTTP POST http://127.0.0.1:23119/connector/ping
    (3)(+0000004): Connector: Method ping succeeded
    (4)(+0000001): Translate: Binding sandbox to 188BET靠谱吗https://x.com/zotero/status/105608278976905216
    (3)(+0000000): progressWindow.show message received in injected page 188BET靠谱吗https://x.com/zotero/status/105608278976905216
    (4)(+0000005): Translate: Parsing code for Twitter (31659710-d04e-45d0-84ba-8e3f5afc4a54, 2024-04-05 08:25:00)
    (3)(+0000000): Translate: Beginning translation with Twitter
    (1)(+0000001): {}
    (2)(+0000001): Translate: Translation using Twitter failed:
    TypeError: matches is not iterable

    TypeError: matches is not iterable
    at scrape (eval at (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/sandboxManager.js:63:4), :102:26)
    at doWeb (eval at (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/inject/sandboxManager.js:63:4), :85:2)
    188BET靠谱吗at Zotero.Translate.Web.rest (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/translate/translation/translate.js:1346:49)
    at chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/translate/translation/translate.js:1331:39
    url => 188BET靠谱吗https://x.com/zotero/status/105608278976905216
    downloadAssociatedFiles => true
    automaticSnapshots => true

    (5)(+0000000): Translate: Running handler 0 for error
    (3)(+0000002): progressWindow.error message received in injected page 188BET靠谱吗https://x.com/zotero/status/105608278976905216
    (4)(+0000006): Translate: Parsing code for Embedded Metadata (951c027d-74ac-47d4-a107-9c3069ab7b48, 2024-03-27 20:15:00)
    (3)(+0000000): Translate: Beginning translation with Embedded Metadata
  • Thanks, I can reproduce the issue now.Might've been a slow rollout of a site change.We'll have a fix soon.
  • OK, pushed a fix.Links within tweets aren't currently attached as nicely as they were before this round of site changes - we're unable to get the full URL, just the shortened t.co link - but it should generally be functional.I'll update this thread if there's progress on link attachments.
  • @AbeJellinekThank you so much!In the spirit of valuing open-source support and contributions, can I donate a few nickels to you?
    (Ahlbrecht, Patrick.‘No, "Open Source" Does Not Mean "Includes Free Support"'.Raccoon, 14 Nov.2024, https://raccoon.onyxbits.de/blog/bugreport-free-support/.)

    PS What is the process for updating the translators?Are the translators bundled with the extension, or are they able to be updated separately?The "update translators" button in the "advanced" settings tab does not seem to download that latest GitHub commit.

  • edited May 25, 2024
    Thanks very much, but no need to donate anything — we're happy to fix bugs that people report.

    Translators should update automatically within 5–10 minutes of their release.188BET靠谱吗If it's still not working for you, you can update translators manually from the Advanced pane of the Zotero settings.

    If you're still having trouble, we'd want to see another Debug ID188BET靠谱吗from the Zotero Connector for reloading the page and trying to save.
  • Unfortunately I've noticed the real problem concerning my original issue, unrelated to the new commit – If I set my browser to request (Ex-)Twitter to deliver the UI in German or English, the translator's errors disappear.

    I had not previously thought of this as a possible factor (originally I had been browsing in French).zh-Hans (Chinese) results in the same error messages.

    Which for me personally is not any inconvenience, now that it seems to work flawlessly with German or English UI.
Sign Inor Registerto comment.