Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

503 Service Unavailable error when uploading media #165

Open
martin-hewitt opened this issue Jun 13, 2014 · 4 comments
Open

503 Service Unavailable error when uploading media #165

martin-hewitt opened this issue Jun 13, 2014 · 4 comments

Comments

@martin-hewitt
Copy link

Following on from #164, having fixed the auth issue that appeared to be causing that, I now get a 503 Service Unavailable error.

The file in question is 120KB in size. I've attached a screenshot of the request. The response is a plain text string saying "Service Unavailable"

The request is a POST request to https://demo.buddycloud.org/api/media-proxy/[email protected] and the content is a PNG image.

screen shot 2014-06-13 at 14 25 17

@martin-hewitt martin-hewitt changed the title 503 error when uploading media 503 Service Unavailable error when uploading media Jun 13, 2014
@abmargb
Copy link
Collaborator

abmargb commented Jun 18, 2014

Hey @martin-hewitt, two things:

First, the endpoint reported by the media server during disco was wrong. It was /media-proxy instead /media_proxy. Just fixed this.

Then, I figured out that the media server uses instead of to confirm transactions (XEP-0070). I updated the docs in https://github.com/buddycloud/buddycloud-media-server/blob/master/README.md to comply to that.

I just managed to upload a file via Postman. Let me know if this works for you.

@martin-hewitt
Copy link
Author

Thanks @abmargb that seems to be working now.

Not sure if this is correct, but the URL i'm being sent is a localhost address:

<message type="normal" to="[email protected]/resource" from="mediaserver.buddycloud.org" xmlns:stream="http://etherx.jabber.org/streams"><thread>e40797e1d19f4081a13e2b901f255888</thread><body>Confirmation message for transaction A46HqP1xo7xAvXSJRjR</body><confirm id="A46HqP1xo7xAvXSJRjR" url="http://localhost:60080/[email protected]" method="GET" xmlns="http://jabber.org/protocol/http-auth"/></message>

@abmargb
Copy link
Collaborator

abmargb commented Jun 18, 2014

The media server should use the http endpoint publicly exposed there. I'm
fixing this.
Em 18/06/2014 11:46, "Martin Hewitt" [email protected] escreveu:

Thanks @abmargb https://github.com/abmargb that seems to be working now.

Not sure if this is correct, but the URL i'm being sent is a localhost
address:

e40797e1d19f4081a13e2b901f255888Confirmation message for transaction A46HqP1xo7xAvXSJRjR


Reply to this email directly or view it on GitHub
#165 (comment)
.

@abmargb
Copy link
Collaborator

abmargb commented Jun 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants