-
Notifications
You must be signed in to change notification settings - Fork 39
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
Export is null on certain conditions #69
Comments
Any idea what the exact issue is with that request? Is that visible in the tracer view? |
Yes it is. |
@bzbzh were any of the traced events blocked by Firefox due to a security warning, i.e. for a self-signed certificate which hadn't been accepted? Or which had popped the warning and then you accepted to proceed anyway? i.e. see: #66 (comment) I'm able to replicate the trace js error that causes a null export under that condition. |
@kellenmurphy I have no "Accept Risk and Continue" message. The certificate is a let's encrypt one. Is there another way/thing to test? |
@bzbzh Okay, no need for more testing... it is telling though that there's something odd about certain traces. I'm going to dig on the thread I have re: self-signed cert warnings to see if I can isolate why that gets the |
Hm... So @kellenmurphy was able to replicate this... I wasn't. I used the super-handy testing website https://badssl.com. However, this trace can still be exported without any problems. The response-less request simply does not end up in the output. Ok, that could of course also be considered an error. But that would probably be a separate topic. What exactly do you have to do to recreate the null error? |
I seem to have come across the same issue Env/actions:
I'm able to see the results of the SAML trace onscreen, but when I do an export I get a 4 byte file that just has the word "null" printed in it. |
Unfortunately that's not reproducible for us @chris18890 ... |
It would be great if someone who encounters this issue and can actually reproduce it, could see if they can debug it/find the cause. |
Oddly enough though, it worked perfectly on firefox!
Is there anything I can help with in terms of reproducing it? |
@chris18890 If you can reproduce it, you could try and opening the 'developer tools' in your add-on window and see if anything is being blocked why you try to export. |
I believe I ran into this issue as well, and may have steps to reproduce in Firefox. You can contrive a scenario where this works in the context of a SAML exchange, but it's equally present on a visit to google.com:
This reproduction works because, from my understanding, a bug in Request Blocking in Firefox allows the request to actually be sent but the response is ignored: https://bugzilla.mozilla.org/show_bug.cgi?id=1756770 The real-life use-case where I saw this occurred when JS in the page was cancelling the request before it could ever complete - the request went out, but it was cancelled before the response was received. However, no record of the request could be found in a SAML Tracer export even though it appeared "live" when viewing the network activity there. |
Here is the error in the console log when I click on "export" (the one in the toolbar, not the one in the pop-up):
In the pop-up, if I hover the "export" button, this is the preview URL Windows 10 22H2 |
I have the same setup of Windows and Chrome-version, but I cannot reproduce this at all.. I'm suspecting that this issue is related to some other add-on like a script-blocker.. |
I just disabled uBlock Origin and everything works fine now! Thank you. |
It must be some non-default setting @KLuK9, because I installed that add-on and SAML-tracer export keeps working. |
For certain SAML traces it occured to me than the export return an empty file (in fact a file with "null" inside).
An error raises here:
When trying to stringify "req.getResponse()" when it returns null.
I wonder if it would be a good solution to alter this:
In particular:
tracer.addRequestItem(entry, () => entry.res);
to
tracer.addRequestItem(entry, () => entry.res || {});
or so
So the whole trace can be exported dispite one of them acts oddly.
The text was updated successfully, but these errors were encountered: