{"action":"created","issue":{"url":"https://api.github.com/repos/apache/royale-asjs/issues/119","repository_url":"https://api.github.com/repos/apache/royale-asjs","labels_url":"https://api.github.com/repos/apache/royale-asjs/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/apache/royale-asjs/issues/119/comments","events_url":"https://api.github.com/repos/apache/royale-asjs/issues/119/events","html_url":"https://github.com/apache/royale-asjs/issues/119","id":297632489,"number":119,"title":"Request to AMFPHP fails to return any fault or result event","user":{"login":"coxfrederic","id":19729875,"avatar_url":"https://avatars1.githubusercontent.com/u/19729875?v=4","gravatar_id":"","url":"https://api.github.com/users/coxfrederic","html_url":"https://github.com/coxfrederic","followers_url":"https://api.github.com/users/coxfrederic/followers","following_url":"https://api.github.com/users/coxfrederic/following{/other_user}","gists_url":"https://api.github.com/users/coxfrederic/gists{/gist_id}","starred_url":"https://api.github.com/users/coxfrederic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxfrederic/subscriptions","organizations_url":"https://api.github.com/users/coxfrederic/orgs","repos_url":"https://api.github.com/users/coxfrederic/repos","events_url":"https://api.github.com/users/coxfrederic/events{/privacy}","received_events_url":"https://api.github.com/users/coxfrederic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-15T23:21:01Z","updated_at":"2018-02-16T21:42:42Z","closed_at":null,"author_association":"NONE","body":"I'm not getting any fault or result event triggered for my simple example....\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?><js:Application xmlns:fx=\"http://ns.adobe.com/mxml/2009\" xmlns:js=\"library://ns.apache.org/royale/basic\" applicationComplete=\"applicationCompleteHandler(event);\">\r\n\r\n    <fx:Script>\r\n        <![CDATA[\r\n            import org.apache.royale.net.RemoteObject;\r\n            import org.apache.royale.net.events.FaultEvent;\r\n            import org.apache.royale.net.events.ResultEvent;\r\n\r\n            private function applicationCompleteHandler(evt:Event):void{\r\n                testLabel.text = \"Requesting from AMF\";\r\n                service.send(\"getPackages\", null);\r\n            }\r\n\r\n            private function amfFaultHandler(evt:FaultEvent):void{\r\n                testLabel.text = \"Fault in calling AMF\";\r\n            }\r\n\r\n            private function amfResultHandler(evt:ResultEvent):void{\r\n                testLabel.text = \"Result received from AMF\";\r\n            }\r\n        ]]>\r\n    </fx:Script>\r\n\r\n    <js:valuesImpl>\r\n        <js:SimpleCSSValuesImpl />\r\n    </js:valuesImpl>\r\n\r\n    <js:beads>\r\n        <js:ClassAliasBead />\r\n        <js:RemoteObject id=\"service\" result=\"amfResultHandler(event)\" fault=\"amfFaultHandler(event)\"\r\n                         endPoint = \"https://clients.cityfashion.dev.exuvis.com/amfphp/gateway.php\"\r\n                         destination = \"Meta\"\r\n                         source = \"Meta\"/>\r\n    </js:beads>\r\n\r\n    <js:initialView>\r\n        <js:View>\r\n            <js:Label id=\"testLabel\" />\r\n        </js:View>\r\n    </js:initialView>\r\n</js:Application>\r\n```\r\n\r\nThe endPoint set is to\r\nhttps://clients.cityfashion.dev.exuvis.com/amfphp/gateway.php\r\n\r\nThis is correct, right? (I use this endpoint in Flex and that works fine)\r\n\r\nFrom the Chrome Developer Tools Network Monitor I get the following output:\r\n\r\n```\r\nRequest URL:https://clients.cityfashion.dev.exuvis.com/amfphp/gateway.php\r\nRequest Method:OPTIONS\r\nStatus Code:200 OK\r\nRemote Address:188.93.153.101:443\r\nReferrer Policy:no-referrer-when-downgrade\r\nResponse Headers\r\nview source\r\nConnection:keep-alive\r\nContent-Encoding:gzip\r\nContent-Length:286\r\nContent-Type:text/html; charset=UTF-8\r\nDate:Thu, 15 Feb 2018 13:08:17 GMT\r\nServer:nginx\r\nVary:Accept-Encoding\r\nRequest Headers\r\nview source\r\nAccept:*/*\r\nAccept-Encoding:gzip, deflate, br\r\nAccept-Language:en-GB,en-US;q=0.9,en;q=0.8\r\nAccess-Control-Request-Headers:content-type\r\nAccess-Control-Request-Method:POST\r\nConnection:keep-alive\r\nHost:clients.cityfashion.dev.exuvis.com\r\nOrigin:null\r\nUser-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36\r\n```\r\n\r\nResponse there is:\r\n\r\n```\r\n<p>amfphp and this gateway are installed correctly. You may now connect to this gateway from Flash.</p><p>Note: If you're reading an old tutorial, it will tell you that you should see a download window instead of this message. This confused people so this is the new behaviour starting from amfphp 1.2.</p><p><a href='http://www.amfphp.org/docs'>View the amfphp documentation</p><p><a href='browser'>Load the service browser</a></p>\r\n```\r\n\r\nShould I target a specific file with the JS version? Should the endPoint be different?"},"comment":{"url":"https://api.github.com/repos/apache/royale-asjs/issues/comments/366366487","html_url":"https://github.com/apache/royale-asjs/issues/119#issuecomment-366366487","issue_url":"https://api.github.com/repos/apache/royale-asjs/issues/119","id":366366487,"user":{"login":"coxfrederic","id":19729875,"avatar_url":"https://avatars1.githubusercontent.com/u/19729875?v=4","gravatar_id":"","url":"https://api.github.com/users/coxfrederic","html_url":"https://github.com/coxfrederic","followers_url":"https://api.github.com/users/coxfrederic/followers","following_url":"https://api.github.com/users/coxfrederic/following{/other_user}","gists_url":"https://api.github.com/users/coxfrederic/gists{/gist_id}","starred_url":"https://api.github.com/users/coxfrederic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxfrederic/subscriptions","organizations_url":"https://api.github.com/users/coxfrederic/orgs","repos_url":"https://api.github.com/users/coxfrederic/repos","events_url":"https://api.github.com/users/coxfrederic/events{/privacy}","received_events_url":"https://api.github.com/users/coxfrederic/received_events","type":"User","site_admin":false},"created_at":"2018-02-16T21:42:42Z","updated_at":"2018-02-16T21:42:42Z","author_association":"NONE","body":"I used Charles (see attachment) but that does not seem to provide much info.\r\n\r\nWhich implementation is used for the JS side? https://github.com/emilkm/amfjs ?\r\nMaybe Flex supports more (older) versions and the JS side does not?\r\n[AIR_Flex_Call.chls.zip](https://github.com/apache/royale-asjs/files/1732904/AIR_Flex_Call.chls.zip)\r\n"}}
{"actor":{"display_login":"coxfrederic"}}