Hi,

I have a problem that is not improving my behaviour at the dinner table (or anywhere else for that matter). :)

I'm using Services and Amfphp. I can connect and log in but when I call the view.get function (from the flash IDE) it SOMETIMES works and SOMETIMES it returns this:

TypeError: Error #1034: Type Coercion failed: cannot convert Object@4e9bc21 to Array.
at com.thirdavedesign.drupalSite::DrupalSite/::onData()

The onData function is the callback function called when the view.get service returns data.

I also have a custom service module with a function that - like view.get - returns an array with a couple of static items

$the_strings = array("hip", "hop");
return $the_strings;

The same problem occurs - SOMETIMES - for that function.

If I upload the swf to my external domain and run the swf in FF3 I - SOMETIMES - get this error upon loading:

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: http://www.blabla.com/bla123/App.swf cannot load data from http://www.blabla.com/services/amfphp/gateway.php.
at com.thirdavedesign.drupalSite.connection::Amf/service()
at com.thirdavedesign.drupalSite::DrupalSite/::startBlocking()
at com.thirdavedesign.drupalSite::DrupalSite/amfConnect()
at com.thirdavedesign.drupalSite::DrupalSite$iinit()
at main/::init()
at main$iinit()

...and SOMETIMES the swf is displayed without the error occurring. I don't know if this error is related to the first one, but thought it should be mentioned.

I'm thinking there might be some kind of cache active somewhere but in that case, where???

Help greatly appreciated. These intermittent errors are not my cup of tea. :)

Petter

Comments

marcingy’s picture

Status: Active » Closed (duplicate)