Comments (7)
I'll add on to this.
Some links (specifically youtube CHANNELS) cannot be added as source for some reason. I don't even get an error toast, just straight up nothing happens haha
Attempting to add https://www.youtube.com/@ccmusicc (or any other channel link) will results in nothing happening.
Youtube VIDEOS on the other hand can be added without an issue. Knowledge doesn't allow us to manually edit the link target, it's impossible to add links to channels
from knowledge.
Thank you all for the analysis. I am aware of this issue but haven't had time to deep dive.
One quick solution is to alert the user when an import fails and allow you to "Import Anyways". This will likely result in a Source without icons/thumbnails/metadata, etc., but at least the link will be imported.
Another solution is to load the page in a separate window/view (which will behave differently than just using a GET
and then have a Confirm Import
button).
I might implement the quick solution for next release and think on a more longterm solution for later.
from knowledge.
Knowledge is actually handling N-level domains without issue as long as the domain is reachable. This error message could be changed to something more precise, e.g. "Website unreachable". Even better, perhaps display the HTTP response code in a debug level notification.
from knowledge.
It is not tho, this is the original URL I tried https://play.google.com/ which is very clearly real and reachable, it does however fail regardless
from knowledge.
After some debugging it appears that yes, it does seem to handle N-level domains, the issue is actually something else, specifically a 403 response, perhaps when making the request it's not setting a proper agent? I can't see why else specifically google play website wouldn't be working, I did try a couple of other websites with 3 level domain and they do in fact work
from knowledge.
Replicating the same request using the same exact headers copied from network tab in DevTools seems to be working and 200 is returned with the page content in Java
HttpURLConnection uc = (HttpURLConnection) new URL("https://play.google.com/").openConnection();
uc.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Knowledge/0.7.0 Chrome/106.0.5249.165 Electron/21.2.1 Safari/537.36");
uc.addRequestProperty("cookie", "NID=511=IV2Uq0rfCoFIKKGF5DeICTV76wCw9daPy6U1p8UEzXFvZLPTR9Hu1P2IvnZ8MlZo5qB7T4UwkcXIY5dYNYK3C1CNPjXmAxBPQh5eBB1NiHwu2iwxMsOlx3Zw8BqI5Cqa0lg9SvNClryP8i6BZ4su70mof_r1qusby8wuJTaoqnY");
uc.addRequestProperty("accept-encoding", "gzip, deflate, br");
uc.addRequestProperty("accept-language", "en-US");
uc.addRequestProperty("sec-ch-ua", "\"Not;A=Brand\";v=\"99\", \"Chromium\";v=\"106\"");
uc.addRequestProperty("sec-ch-ua-mobile", "?0");
uc.addRequestProperty("sec-ch-ua-platform", "Windows");
uc.addRequestProperty("sec-fetch-dest", "empty");
uc.addRequestProperty("sec-fetch-mode", "cors");
uc.addRequestProperty("sec-fetch-site", "cross-site");
uc.connect();
System.out.println(uc.getResponseCode());
This ends my testing, I'm not knowledgeable enough regarding electron to properly pinpoint the issue
from knowledge.
I'll add on to this. Some links (specifically youtube CHANNELS) cannot be added as source for some reason. I don't even get an error toast, just straight up nothing happens haha
Attempting to add https://www.youtube.com/@ccmusicc (or any other channel link) will results in nothing happening. Youtube VIDEOS on the other hand can be added without an issue. Knowledge doesn't allow us to manually edit the link target, it's impossible to add links to channels
Interesting, this actually worked for me:
from knowledge.
Related Issues (20)
- [Bug] Can't open the application - Malicious software - v0.7.1 HOT 2
- Obsidian Plugin HOT 7
- Build errors when building HOT 2
- feature request: add llama.cpp support for local inference like privategpt HOT 6
- [BUG] Chat not working (Win10) HOT 2
- [Feature] Add direct chat link to context menus and grid cards HOT 2
- [Feature] Add basic actions links to tabular view HOT 1
- Local llma support and altenative aside openai apikey HOT 1
- Customize the cover images HOT 5
- Chat hallucinate HOT 1
- Is it possible to change file manager to shared drive?
- GPT-4? HOT 6
- My OpenAI API key is correct, but it keeps giving me errors. HOT 1
- Autoscan hangs for large directories HOT 1
- [Feature] Import list of URLS
- [Bug] Renaming a subproject with a 3 letter name doesn't work HOT 2
- [Feature/Request]: Source Icons / Project Icons HOT 1
- [Bug]: App force-reloads when PDFs are moved or cannot be found HOT 1
- [Bug] Graph sometimes displays empty node HOT 3
- [Bug] Maximizing the window covers the taskbar 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 knowledge.