v1.7 example "Window_Basic/Hello_World" ---> Unexpected token '<'

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    v1.7 example "Window_Basic/Hello_World" ---> Unexpected token '<'

    Hello,

    (It's a problem that only runs when the DNS site is proxied by Cloudflare). In this case:

    Does somebody Knows why the v1.7 example "Window_Basic/Hello_World" (Source Code: https://examples1.ext.net/#/Window/Basic/Hello_World/ ) shows a:

    Status Code: 200
    Status Text: BADRESPONSE: Unespected token '<'

    when you pulse "Show Window(Server Event)" button?

    Thanks
  2. #2
    Hello, carman, and welcome to Ext.NET Forums!

    I am afraid Ext.NET 1 is a little too old to deal with that. I fact, I can't really tell for sure other versions would. The proxy is probably tampering with the server response that shouldn't be cached at all, as it needs fresh data to be accurate in most cases. This would require either disabling the custom headers/content returned by the proxy or adjust the handler to correctly interpret the response.

    For what you shown it seems instead of returning the actual response, it is returning some kind of HTML, which I believe no version of Ext.NET or even other libraries would just be able to handle. You should either ensure your proxy won't cache server requests (and you may need to manually add request headers or arguments) or disable caching for Ext.NET dynamic requests via an exclusion in the proxy rules. Wouldn't it be bad if you tried to refresh a grid and only data from two days ago returned, and you just changed some data it should display?

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hi. Tx for your response.

    We've checked ext.net 3 and there is not problem with it. It can be a problem of 1.7... yes, a bit old. We are now working with cloudflare to get a solution o perhaps, upgrade our ext.net to a more recent version.

    Thank you.

Similar Threads

  1. [CLOSED] Ext.Net.X.Call failing with "unexpected token"
    By rmelancon in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: May 16, 2017, 6:49 PM
  2. Replies: 2
    Last Post: Feb 17, 2015, 11:42 AM
  3. Replies: 5
    Last Post: Feb 17, 2015, 6:03 AM
  4. Replies: 2
    Last Post: Aug 26, 2013, 10:52 AM
  5. [CLOSED] [MVC] Export Excel return "BADRESPONSE: Unexpected token <"
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 02, 2012, 3:05 PM

Tags for this Thread

Posting Permissions