-
Notifications
You must be signed in to change notification settings - Fork 18
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
Unhandled Promise Rejection #45
Comments
Nope, LDflex does 🙂 Thanks for the testcase. |
OK! I'm diving in to fix this. The code is quite hard to read for me so far, but making progress. https://github.com/RubenVerborgh/LDflex/blob/master/src/defaultHandlers.js#L25 seems to be what is adding the Promise behaviour, so maybe that gives me a route to where I can add some error handling for this. |
My suspicion is that the error will actually be down in Comunica (given that Comunica is the one doing the fetching, and that we are not getting back a Comunica error). It might be this module: https://github.com/comunica/actor-http-solid-auth-fetch |
Upon closer inspection, this issue is indeed a duplicate of LDflex/Query-Solid#30. The root cause is comunica/comunica#565. |
Should be fixed in Comunica 1.14.0 |
I edited the example from the readme to wrap https://github.com/RubenVerborgh/LDflex#looking-up-data-on-the-web in a try-catch, and change the domain name to a non-existing one ending in
.orgz
:The result is as follows:
Am I doing something wrong? Could this be related to LDflex/Query-Solid#30 ?
This code works correctly when you change 'rubenverborgh.orgz' back to 'rubenverborgh.org'.
The text was updated successfully, but these errors were encountered: