Open GoogleCodeExporter opened 8 years ago
Original comment by odva...@gmail.com
on 18 Dec 2012 at 8:48
[deleted comment]
Hi,
This issue is there in HarViewer 2.0.15 with Firefox browsers 12,14,16,17.
Is there a workaround/fix?
Thanks in advance
Original comment by gowri.shivakumar
on 19 Jan 2013 at 11:10
I can't reproduce the problem on my machine.
I tried Fx: 14, 16, 18, 20, 21 + Win Vista
It just seem to be working for me.
Do you see any other errors?
(e.g. in Firefox Error Console or Firebug Console panel)
Honza
Original comment by odva...@gmail.com
on 21 Jan 2013 at 2:26
What Firefox localization do you use?
Does it work if you use en-US ?
Honza
Original comment by odva...@gmail.com
on 21 Jan 2013 at 2:27
Localization is already en-US itself, even though it doesnt work ,Using windows
7
No othere errors on firebug consoles
Original comment by gowri.shivakumar
on 22 Jan 2013 at 3:46
Tried on windows XP also, Have installed the Harviewer applicaiton 2.0.15 on
Tomcat server 6.0.35.
Original comment by gowri.shivakumar
on 22 Jan 2013 at 3:49
Could you debug the code?
My guess is that the problem could be related to the way how the HAR file
content is parsed. The parsing is done using jQuery here:
https://github.com/janodvarko/harviewer/blob/master/webapp/scripts/preview/harMo
del.js#L191
Perhaps the method fails?
Honza
Original comment by odva...@gmail.com
on 22 Jan 2013 at 7:34
Yes, it fails in the parse method at the line "var result =
JSONSchema.validate(input, resolvedSchema.logType);"
If I make validate flag to false, then it displayes blank in the preview
But the same har file works perfectly fine on Chrome and IE9.
Can you please advise on a workaround/solution.
Thanks
Original comment by gowri.shivakumar
on 22 Jan 2013 at 11:26
Also in the firebug , in the console for the get request,under XML get this msg
"XML Parsing Error: not well-formed Location:
moz-nullprincipal:{9995528c-4543-4554-a5d2-011ac6bc192d} Line Number 1, Column
1:
{
^"
Attached is the screenshot.
Thanks for looking into the issue.
Original comment by gowri.shivakumar
on 22 Jan 2013 at 11:33
Attachments:
> Also in the firebug , in the console for the get request,under XML
The content is JSON, what do you see under JSON?
Honza
Original comment by odva...@gmail.com
on 22 Jan 2013 at 11:39
Json seems to be okay,Attached is the screenshot of same
Original comment by gowri.shivakumar
on 22 Jan 2013 at 11:42
Attachments:
> Yes, it fails in the parse method at the line "var result =
> JSONSchema.validate(input, resolvedSchema.logType);"
> If I make validate flag to false, then it displayes blank in the preview
So, the jQuery.parseJSON(jsonString); is OK?
The "input" variable contains parsed HAR file content?
If yes, we need to find out why the preview is blank...
Weird is that I can't reproduce it...
Honza
Original comment by odva...@gmail.com
on 22 Jan 2013 at 11:51
Hi,
Actually the online one i.e
http://www.softwareishard.com/har/viewer/?path=examples/google.com.har
works fine in firefox.
I have taken the
http://code.google.com/p/harviewer/downloads/detail?name=harviewer-2.0-15.zip&ca
n=2&q= and installed on my local tomcat server 6.0.35(Windows 7 and also on
linux same issue)
I hope it is the same as the online one in terms of version and code.
Thanks
Original comment by gowri.shivakumar
on 22 Jan 2013 at 11:51
> I hope it is the same as the online one in terms of version and code.
Yes, the online should be the same, but you should verify. Something seems
to be different if one version works and the other does not.
Honza
Original comment by odva...@gmail.com
on 22 Jan 2013 at 11:57
[deleted comment]
Hi,
got it working, added the dataType as json in $.ajax method and now it seems
fine.
For some reason in firefox the har file was not returned as json.
Thanks
Original comment by gowri.shivakumar
on 22 Jan 2013 at 3:59
Excellent!
Could you attach your changes as a patch?
Honza
Original comment by odva...@gmail.com
on 22 Jan 2013 at 4:02
Attached is the harModel.js
Change made is in method loadLocalArchive
added dataType: "json" in $.ajax(line 385)
Actually it is there in method loadRemoteArchive,If only I had figured out that
firefox wasn't reading har as json it would have been easier to fix.
Thanks
Original comment by gowri.shivakumar
on 22 Jan 2013 at 4:19
Attachments:
Original issue reported on code.google.com by
mrbigh...@gmail.com
on 18 Dec 2012 at 6:26