apache / apache/royale-asjs

Request to AMFPHP fails to return any fault or result event

Open
#119 19 comments 0 reactions 0 assignees View on GitHub
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

I'm not getting any fault or result event triggered for my simple example....

```












```

The endPoint set is to
https://clients.cityfashion.dev.exuvis.com/amfphp/gateway.php

This is correct, right? (I use this endpoint in Flex and that works fine)

From the Chrome Developer Tools Network Monitor I get the following output:

```
Request URL:https://clients.cityfashion.dev.exuvis.com/amfphp/gateway.php
Request Method:OPTIONS
Status Code:200 OK
Remote Address:188.93.153.101:443
Referrer Policy:no-referrer-when-downgrade
Response Headers
view source
Connection:keep-alive
Content-Encoding:gzip
Content-Length:286
Content-Type:text/html; charset=UTF-8
Date:Thu, 15 Feb 2018 13:08:17 GMT
Server:nginx
Vary:Accept-Encoding
Request Headers
view source
Accept:*/*
Accept-Encoding:gzip, deflate, br
Accept-Language:en-GB,en-US;q=0.9,en;q=0.8
Access-Control-Request-Headers:content-type
Access-Control-Request-Method:POST
Connection:keep-alive
Host:clients.cityfashion.dev.exuvis.com
Origin:null
User-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
```

Response there is:

```

amfphp and this gateway are installed correctly. You may now connect to this gateway from Flash.

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.

View the amfphp documentation

Load the service browser


```

Should I target a specific file with the JS version? Should the endPoint be different?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the RemoteObject service.send("getPackages", null) call and inspect the endpoint request in Chrome Developer Tools. Compare the OPTIONS response and the expected POST interaction with the AMFPHP gateway. Done means the example reliably triggers either amfResultHandler or amfFaultHandler and the behavior is documented or covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.