Open AronBuzogany opened 1 year ago
I do not get logs in console
What console do you refer to? The browser console? Or the execution log on the page? (this is where logs should be printed to)
I am trying to achieve this because when encountering an UnauthorizedHttpError no results get shown not even those for which I was authorized. When using lenient mode to prevent this, the fact that I am unautherized doesn't get logged anymore.
What happens when you try this on the command-line (or a JS app)?
The browser console? Or the execution log on the page? (this is where logs should be printed to)
Both, I checked browser console, "server" console and the execution log. Other errors such as Network Errors or 404 get displayed in the execution log correctly. From what I've tried it's only UnauthorizedHttpError
that doesn't get displayed on the execution log.
What happens when you try this on the command-line (or a JS app)?
I haven't tried this yet.
From what I've tried it's only UnauthorizedHttpError that doesn't get displayed on the execution log.
And where does this error come from exactly? Are you using some kind of auth mechanism? If so, perhaps the error is not being propagated correctly?
And where does this error come from exactly?
It originates from a SolidPod which I try to querry but for which I am not authorized.
Are you using some kind of auth mechanism?
I am using all basic settings except for lenient mode.
Could be a bug then in the solid auth logic, where it doesn't propagate errors.
Oh okay, I will look into this. Thanks for your help!
Currently in the source code the logger is set to
info
level.I tried to adjust this by changing it to e.g.
trace
, logging the context before querying confirms that thelogger
is indeed changed totrace
, but the outcome remains the same (in the execution log) and I do not get logs in console while in devnpm run dev
or by building a static version and hosting it withhttp-server.
I am trying to achieve this because when encountering an
UnauthorizedHttpError
no results get shown not even those for which I was authorized. When using lenient mode to prevent this, the fact that I am unautherized doesn't get logged anymore.