retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.3k stars 284 forks source link

Submit error behind proxy, TitleCaser errors out in Zotero i386 #1107

Closed geekonloose closed 5 years ago

geekonloose commented 5 years ago

Bug classification

Hello, I am using better bibtex first time. I am getting 'An error occurred while trying to export the selected file.' error every time. I am using my system behind my institute's network proxy. The report ID is: 3Z4C87EF-apse

Exporting references

If your bug report/feature request/question concerns problems with exporting references, please specify whether you're exporting BibTeX or BibLaTeX. Please right-click the references where you experience the export problem, select "Send Better BibTeX Error", and post the resulting report ID (shown in red after you submit) here.

retorquere commented 5 years ago

What are you doing when you get this error? I don't see errors in the log. Can you reproduce it but first restart with debugging enabled from the help menu?

geekonloose commented 5 years ago

Hello, Apology for late reply. I have retried as you mentioned using the debugging mode on. The report id is 'PHYNTHL8-apse'. Actually, First I got translator error while exporting. While reporting error failed to send the log. When I tried again to send the log, it sent and generated id PHYNTHL8-apse. I hope this information is useful. I am sending screenshot of errors.

screenshot from 2018-12-27 03-40-50

The below one is while sending the error log.

screenshot from 2018-12-27 03-46-49

retorquere commented 5 years ago

In what format did you try to export?

geekonloose commented 5 years ago

Better Bibtex

On Thu, Dec 27, 2018 at 6:04 PM Emiliano Heyns notifications@github.com wrote:

In what format did you try to export?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/retorquere/zotero-better-bibtex/issues/1107#issuecomment-450142814, or mute the thread https://github.com/notifications/unsubscribe-auth/AdG2RHthTmzHzsXInSaP18RS2rBze1bsks5u9L5mgaJpZM4ZhUEL .

--


Parth Patel

Research Scholar-Nuclear Engineering

Reactor Design Group

Indira Gandhi Center For Atomic Research

Tamilnadu, India

Cell No: +91 9428370811

retorquere commented 5 years ago

I take it you were trying to export the gibbs collection? Can you try exporting that same collection as BetterBibTeX JSON, renaming the resulting file to end in .txt, and attach it here?

retorquere commented 5 years ago

How does Zotero know about the proxy? An environment variable? A setting somewhere?

geekonloose commented 5 years ago

I have attached the text file. It does not caused any error this time (while exporting). However, better bibtex was causing errors for any library (not only gibbs collection) My Library.txt The proxy is configured through the zotero 'about:config'.

retorquere commented 5 years ago

So now the error doesn't occur anymore? That's strange, but also a little disappointing, I can't fix an error I can't test. I've imported your library but also can't reproduce the error. There must be a specific entry that caused the error, in the end PHYNTHL8 errored out in the title caser, but that's a result of the original error, not the actual cause.

What exactly do you have set up in about:config?

geekonloose commented 5 years ago

No not like that, exporting bibtex json dont cause any error. However, bibtex still causes error. Below is my proxy setup. screenshot from 2018-12-28 09-49-34 I am allowing localhost and 127.0.0.1 to pass without proxies.

retorquere commented 5 years ago

Oh really? Because in PHYNTHL8-apse, the error showed to have occurred for the export of Results from the run-beyond-cladding-breach irradiation of a predefected fuel pin (RBCB-6), but I can import that end export it again without issue. BetterBibTeX JSON generally won't error out because it does very little. In this case, the Better BibTeX translator triggers an error inside Zotero, but I can't yet tell why without reproducing it, and I can't easily add logging inside Zotero code.

Can you verify that exporting that one reference triggers the error for you? That will make further debugging easier.

retorquere commented 5 years ago

So in your case, your system doesn't have any direct connectivity, all connectivity is forced through a proxy? I'll have to figure out how to replicate that.

retorquere commented 5 years ago

Does your proxy require authentication? Do you happen to know what proxy your organisation is running?

retorquere commented 5 years ago

And is the SSL port also 3128?

geekonloose commented 5 years ago

Yes, each and every connectivity is forced throught a proxy. SSL also have 3128 sorry that hide through notification. Yes it require authentication, generally authintication is asked on start up of zotero. I dont know what you mean by 'what proxy'. I dont have idea if they are using specific proxy acquired from some company.

I tried to export that one item in better bibtex. Strange..!! It did not complaint. However, while exporting the complete library, it does complains. The debug id is: D357756846 (I have started the debug log again).

retorquere commented 5 years ago

The D reports only go to the Zotero developers, I can't see those. If you can submit a BBT error report I can look again, but you say you've had trouble submitting those.

I meant to ask if you know what product they use for a proxy. Never mind. I'll try to set up a proxy server to see if I can replicate the problem.

blip-bloop commented 5 years ago

:robot: this is your friendly neighborhood build bot announcing test build 5.1.33.3217 ("foreground requests for proxy support?")

Install in Zotero by downloading test build 5.1.33.3217, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 5 years ago

Can you try build 3217 to see if you can submit BBT debug reports with that?

blip-bloop commented 5 years ago

:robot: this is your friendly neighborhood build bot announcing test build 5.1.33.3219 ("logging for citeproc")

Install in Zotero by downloading test build 5.1.33.3219, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 5 years ago

Can you try exporting with 3219 (which should fail like before) and then submitting a BBT log? I've managed to add logging to the Zotero code which should tell my why it fails.

retorquere commented 5 years ago

I can't find how to set up a SOCKS and a HTTP(s) proxy on the same port. Can you ask your admininstrator what proxy server product your org is using?

geekonloose commented 5 years ago

I can try to install build 3219. But its difficult to ask the administrator, as its a govt research lab. So they might not happy to share details outside. Nevermind, If 3219 works, I would be very happy. I will update you on Monday. I really appreciate your kind help. :)

retorquere commented 5 years ago

Even with a locked down system it'd be strange if you can't install extensions by yourself -- they go into a directory where Zotero also stores it's references and attachments.

3219 won't fix the problem, it will just give me extra debug info.

geekonloose commented 5 years ago

I can install addons, by myself, but I have to make sure that any network should go through proxy if that addon is using network. The report id is :3TK4U9HM-apse This info in application context tab:

Application: Zotero 5.0.59 en-US
Platform: Linux i686 Linux i686
Addons:
  Zotero Scholar Citations (1.9.3, extension)
  Zotero AutoIndex (5.0.4, extension)
  ZotFile (5.0.9, extension)
  Zotero LibreOffice Integration (5.0.14.SA.5.0.59, extension)
  Better BibTex for Zotero (5.1.33.3219, extension)
Settings:
  DOIandURL = "both"
  asciiBibLaTeX = true
  asciiBibTeX = true
  autoAbbrev = true
  autoAbbrevStyle = ""
  autoExport = "immediate"
  autoExportIdleWait = 10
  autoExportPrimeExportCacheBatch = 10
  autoExportPrimeExportCacheThreshold = 0
  autoPin = false
  biblatexExtendedDateFormat = true
  biblatexExtendedNameFormat = true
  bibtexParticleNoOp = true
  bibtexURL = "url"
  cacheFlushInterval = 5
  citeCommand = "cite"
  citekeyFold = true
  citekeyFormat = "[zotero:clean]"
  citeprocNoteCitekey = false
  csquotes = ""
  debug = false
  debugLog = ""
  git = "config"
  itemObserverDelay = 100
  jabrefFormat = 0
  keyConflictPolicy = "keep"
  keyScope = "global"
  kuroshiro = false
  lockedInit = false
  parseParticles = true
  postscript = ""
  preserveBibTeXVariables = false
  qualityReport = true
  quickCopyMode = "latex"
  quickCopyPandocBrackets = false
  rawLaTag = "#LaTeX"
  relativeFilePaths = false
  scrubDatabase = false
  skipFields = ""
  skipWords = "a,ab,aboard,about,above,across,after,against,al,along,amid,among,an,and,anti,around,as,at,before,behind,below,beneath,beside,besides,between,beyond,but,by,d,da,das,de,del,dell,dello,dei,degli,della,dell,delle,dem,den,der,des,despite,die,do,down,du,during,ein,eine,einem,einen,einer,eines,el,en,et,except,for,from,gli,i,il,in,inside,into,is,l,la,las,le,les,like,lo,los,near,nor,of,off,on,onto,or,over,past,per,plus,round,save,since,so,some,sur,than,the,through,to,toward,towards,un,una,unas,under,underneath,une,unlike,uno,unos,until,up,upon,versus,via,von,while,with,within,without,yet,zu,zum"
  sorted = false
  strings = ""
  suppressTitleCase = false
  testing = false
  warnBulkModify = 10
  Zotero: export.quickCopy.setting = "bibliography=http://www.zotero.org/styles/chicago-note-bibliography"

These lines are in debug log tab:

(3)(+0000000): Zotero.Libraries.getName() is deprecated. Use Zotero.Library.prototype.name instead
(3)(+0000004): Translate: All translator detect calls and RPC calls complete:
(3)(+0000002):  TEI: 25
(3)(+0000000):  Zotero RDF: 25
(3)(+0000000):  Better BibLaTeX: 50
(3)(+0000002):  Bibliontology RDF: 50
(3)(+0000000):  MODS: 50
(3)(+0000000):  Simple Evernote Export: 50
(3)(+0000000):  Better BibTeX Citation Key Quick Copy: 100
(3)(+0000000):  Better CSL JSON: 100
(3)(+0000000):  Better CSL YAML: 100
(3)(+0000002):  BetterBibTeX JSON: 100
(3)(+0000000):  BibLaTeX: 100
(3)(+0000000):  Bookmarks: 100
(3)(+0000000):  Citation graph: 100
(3)(+0000000):  Collected notes: 100
(3)(+0000000):  CSL JSON: 100
(3)(+0000000):  CSV: 100
(3)(+0000000):  Endnote XML: 100
(3)(+0000000):  Refer/BibIX: 100
(3)(+0000000):  RefWorks Tagged: 100
(3)(+0000000):  RIS: 100
(3)(+0000000):  Unqualified Dublin Core RDF: 100
(3)(+0000000):  Wikipedia Citation Templates: 100
(3)(+0000000):  Better BibTeX: 199
(3)(+0000000):  BibTeX: 200
(3)(+0000000):  COinS: 310
(3)(+0000026): BBT: loading content/ExportOptions.ts
(3)(+0000002): BBT: loaded content/ExportOptions.ts

These lines are in errors tab:

[JavaScript Error: "TypeError: object[method] is undefined" {file: "chrome://zotero-auto-index/content/AutoIndex.js" line: 81}]
patch@chrome://zotero-auto-index/content/AutoIndex.js:81:1
init@chrome://zotero-auto-index/content/AutoIndex.js:113:9
Zotero.AutoIndex<["./zotero-auto-index.ts"]/exports.AutoIndex</<@chrome://zotero-auto-index/content/AutoIndex.js:92:13
openModalWindow@resource://gre/components/nsPrompter.js:364:5
ModalPrompter.prototype.openPrompt@resource://gre/components/nsPrompter.js:579:9
ModalPrompter.prototype.nsIPrompt_promptUsernameAndPassword@resource://gre/components/nsPrompter.js:770:9
ModalPrompter.prototype.promptAuth@resource://gre/components/nsPrompter.js:869:18
Prompter.prototype.promptAuth@resource://gre/components/nsPrompter.js:108:16
LoginManagerPrompter.prototype.promptAuth@resource://gre/components/nsLoginManagerPrompter.js:621:12
LoginManagerPromptFactory.prototype._doAsyncPrompt/runnable.run@resource://gre/components/nsLoginManagerPrompter.js:123:18

[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15376}]
[JavaScript Error: "{better-bibtex! +null} Translators.translate failed in {"time":7714,"translatorID":"ca65189f-8815-4afe-8c8b-8c7c15f0edca","displayOptions":{"exportNotes":false,"useJournalAbbreviation":true,"preference_DOIandURL":"both","preference_asciiBibLaTeX":true,"preference_asciiBibTeX":true,"preference_biblatexExtendedNameFormat":true,"preference_bibtexParticleNoOp":true,"preference_bibtexURL":"url","exportPath":"/home/parth/Desktop"},"path":"/home/parth/Desktop/My Library.bib"} "]
[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15376}]
[JavaScript Error: "{better-bibtex! +12014} Translators.translate failed in {"time":19726,"translatorID":"ca65189f-8815-4afe-8c8b-8c7c15f0edca","displayOptions":{"exportNotes":false,"useJournalAbbreviation":false,"preference_DOIandURL":"both","preference_asciiBibLaTeX":true,"preference_asciiBibTeX":true,"preference_biblatexExtendedNameFormat":true,"preference_bibtexParticleNoOp":true,"preference_bibtexURL":"url","exportPath":"/home/parth/Documents"},"path":"/home/parth/Documents/My Library.bib"} "]
[JavaScript Error: "{better-bibtex! +4} AutoExport.queue.run: failed {"type":"library","id":1,"path":"/home/parth/Desktop/My Library.bib","status":"running","translatorID":"ca65189f-8815-4afe-8c8b-8c7c15f0edca","exportNotes":false,"useJournalAbbreviation":true,"DOIandURL":"both","asciiBibLaTeX":true,"asciiBibTeX":true,"biblatexExtendedNameFormat":true,"bibtexParticleNoOp":true,"bibtexURL":"url","error":"","meta":{"revision":1,"created":1545862219684,"version":0,"updated":1546204093342},"$loki":7} translation failed "]
[JavaScript Error: "{better-bibtex! +4} AutoExport.queue.run: failed {"type":"library","id":1,"path":"/home/parth/Documents/My Library.bib","status":"running","translatorID":"ca65189f-8815-4afe-8c8b-8c7c15f0edca","exportNotes":false,"useJournalAbbreviation":false,"DOIandURL":"both","asciiBibLaTeX":true,"asciiBibTeX":true,"biblatexExtendedNameFormat":true,"bibtexParticleNoOp":true,"bibtexURL":"url","error":"","meta":{"revision":1,"created":1545978097220,"version":0,"updated":1546204093344},"$loki":8} translation failed "]
[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15376}]
[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15376}]
[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15376}]
[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15376}]
[JavaScript Error: "XML Parsing Error: no root element found
Location: http://s3.ap-southeast-1.amazonaws.com/ping
Line Number 1, Column 1:" {file: "http://s3.ap-southeast-1.amazonaws.com/ping" line: 1}]
[JavaScript Error: "XML Parsing Error: no root element found
Location: http://s3.eu-central-1.amazonaws.com/ping
Line Number 1, Column 1:" {file: "http://s3.eu-central-1.amazonaws.com/ping" line: 1}]
[JavaScript Error: "XML Parsing Error: no root element found
Location: http://s3.ap-southeast-1.amazonaws.com/ping
Line Number 1, Column 1:" {file: "http://s3.ap-southeast-1.amazonaws.com/ping" line: 1}]
[JavaScript Error: "XML Parsing Error: no root element found
Location: http://s3.eu-central-1.amazonaws.com/ping
Line Number 1, Column 1:" {file: "http://s3.eu-central-1.amazonaws.com/ping" line: 1}]
[JavaScript Error: "XML Parsing Error: no root element found
Location: http://s3.ap-southeast-1.amazonaws.com/ping
Line Number 1, Column 1:" {file: "http://s3.ap-southeast-1.amazonaws.com/ping" line: 1}]
[JavaScript Error: "XML Parsing Error: no root element found
Location: http://s3.eu-central-1.amazonaws.com/ping
Line Number 1, Column 1:" {file: "http://s3.eu-central-1.amazonaws.com/ping" line: 1}]
retorquere commented 5 years ago

BBT just uses Zotero's internet facilities, so if Zotero goes through the proxy, so does BBT (now, I changed something to the submission which may help). Can you try submitting a BBT error log through the menu? That will give me the full log. What you see in the error dialog is the truncated log, and there's not enough info there.

retorquere commented 5 years ago

Can you remove auto-index for now? It doesn't work in the latest Zotero, I'll have to look at that separately.

geekonloose commented 5 years ago

The report id is MJXL8KLI-apse. I have only enabled better bibtex. Other addons are disabled. Also note that I am exporting complete library, will that cause any error?

retorquere commented 5 years ago

There's a reference with booktitle Proc. 9th Int. Conf. Nuclear Engineering (ICONE-9) in your library, can you right-click that and send a new BBT Error report?

retorquere commented 5 years ago

Also, can you test whether exporting that reference only also gets you the error?

blip-bloop commented 5 years ago

:robot: this is your friendly neighborhood build bot announcing test build 5.1.33.3293 ("more debug logging in citeproc")

Install in Zotero by downloading test build 5.1.33.3293, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 5 years ago

Can you reproduce the error with 3293 and send a new debug log?

The error comes from pretty deep in Zotero; for some reason BBT triggers it. I'm trying to collect enough info for a detailed error report to Zotero; in the process I might be able to implement a workaround until Zotero fixes it.

blip-bloop commented 5 years ago

:robot: this is your friendly neighborhood build bot announcing test build 5.1.33.3294 ("more logging")

Install in Zotero by downloading test build 5.1.33.3294, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 5 years ago

3294 adds more logging.

It's super annoying that I can't reproduce this at my end. The earlier logging tells me something essentially impossible is happening -- I'm trying to find out exactly where it does so I can talk to the Zotero developers.

retorquere commented 5 years ago

Can you also try this:

If you don't see the reference after you try to paste, see if there's an error in the debug log with the same message (str.trim is not a function)

blip-bloop commented 5 years ago

:robot: this is your friendly neighborhood build bot announcing test build 5.1.33.3296 ("iffy workaround for #1107")

Install in Zotero by downloading test build 5.1.33.3296, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 5 years ago

3296 has a potential workaround for this issue... it's incredibly iffy, and I can only test that it doesn't break anything obvious (since it passes all my tests), but not whether it actually solves your problem (because I cannot reproduce it).

I'm not certain I'm keeping this workaround even if it does work in your case, I'd much rather find a way to reproduce the problem reliably so I can talk to the Zotero devs to address the actual bug, which lives in a library that Zotero includes which I also use. The Chicago test above should confirm that; it uses the same library in the same way (I think), so if that also errors out, we can bring that to Zotero.

geekonloose commented 5 years ago

I have tried with Chicago test. I got error stating An error occurred generating your bibliography. Please try again. with iffy solution and build 3219. So I was not able to even paste data. Both gives same error. Also tried to export complete librarty with better bibtex, the same error persist. I tried exporting Chicago test with debug log enabled. The log reads as:


Warning: NetUtil.newChannel(uri) deprecated, please provide argument 'aWhatToLoad'

Warning: NetUtil.newChannel(uri) deprecated, please provide argument 'aWhatToLoad'

Warning: NetUtil.newChannel(uri) deprecated, please provide argument 'aWhatToLoad'

[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15382}]

[JavaScript Error: "{better-bibtex! +null} Translators.translate failed in {"time":7600,"translatorID":"ca65189f-8815-4afe-8c8b-8c7c15f0edca","displayOptions":{"exportNotes":false,"useJournalAbbreviation":true,"preference_DOIandURL":"both","preference_asciiBibLaTeX":true,"preference_asciiBibTeX":true,"preference_biblatexExtendedNameFormat":true,"preference_bibtexParticleNoOp":true,"preference_bibtexURL":"url","exportPath":"/home/parth/Desktop"},"path":"/home/parth/Desktop/parth.bib"} "]

[JavaScript Error: "{better-bibtex! +6} AutoExport.queue.run: failed {"type":"library","id":1,"path":"/home/parth/Desktop/parth.bib","status":"running","translatorID":"ca65189f-8815-4afe-8c8b-8c7c15f0edca","exportNotes":false,"useJournalAbbreviation":true,"DOIandURL":"both","asciiBibLaTeX":true,"asciiBibTeX":true,"biblatexExtendedNameFormat":true,"bibtexParticleNoOp":true,"bibtexURL":"url","error":"","meta":{"revision":1,"created":1546292786324,"version":0,"updated":1546376996132},"$loki":16} translation failed "]

[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15382}]

[JavaScript Error: "TypeError: str.trim is not a function" {file: "chrome://zotero/content/xpcom/citeproc.js" line: 15375}]
CSL.Output.Formatters</title/config.capitaliseWords@chrome://zotero/content/xpcom/citeproc.js:15375:21
_textcaseEngine@chrome://zotero/content/xpcom/citeproc.js:15263:46
title@chrome://zotero/content/xpcom/citeproc.js:15407:16
CSL.Output.Queue.prototype.append@chrome://zotero/content/xpcom/citeproc.js:3820:26
CSL.Transform/getOutputFunction/<@chrome://zotero/content/xpcom/citeproc.js:12786:17
CSL.tokenExec@chrome://zotero/content/xpcom/citeproc.js:2032:21
CSL.expandMacro/func@chrome://zotero/content/xpcom/citeproc.js:2083:28
CSL.tokenExec@chrome://zotero/content/xpcom/citeproc.js:2032:21
CSL.getCite@chrome://zotero/content/xpcom/citeproc.js:5812:16
CSL.getBibliographyEntries@chrome://zotero/content/xpcom/citeproc.js:6126:38
CSL.Engine.prototype.makeBibliography@chrome://zotero/content/xpcom/citeproc.js:5941:11
makeFormattedBibliography@chrome://zotero/content/xpcom/cite.js:137:13
Zotero.Cite.makeFormattedBibliographyOrCitationList@chrome://zotero/content/xpcom/cite.js:79:23
Zotero_File_Interface</this.copyItemsToClipboard@chrome://zotero/content/fileInterface.js:653:17
_doBibliographyOptions@chrome://zotero/content/fileInterface.js:725:5
bibliographyFromItems@chrome://zotero/content/fileInterface.js:620:3
oncommand@chrome://zotero/content/standalone/standalone.xul:1:1

[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15382}]

[JavaScript Error: "str.trim is not a function" {file: "chrome://zotero-better-bibtex/content/citeproc.js" line: 15382}]

[JavaScript Error: "TypeError: str.trim is not a function" {file: "chrome://zotero/content/xpcom/citeproc.js" line: 15375}]
CSL.Output.Formatters</title/config.capitaliseWords@chrome://zotero/content/xpcom/citeproc.js:15375:21
_textcaseEngine@chrome://zotero/content/xpcom/citeproc.js:15263:46
title@chrome://zotero/content/xpcom/citeproc.js:15407:16
CSL.Output.Queue.prototype.append@chrome://zotero/content/xpcom/citeproc.js:3820:26
CSL.Transform/getOutputFunction/<@chrome://zotero/content/xpcom/citeproc.js:12786:17
CSL.tokenExec@chrome://zotero/content/xpcom/citeproc.js:2032:21
CSL.expandMacro/func@chrome://zotero/content/xpcom/citeproc.js:2083:28
CSL.tokenExec@chrome://zotero/content/xpcom/citeproc.js:2032:21
CSL.getCite@chrome://zotero/content/xpcom/citeproc.js:5812:16
CSL.getBibliographyEntries@chrome://zotero/content/xpcom/citeproc.js:6126:38
CSL.Engine.prototype.makeBibliography@chrome://zotero/content/xpcom/citeproc.js:5941:11
makeFormattedBibliography@chrome://zotero/content/xpcom/cite.js:137:13
Zotero.Cite.makeFormattedBibliographyOrCitationList@chrome://zotero/content/xpcom/cite.js:79:23
Zotero_File_Interface</this.copyItemsToClipboard@chrome://zotero/content/fileInterface.js:672:14
_doBibliographyOptions@chrome://zotero/content/fileInterface.js:725:5
bibliographyFromItems@chrome://zotero/content/fileInterface.js:620:3
oncommand@chrome://zotero/content/standalone/standalone.xul:1:1

[JavaScript Error: "TypeError: str.trim is not a function" {file: "chrome://zotero/content/xpcom/citeproc.js" line: 15375}]
CSL.Output.Formatters</title/config.capitaliseWords@chrome://zotero/content/xpcom/citeproc.js:15375:21
_textcaseEngine@chrome://zotero/content/xpcom/citeproc.js:15263:46
title@chrome://zotero/content/xpcom/citeproc.js:15407:16
CSL.Output.Queue.prototype.append@chrome://zotero/content/xpcom/citeproc.js:3820:26
CSL.Transform/getOutputFunction/<@chrome://zotero/content/xpcom/citeproc.js:12786:17
CSL.tokenExec@chrome://zotero/content/xpcom/citeproc.js:2032:21
CSL.expandMacro/func@chrome://zotero/content/xpcom/citeproc.js:2083:28
CSL.tokenExec@chrome://zotero/content/xpcom/citeproc.js:2032:21
CSL.getCite@chrome://zotero/content/xpcom/citeproc.js:5812:16
CSL.getBibliographyEntries@chrome://zotero/content/xpcom/citeproc.js:6126:38
CSL.Engine.prototype.makeBibliography@chrome://zotero/content/xpcom/citeproc.js:5941:11
makeFormattedBibliography@chrome://zotero/content/xpcom/cite.js:137:13
Zotero.Cite.makeFormattedBibliographyOrCitationList@chrome://zotero/content/xpcom/cite.js:79:23
Zotero_File_Interface</this.copyItemsToClipboard@chrome://zotero/content/fileInterface.js:653:17
_doBibliographyOptions@chrome://zotero/content/fileInterface.js:725:5
bibliographyFromItems@chrome://zotero/content/fileInterface.js:620:3
oncommand@chrome://zotero/content/standalone/standalone.xul:1:1

[JavaScript Error: "TypeError: str.trim is not a function" {file: "chrome://zotero/content/xpcom/citeproc.js" line: 15375}]
CSL.Output.Formatters</title/config.capitaliseWords@chrome://zotero/content/xpcom/citeproc.js:15375:21
_textcaseEngine@chrome://zotero/content/xpcom/citeproc.js:15263:46
title@chrome://zotero/content/xpcom/citeproc.js:15407:16
CSL.Output.Queue.prototype.append@chrome://zotero/content/xpcom/citeproc.js:3820:26
CSL.Transform/getOutputFunction/<@chrome://zotero/content/xpcom/citeproc.js:12786:17
CSL.tokenExec@chrome://zotero/content/xpcom/citeproc.js:2032:21
CSL.expandMacro/func@chrome://zotero/content/xpcom/citeproc.js:2083:28
CSL.tokenExec@chrome://zotero/content/xpcom/citeproc.js:2032:21
CSL.getCite@chrome://zotero/content/xpcom/citeproc.js:5812:16
CSL.getBibliographyEntries@chrome://zotero/content/xpcom/citeproc.js:6126:38
CSL.Engine.prototype.makeBibliography@chrome://zotero/content/xpcom/citeproc.js:5941:11
makeFormattedBibliography@chrome://zotero/content/xpcom/cite.js:137:13
Zotero.Cite.makeFormattedBibliographyOrCitationList@chrome://zotero/content/xpcom/cite.js:79:23
Zotero_File_Interface</this.copyItemsToClipboard@chrome://zotero/content/fileInterface.js:653:17
_doBibliographyOptions@chrome://zotero/content/fileInterface.js:725:5
bibliographyFromItems@chrome://zotero/content/fileInterface.js:620:3
oncommand@chrome://zotero/content/standalone/standalone.xul:1:1

version => 5.0.59, platform => Linux i686, oscpu => Linux i686, locale => en-US, appName => Zotero, appVersion => 5.0.59, extensions => Better BibTex for Zotero (5.1.33.3296, extension), Zotero Scholar Citations (1.9.3, extension, disabled), ZotFile (5.0.9, extension, disabled), Zotero LibreOffice Integration (5.0.14.SA.5.0.59, extension, disabled)

(4)(+0056170): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [259, 3, 'http://www.iaea.org/inis/collection/NCLCollectionStore/_Public/33/015/33015262.pdf']

(4)(+0000026): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [259, 3, 'http://www.iaea.org/inis/collection/NCLCollectionStore/_Public/33/015/33015262.pdf']

(4)(+0000012): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [259, 3, 'http://www.iaea.org/inis/collection/NCLCollectionStore/_Public/33/015/33015262.pdf']

(4)(+0000016): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [259, 3, 'http://www.iaea.org/inis/collection/NCLCollectionStore/_Public/33/015/33015262.pdf']

(3)(+0000020): MIME type application/pdf cannot be handled internally

(4)(+0000006): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [259, 3, 'http://www.iaea.org/inis/collection/NCLCollectionStore/_Public/33/015/33015262.pdf']

(4)(+0000254): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [259, 3, 'http://www.iaea.org/inis/collection/NCLCollectionStore/_Public/33/015/33015262.pdf']

(3)(+0004562): {better-bibtex +61240} cache hit: {"itemID":259,"legacy":false,"skipChildItems":true}

(3)(+0000002): {better-bibtex +2} JournalAbbrev.get: getting from serialised

(3)(+0000002): {better-bibtex +0} JournalAbbrev.get: trying publicationTitle

(3)(+0000000): {better-bibtex +2} JournalAbbrev.get: trying reporter

(3)(+0000000): {better-bibtex +0} JournalAbbrev.get: trying code

(3)(+0000204): Alert: An error occurred generating your bibliography. Please try again.
retorquere commented 5 years ago

It's really a lot easier for me if you submit error logs through BBTs error report -- these error snippets really don't give me enough information.

There's a reference with booktitle Proc. 9th Int. Conf. Nuclear Engineering (ICONE-9) in your library, can you right-click that and send a new BBT Error report?

But that the Chicago test fails is actually good news for me -- the iffy fix was applied to a private copy of the library I took from Zotero's source, not to the one that is used by Zotero itself -- so at least it's reproducible for you. Can you uninstall BBT and try that test again?

geekonloose commented 5 years ago

Sorry for inconvenience. The error log id for Chicago test is YDUYTWUV-apse. As you said after uninstalling the BBT, the error persist for Chicago test.

retorquere commented 5 years ago

That doesn't look like a log created from right-clicking a reference. Can you please right-click Proc. 9th Int. Conf. Nuclear Engineering (ICONE-9) in your library and select Send BBT Error report from that popup menu.

retorquere commented 5 years ago

Also I need that error report from Proc. 9th Int. Conf. Nuclear Engineering (ICONE-9) in your library after you tried the Chicago test and an export using Better BibTeX that yields errors.

geekonloose commented 5 years ago

Hii..!! While sending through right click I am experiencing error regarding proxy (sometimes). Error: HTTP PUT http://better-bibtex-error-reports-62200312-apse.s3-ap-southeast-1.amazonaws.com/QITGGDW9-apse-2019-01-01T22.20.22/QITGGDW9-apse-debug.txt failed with status code undefined (QITGGDW9-apse, references: true) After againg sending report it generates and sends the error log. Report id after chicago test : ZFFDEPV9-apse Report id just right click and report BBT error of reference (ICONE-9): UHT6LGBS-apse

retorquere commented 5 years ago

Can you tell me what region tests best for you on http://cloudharmony.com/speedtest-for-aws:s3, and what speed you get there? I would expect ap-southeast-1 would do better for you than eu-central-1.

geekonloose commented 5 years ago

Yes ap-south-1 is best. Second best is ap-southeast-1. And third is eu-central-1 ap-south-1 is 46.2 MB/s for downlink 256kb-10MB (2 threads) and with downling 1-128kb/4 thread I am getting 11Mb/s with latency of 39 ms. one

But why???

blip-bloop commented 5 years ago

:robot: this is your friendly neighborhood build bot announcing test build 5.1.36.3306 ("hard-code iffy fix")

Install in Zotero by downloading test build 5.1.36.3306, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 5 years ago

OK, so that's good at least. What's best for AWS services is not always easy to figure out, but BBT tests before submission and picks the fastest between ap-southeast-1 (that's the apse you see) and eu-central-1.

3306 hard-codes the iffy fix, and adds retries for debug log submissions. The debug log submissions failing may well be related to the proxy server (maybe it's slow, maybe it doesn't like the filesize, hard to tell).

The Chicago test (and for the same reason BBT) erroring out is a mistery to me. I've reported it to Zotero but as far as I can tell, what you're experiencing should simply not be possible in Javascript. That explains why I can't reproduce it but not why it's happening on your end. I can put in place a workaround for BBT (as iffy as it is), but not for the Zotero problem itself; they'll very likely need your help to diagnose the problem, because chances are they won't be able to replicate it either.

geekonloose commented 5 years ago

Now it is not giving error for BBTs (I have tested for library also). Atleast that will work for now :+1: Still Chicago test fails. I will be happy to help for diagnosis. Even I can allow remote access of my pc through teamviewer like software. if that is available for linux and proxy configurable.

retorquere commented 5 years ago

I could theoretically patch the error in Zotero in the same way but I'd rather not mess with their code. Please do let me know if progress is made on the Chicago test for Zotero -- I'll roll this workaround into a new release, but I'll be happy to remove it once the actual problem is fixed.

Auto-Index ought to also work again, but it's not as fine-grained as it used to be. I could previously do auto-index only when Zotero was idle; I do now wait for Zotero to go idle, but once it starts, I can't stop it anymore when you use Zotero again, so it will run to completion.

retorquere commented 5 years ago

If you subscribe to the Zotero issue, you will get notifications when the Zotero devs ask for feedback.

retorquere commented 5 years ago

What Linux distro are you on BTW, and how did you install Zotero?

blip-bloop commented 5 years ago

:robot: this is your friendly neighborhood build bot announcing test build 5.1.36.3307 ("cleanup")

Install in Zotero by downloading test build 5.1.36.3307, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".