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
Comment #1
marcingy commentedI believe the issue given its nature lies with the above module.
Comment #2
PWG commentedI took some time to get it but in the end it seemed I had two different problems:
1. The intermittent #1034 error was caused by me testing in the Flash IDE
2. The sandbox violation was caused by me running the swf in a subdirectory to the web domain I had defined in my Services setup
Another problem not mentioned here but which was really confusing AND VERY VERY ANNOYING was the following error message that sometimes popped up when I was working on my custom services:
NetConnection.Call.BadVersion
What it really meant was that there was some simple syntax error in the php service .module/.inc file.
PWG