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

XEP-0363: http file upload gives json error #49

Closed
tmolitor-stud-tu opened this issue Sep 16, 2016 · 1 comment
Closed

XEP-0363: http file upload gives json error #49

tmolitor-stud-tu opened this issue Sep 16, 2016 · 1 comment

Comments

@tmolitor-stud-tu
Copy link
Member

tmolitor-stud-tu commented Sep 16, 2016

When I try to send a file via HTTP-Upload I get an error telling me "JSON error 0" happened.
On the prosody server I see the following:

==> /var/log/prosody/prosody.log <==
Sep 16 10:27:14 c2s9383fb0      debug   RECV: <iq id='FD8C79FA-AE01-4F28-B0FF-33305BF4E9D2' type='get' to='proxy.example.org'><request xmlns='urn:xmpp:http:upload'><filename>photo.png</filename><size>221895</size><content-type>image/png</content-type></request></iq>
Sep 16 10:27:14 c2s9383fb0      debug   Received[c2s]: <iq id='FD8C79FA-AE01-4F28-B0FF-33305BF4E9D2' type='get' to='proxy.example.org'>

==> /var/log/prosody/httpuploadcomponent.log <==
component:81 - 2016-09-16 08:27:14 - [84668807-0fd2-40ae-9438-9151a78cb284] Got XMPP slot request for 'photo.png' (image/png) with size 221895...

==> /var/log/prosody/prosody.log <==
Sep 16 10:27:14 jcp8f30548      debug   Received[component]: <iq id='FD8C79FA-AE01-4F28-B0FF-33305BF4E9D2' type='result' to='test@example.org/Monal-iOS' from='proxy.example.org'>
Sep 16 10:27:14 c2s9383fb0      debug   SEND: <iq id='FD8C79FA-AE01-4F28-B0FF-33305BF4E9D2' type='result' to='test@example.org/Monal-iOS' from='proxy.example.org'><slot xmlns='urn:xmpp:http:upload'><put>https://proxy.example.org:5281/upload/84668807-0fd2-40ae-9438-9151a78cb284/photo.png</put><get>https://proxy.example.org:5281/upload/84668807-0fd2-40ae-9438-9151a78cb284/photo.png</get></slot></iq>

I'm using latest prosody 0.10 as server and Monal 2.9.1 (184)

If you need more info or if I should test something, just ask :)

@tmolitor-stud-tu
Copy link
Member Author

Never mind, this seems to be identical to https://github.com/anurodhp/Monal/issues/30 and already fixed in the current source code (but pending release).

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

1 participant