You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by J Mohamed Zahoor <za...@indix.com> on 2013/01/30 14:13:09 UTC

Solr 4.1 UI fail to display result

Hi 

Iam using 4.1 release and i see a problem when i set the response type as JSON in the UI.

I am using Safari 6.0.2 and i see a "SyntaxError: JSON Parse error: Unrecognized token '<'".

app.js line 465. When i debug more.. i see the response is still coming in XML format.


Is anyone else facing this problem?

./Zahoor

Re: Solr 4.1 UI fail to display result

Posted by J Mohamed Zahoor <za...@indix.com>.
Hi Alex,

Cleared Cache -  Problem persists.
Disabled Cache - problem Persists.

This was in Safari though.

./zahoor


On 30-Jan-2013, at 6:55 PM, Alexandre Rafalovitch <ar...@gmail.com> wrote:

> Before worrying about anything else, try doing a full cache clean. My
> (Chrome) browser was caching Solr 4.0 resources for unreasonably long
> period of time until I completely disable its cache (in dev tools) and
> tried the full reload.
> 
> Or try a browser you did not use before.
> 
> Regards,
>   Alex.
> 
> Personal blog: http://blog.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all at
> once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)
> 
> 
> On Wed, Jan 30, 2013 at 8:17 AM, J Mohamed Zahoor <za...@indix.com> wrote:
> 
>> The stack is
>> 
>> format_json  -- app.js  (465)
>> json -- query.js (59)
>> complete - query.js (77)
>> fire -- require.js (3099)
>> fireWith -- require.js (3217)
>> done -- require.js (9469)
>> callback -- require.js (10235)
>> 
>> ./zahoor
>> 
>> 
>> On 30-Jan-2013, at 6:43 PM, J Mohamed Zahoor <za...@indix.com> wrote:
>> 
>>> Hi
>>> 
>>> Iam using 4.1 release and i see a problem when i set the response type
>> as JSON in the UI.
>>> 
>>> I am using Safari 6.0.2 and i see a "SyntaxError: JSON Parse error:
>> Unrecognized token '<'".
>>> 
>>> app.js line 465. When i debug more.. i see the response is still coming
>> in XML format.
>>> 
>>> 
>>> Is anyone else facing this problem?
>>> 
>>> ./Zahoor
>> 
>> 


Re: Solr 4.1 UI fail to display result

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Before worrying about anything else, try doing a full cache clean. My
(Chrome) browser was caching Solr 4.0 resources for unreasonably long
period of time until I completely disable its cache (in dev tools) and
tried the full reload.

Or try a browser you did not use before.

Regards,
   Alex.

Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all at
once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)


On Wed, Jan 30, 2013 at 8:17 AM, J Mohamed Zahoor <za...@indix.com> wrote:

> The stack is
>
> format_json  -- app.js  (465)
> json -- query.js (59)
> complete - query.js (77)
> fire -- require.js (3099)
> fireWith -- require.js (3217)
> done -- require.js (9469)
> callback -- require.js (10235)
>
> ./zahoor
>
>
> On 30-Jan-2013, at 6:43 PM, J Mohamed Zahoor <za...@indix.com> wrote:
>
> > Hi
> >
> > Iam using 4.1 release and i see a problem when i set the response type
> as JSON in the UI.
> >
> > I am using Safari 6.0.2 and i see a "SyntaxError: JSON Parse error:
> Unrecognized token '<'".
> >
> > app.js line 465. When i debug more.. i see the response is still coming
> in XML format.
> >
> >
> > Is anyone else facing this problem?
> >
> > ./Zahoor
>
>

Re: Solr 4.1 UI fail to display result

Posted by J Mohamed Zahoor <za...@indix.com>.
The stack is

format_json  -- app.js  (465)
json -- query.js (59)
complete - query.js (77)
fire -- require.js (3099)
fireWith -- require.js (3217)
done -- require.js (9469)
callback -- require.js (10235)

./zahoor


On 30-Jan-2013, at 6:43 PM, J Mohamed Zahoor <za...@indix.com> wrote:

> Hi 
> 
> Iam using 4.1 release and i see a problem when i set the response type as JSON in the UI.
> 
> I am using Safari 6.0.2 and i see a "SyntaxError: JSON Parse error: Unrecognized token '<'".
> 
> app.js line 465. When i debug more.. i see the response is still coming in XML format.
> 
> 
> Is anyone else facing this problem?
> 
> ./Zahoor


Re: Solr 4.1 UI fail to display result

Posted by Stefan Matheis <ma...@gmail.com>.
I know, it's a bit late on this thread, but for the record - filed and already fixed: https://issues.apache.org/jira/browse/SOLR-4349 



On Saturday, February 2, 2013 at 6:35 PM, J Mohamed Zahoor wrote:

> It works In chrome though...
> 
> ./Zahoor@iPhone
> 
> On 02-Feb-2013, at 4:34 PM, J Mohamed Zahoor <zahoor@indix.com (mailto:zahoor@indix.com)> wrote:
> 
> > > 
> > > I'm not sure why .. but this sounds like the JSON Parser was called with an HTML- or XML-String? After you hit the "Execute" Button on the Website, on the top of the right content-area, there is a link - which is what the UI will request .. if you open that in another browser-tab or with curl/wget .. what is the response you get? Is that really JSON? Or perhaps some kind of Error Message?
> > 
> > The link itself does not seem to be okay. It shows only this for q=*:*
> > 
> > http://localhost:8983/solr/collection1/select?
> > 
> > But if i add a "wt=json" in another tab.. i get a json response.
> > 
> > ./zahoor 



Re: Solr 4.1 UI fail to display result

Posted by J Mohamed Zahoor <za...@indix.com>.
It works In chrome though...

./Zahoor@iPhone

On 02-Feb-2013, at 4:34 PM, J Mohamed Zahoor <za...@indix.com> wrote:

>> 
>> I'm not sure why .. but this sounds like the JSON Parser was called with an HTML- or XML-String? After you hit the "Execute" Button on the Website, on the top of the right content-area, there is a link - which is what the UI will request .. if you open that in another browser-tab or with curl/wget .. what is the response you get? Is that really JSON? Or perhaps some kind of Error Message?
> 
> The link itself does not seem to be okay. It shows only this for q=*:*
> 
> http://localhost:8983/solr/collection1/select?
> 
> But if i add a "wt=json" in another tab.. i get a json response.
> 
> ./zahoor
> 

Re: Solr 4.1 UI fail to display result

Posted by J Mohamed Zahoor <za...@indix.com>.
> 
> I'm not sure why .. but this sounds like the JSON Parser was called with an HTML- or XML-String? After you hit the "Execute" Button on the Website, on the top of the right content-area, there is a link - which is what the UI will request .. if you open that in another browser-tab or with curl/wget .. what is the response you get? Is that really JSON? Or perhaps some kind of Error Message?

The link itself does not seem to be okay. It shows only this for q=*:*

http://localhost:8983/solr/collection1/select?

But if i add a "wt=json" in another tab.. i get a json response.

./zahoor


Re: Solr 4.1 UI fail to display result

Posted by Stefan Matheis <ma...@gmail.com>.
On Wednesday, January 30, 2013 at 2:13 PM, J Mohamed Zahoor wrote:
> I am using Safari 6.0.2 and i see a "SyntaxError: JSON Parse error: Unrecognized token '<'".


I'm not sure why .. but this sounds like the JSON Parser was called with an HTML- or XML-String? After you hit the "Execute" Button on the Website, on the top of the right content-area, there is a link - which is what the UI will request .. if you open that in another browser-tab or with curl/wget .. what is the response you get? Is that really JSON? Or perhaps some kind of Error Message?