@Doug, I just saw a StackOverflow topic where someone was getting that error because they cut and pasted the text instead of typing it and there was a hidden character in what they cut. If you haven't, please try typing it in manually.
If you still can't get it to work, another option is to modify the .JS file. I'm assuming you are using the version in bin/js-debug and not the bin/js-release version. You can modify AMFNetConnection.js to store this.xhr.getResponseHeader(...) in a local variable, print the value to console.log() and so on. @Piotr, Yes, it is a possibility, but I doubt it. The code we are running is tucked inside org.apache.flex. HTH, -Alex On 9/20/17, 2:11 AM, "Piotr Zarzycki" <piotrzarzyck...@gmail.com> wrote: >Harbs, Alex, > >Is it possible that there is some messed up cause of this inject_html in >RemoteObject ? [1] I remember that Alex said it is no needed anymore. > >[1] >https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co >m%2Fapache%2Fflex-asjs%2Fblob%2Fdevelop%2Fframeworks%2Fprojects%2FNetwork% >2Fsrc%2Fmain%2Fflex%2Forg%2Fapache%2Fflex%2Fnet%2FRemoteObject.as&data=02% >7C01%7C%7C1b4e9b240e724783195a08d5000786d2%7Cfa7b1b5a7b34438794aed2c178dec >ee1%7C0%7C0%7C636414954679192312&sdata=io6qhAtYixBLHuzGueaMtjtI4W0NtHWR9cy >krGqYf%2Bs%3D&reserved=0 > >Thanks, >Piotr > > >2017-09-20 11:04 GMT+02:00 doug777 <doug777...@gmail.com>: > >> Still no luck. Now it returns this >> >> this.xhr.getResponseHeader("Content-type”) >> >> VM833:1 Uncaught SyntaxError: Invalid or unexpected token >> at org.apache.flex.net.remoting.amf.AMFNetConnection. >> onReadyStateChange >> (AMFNetConnection.js:136) >> at org.apache.flex.net.remoting.amf.AMFNetConnection.call >> (AMFNetConnection.js:108) >> at org.apache.flex.net.remoting.Operation.send (Operation.js:67) >> at org.apache.flex.net.RemoteObject.send (RemoteObject.js:84) >> at Test.init (Test.js:182) >> at Test.$EH0 (Test.js:210) >> at Test.goog.events.EventTarget.fireListeners (eventtarget.js:284) >> at Function.goog.events.EventTarget.dispatchEventInternal_ >> (eventtarget.js:381) >> at Test.goog.events.EventTarget.dispatchEvent (eventtarget.js:196) >> at Test.org.apache.flex.events.EventDispatcher.dispatchEvent >> (EventDispatcher.js:71) >> org.apache.flex.net.remoting.amf.AMFNetConnection.onReadyStateChange @ >> AMFNetConnection.js:136 >> org.apache.flex.net.remoting.amf.AMFNetConnection.call @ >> AMFNetConnection.js:108 >> org.apache.flex.net.remoting.Operation.send @ Operation.js:67 >> org.apache.flex.net.RemoteObject.send @ RemoteObject.js:84 >> Test.init @ Test.js:182 >> Test.$EH0 @ Test.js:210 >> goog.events.EventTarget.fireListeners @ eventtarget.js:284 >> goog.events.EventTarget.dispatchEventInternal_ @ eventtarget.js:381 >> goog.events.EventTarget.dispatchEvent @ eventtarget.js:196 >> org.apache.flex.events.EventDispatcher.dispatchEvent @ >> EventDispatcher.js:71 >> org.apache.flex.core.HTMLElementWrapper.dispatchEvent @ >> HTMLElementWrapper.js:240 >> org.apache.flex.core.Application.initialize @ Application.js:273 >> org.apache.flex.core.Application.start @ Application.js:246 >> (anonymous) @ index.html:241 >> >> >> >> -- >> Sent from: >>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl >>ex-users.2333346.n4.nabble.com%2F&data=02%7C01%7C%7C1b4e9b240e724783195a0 >>8d5000786d2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6364149546791923 >>12&sdata=4M5wha0rIEQo3ooRce8b4qDhGeCCzNPWH0mDbgr83l0%3D&reserved=0 >> > > > >-- > >Piotr Zarzycki > >mobile: +48 880 859 557 >skype: zarzycki10 > >LinkedIn: >https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linked >in.com%2Fpiotrzarzycki&data=02%7C01%7C%7C1b4e9b240e724783195a08d5000786d2% >7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636414954679192312&sdata=m%2B >TIQB5d1nM7AOpLaXYPSRNrZTRuJUMaDMdgRmQJnDw%3D&reserved=0 ><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpl.linke >din.com%2Fin%2Fpiotr-zarzycki-92a53552&data=02%7C01%7C%7C1b4e9b240e7247831 >95a08d5000786d2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6364149546792 >02317&sdata=SMjXEpuqMOZU%2BP38eA%2FNDhimWrnZ055Uxq2%2BDH8wX%2F4%3D&reserve >d=0>