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

TypeError: Expected sixth argument to be a 32-bit signed integer #75

Closed
scholzri opened this issue Oct 28, 2022 · 4 comments
Closed

TypeError: Expected sixth argument to be a 32-bit signed integer #75

scholzri opened this issue Oct 28, 2022 · 4 comments

Comments

@scholzri
Copy link

When trying to read the Zotero database, the plugin gives me the following error:

app.js:1 Obsidian Developer Console
node:electron/js2c/renderer_init:89 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
  Policy set or a policy with "unsafe-eval" enabled. This exposes users of
  this app to unnecessary security risks.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
warnAboutInsecureCSP @ node:electron/js2c/renderer_init:89
plugin:quickadd:16120 Loading QuickAdd
plugin:obsidian42-brat:23 loading Obsidian42 - BRAT
plugin:obsidian-zotero-plugin:6 [2022-10-28T12:52:21.960] [INFO] obsidian-zotero:main - loading Obsidian Zotero Plugin
plugin:obsidian-zotero-plugin:6 [2022-10-28T12:52:21.969] [INFO] obsidian-zotero:main - Auto refresh set to true
de8e4076-43c4-4622-9fc8-36dcd3274334:48 [2022-10-28T12:52:22.075] [INFO] obsidian-zotero:db-worker - Database opened:  /home/richard/Zotero/zotero.sqlite
de8e4076-43c4-4622-9fc8-36dcd3274334:48 [2022-10-28T12:52:22.077] [INFO] obsidian-zotero:db-worker - Unable to open bbt database, no database found at /home/richard/Zotero/zotero.sqlite
plugin:obsidian-zotero-plugin:6 [2022-10-28T12:52:22.079] [INFO] obsidian-zotero:main - Failed to open Better BibTeX database, skipping...
de8e4076-43c4-4622-9fc8-36dcd3274334:58 TypeError: Expected sixth argument to be a 32-bit signed integer
    at new de (de8e4076-43c4-4622-9fc8-36dcd3274334:48:13144)
    at Bs.acquireRawConnection (de8e4076-43c4-4622-9fc8-36dcd3274334:48:13863)
    at create (de8e4076-43c4-4622-9fc8-36dcd3274334:46:873)
(anonymous) @ de8e4076-43c4-4622-9fc8-36dcd3274334:58
plugin:obsidian-zotero-plugin:193 Uncaught (in promise) TypeError: Expected sixth argument to be a 32-bit signed integer
    at new de (blob:app://obsidian.md/de8e4076-43c4-4622-9fc8-36dcd3274334:48:13144)
    at Bs.acquireRawConnection (blob:app://obsidian.md/de8e4076-43c4-4622-9fc8-36dcd3274334:48:13863)
    at create (blob:app://obsidian.md/de8e4076-43c4-4622-9fc8-36dcd3274334:46:873)
@aidenlx
Copy link
Member

aidenlx commented Oct 31, 2022

What system are you using? you can post debug info with show debug info command:
image

@scholzri
Copy link
Author

output of show debug info:

SYSTEM INFO:
	Obsidian version: v1.0.3
	Installer version: v1.0.3
	Operating system: #1 SMP PREEMPT_DYNAMIC Wed, 26 Oct 2022 15:25:45 +0000 6.0.5-arch1-1
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 4
	Plugins enabled: 2
		1: QuickAdd v0.5.5
		2: Zotero Plugin v1.0.0-beta.0

RECOMMENDATIONS:
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

I am using Arch Linux btw :)

@aidenlx
Copy link
Member

aidenlx commented Oct 31, 2022

Could you try to reinstall the binary? I’ve update binary with a patched version. You can manually delete better-sqlite3-*.node in .obsidian to trigger the install page

@scholzri
Copy link
Author

That worked!

Thank you. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants