• Resolved iangrant

    (@iangrant)


    Trying to install UpDraft, zip file is too large to install without this plugin, but try to load the zip file and I get an error;

    Error: the server sent us a response (JSON) which we did not understand

    Any ideas?

    Ian

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author David Anderson

    (@davidanderson)

    If you open your web browser’s developer console, and then attempt the upload, it’ll show you the response to the request. What does it show there?

    Thread Starter iangrant

    (@iangrant)

    Hi This is what I see;

    Object admin.js?ver=1:92
    TypeError: Cannot read property ‘e’ of null
    at g.Uploader.<anonymous> (admin.js?ver=1:83)
    at g.Uploader.dispatchEvent (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.9:14)
    at g.Uploader.trigger (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.9:11)
    at n.c.status.g.UPLOADING.a.state.g.STOPPED.B.onload (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.9:14)
    at n.<anonymous> (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.9:11)
    at Array.<anonymous> (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.9:11)
    at d (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.9:11)
    at Object.e [as inSeries] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.9:11)
    at n.dispatchEvent (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.9:11)
    at d.<anonymous> (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.9:12)
    admin.js?ver=1:93 {response: null, status: 200, responseHeaders: “access-control-allow-credentials: true
    ?access-con…wered-by-plesk: PleskWin
    ?x-robots-tag: noindex
    ?”}

    Plugin Author David Anderson

    (@davidanderson)

    That part isn’t unhelpful, but it’s not the response itself. We’re looking for the browser’s record of the HTTP request that was sent, and its response, like in this screenshot: https://snipboard.io/tRXHlb.jpg

    Thread Starter iangrant

    (@iangrant)

    Hi
    Cant see anything like that – I’m using edge btw. The only other thing I can see if I switch verbose on is;
    [Violation] ‘load’ handler took 72331ms

    Plugin Author David Anderson

    (@davidanderson)

    I don’t know Edge. My browser is Firefox. I believe that in Chrome – which Edge is based on – you need to right-click in the console and turn on an option to monitor XHR requests? Or possibly use the “Network” tab to see them. Or both.

    Thread Starter iangrant

    (@iangrant)

    so tried in chrome and I can see this:

    response: null
    responseHeaders: “access-control-allow-credentials: true
    access-control-allow-origin: https://theteaonthegreen.co.uk
    cache-control: no-cache, must-revalidate, max-age=0
    content-length: 0
    content-type: text/html; charset=UTF-8
    date: Wed, 09 Sep 2020 10:56:37 GMT
    expires: Wed, 11 Jan 1984 05:00:00 GMT
    referrer-policy: strict-origin-when-cross-origin
    server: Microsoft-IIS/8.5
    x-content-type-options: nosniff
    x-frame-options: SAMEORIGIN
    x-powered-by: ASP.NET
    x-powered-by-plesk: PleskWin
    x-robots-tag: noindex

    status: 200
    proto__:
    constructor: ? Object()
    hasOwnProperty: ? hasOwnProperty()
    isPrototypeOf: ? isPrototypeOf()
    propertyIsEnumerable: ? propertyIsEnumerable()
    toLocaleString: ? toLocaleString()
    toString: ? toString()
    valueOf: ? valueOf()
    __defineGetter__: ? __defineGetter__()
    __defineSetter__: ? __defineSetter__()
    __lookupGetter__: ? __lookupGetter__()
    __lookupSetter__: ? __lookupSetter__()
    get __proto__: ? __proto__()
    set __proto__: ? __proto__()

    Plugin Author David Anderson

    (@davidanderson)

    What was the URL requested that that is the response to?

    Thread Starter iangrant

    (@iangrant)

    sorry, cant see anything but the web url thats on the third line

    Plugin Author David Anderson

    (@davidanderson)

    Can you post a screenshot of the “Network” tab immediately after trying the upload?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error: the server sent us a response (JSON) which we did not understand’ is closed to new replies.