Comments (21)
@dvanoni It seems to be working on my home Wifi so this is apparently a work network issue which I should be able to get fixed on my end. Thank you again so much for your help! 10/10
from notero.
thanks everyone.
The problem has been solved. It's my network problem, not a bug with the plug-in. It's solved when I turn down my vpn.
I think this issue could be closed. thanks again.
from notero.
@dvanoni I am getting one of these:
I think this could be something I could check with for IT services at my job site tomorrow. I might also try to sync on my personal computer in a couple of hours too when I'm on my home WiFi. I will let you know if I get different results. Thank you for your help!
from notero.
I ran into this issue as well. It is the problem of VPN. Thanks for the above solution.
from notero.
Hi @appw-cn, thanks for the feedback!
I haven't seen this error before, so I'm not sure exactly what's causing it. Could you provide a couple more pieces of information for me?
- What version of Zotero are you using?
- Can you send a screenshot of the error logs?
- Open Tools > Developer > Error Console
- Click the Clear button at the top
- Try to perform the same action that caused the error
- Take a screenshot of any messages that appear in the console
Thanks!
from notero.
Re:
I had this same error message. I performed the above: here is a screenshot of my error message from the console.
Thank you!
from notero.
@daniboy23 thanks for the screenshot!
Would you mind trying some commands in Zotero's JavaScript console? You can open it from Tools → Developer → Run JavaScript. Once you open it, please enable the Run as async function option.
First, I'd like to see if we can perform a basic network request. Paste the following code and click Run.
return fetch('https://www.zotero.org/').then(response => response.text());
Do you see HTML content in the right panel, or do you see an error? If you see an error, please let me know what it is. If you see HTML, let's try performing a request to the Notion API.
const databaseID = Zotero.Prefs.get('extensions.notero.notionDatabaseID', true);
const notionToken = Zotero.Prefs.get('extensions.notero.notionToken', true);
const headers = {
'Authorization': `Bearer ${notionToken}`,
'Notion-Version': '2022-02-22'
};
return fetch(
`https://api.notion.com/v1/databases/${databaseID}`,
{ headers }
).then(response => response.json());
Can you let me know what the result of this is? Thanks!
from notero.
Hi @dvanoni
Thank you for your response. I have done the first half of your message and received an HTML:
How would I now perform the request to the Notion API in the second half of your message?
Thank you!
from notero.
Re:
If this helps, I copied and pasted your second code as I did the first and received the error message:
Let me know what I can do to help!
from notero.
I also noticed that if I insert the first code into the Java program and click run multiple times, certain elements of the return message changes
from notero.
@daniboy23 thanks for running those! It seems that network requests in general are working—we can see that fetching https://www.zotero.org
worked just fine—but there's something going on with requests to Notion.
Could you provide some more info to help me debug?
- What version of Zotero are you using?
- What other plugins do you have installed in Zotero?
- Do you have any ad blockers or similar software installed on your system that could be blocking requests to Notion?
Thanks!
from notero.
- Zotero version is 6.0.8
- Aside from Notero, my add-ons page says I have Zotero LibreOffice Integration and Zotero Word for Windows Integration:
- I checked my extensions and I don't have any ad blockers software being used there. I also turned off ad blocker in my settings as well as pop up blocker and the same NetworkError message kept appearing.
Thanks for looking into this!
from notero.
@daniboy23 there doesn't seem to be anything out of the ordinary there. 🤔
Out of curiosity, what result do you get if you run this in the console?
return fetch('https://api.notion.com/').then(response => response.text());
from notero.
@dvanoni This was the return message:
from notero.
Ah sorry @daniboy23, I forgot to mention: please enable the Run as async function option.
from notero.
@dvanoni Oops, sorry here is the message:
from notero.
Hmm interesting. @daniboy23 what happens if you open https://api.notion.com in your browser?
from notero.
@dvanoni Very interesting! That worked. Do you know why it worked now so that I can try to fix it on my own in the future?
Thank you so much for all of you help!
from notero.
@daniboy23 do you mean that the plugin is working correctly now and able to sync items into Notion?
from notero.
@dvanoni It did work yesterday, but not today. I noticed I cannot open https://api.notion.com in my browser today like I could yesterday.
from notero.
@daniboy23 Huh, well that's interesting. It sounds like it might be something related to your internet provider or DNS provider.
Would you mind sending a screenshot of your browser when you try to open the URL? I'm curious to see what the specific error message is. Thanks!
from notero.
Related Issues (20)
- Make database not full width / allow toggling full width HOT 2
- inline equation is not rendered in notion note HOT 3
- Collection AutoSync list not showed on Windows 11 HOT 2
- Sync annotation authors
- Sync items added while Zotero window is closed
- API Response Error: text is expected to be rich_text HOT 3
- sync from notion to zotero HOT 1
- [Bug] Notero add-on still recognized but features are broken HOT 7
- could not find database error HOT 4
- Can't get sync of Notes working HOT 3
- APIResonseError: Could not find database with ID HOT 7
- Note syncing - split large requests into multiple requests
- Support custom property mapping HOT 1
- Collections Sync not working HOT 1
- APIResonseError: invalid request URL HOT 4
- Add 'Select All New Folders' option for automatic future folder synchronization HOT 4
- APIResponseError: Can't update a page that is archieved. You must unarchive the page before updating HOT 7
- Vary the Notion page icon based on paper types HOT 1
- different zotero libraryto different notion pages HOT 1
- Having issues with Zortero and Notion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notero.